testsample_new2.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* AUTOGENERATED FILE. DO NOT EDIT. */
  2. /*=======Test Runner Used To Run Each Test Below=====*/
  3. #define RUN_TEST(TestFunc, TestLineNum) \
  4. { \
  5. Unity.CurrentTestName = #TestFunc; \
  6. Unity.CurrentTestLineNumber = TestLineNum; \
  7. Unity.NumberOfTests++; \
  8. if (TEST_PROTECT()) \
  9. { \
  10. setUp(); \
  11. TestFunc(); \
  12. } \
  13. if (TEST_PROTECT() && !TEST_IS_IGNORED) \
  14. { \
  15. tearDown(); \
  16. } \
  17. UnityConcludeTest(); \
  18. }
  19. /*=======Automagically Detected Files To Include=====*/
  20. #include "unity.h"
  21. #include <setjmp.h>
  22. #include <stdio.h>
  23. #include "funky.h"
  24. #include "stanky.h"
  25. #include <setjmp.h>
  26. /*=======External Functions This Runner Calls=====*/
  27. extern void setUp(void);
  28. extern void tearDown(void);
  29. extern void test_TheFirstThingToTest(void);
  30. extern void test_TheSecondThingToTest(void);
  31. extern void test_TheThirdThingToTest(void);
  32. extern void test_TheFourthThingToTest(void);
  33. /*=======Suite Setup=====*/
  34. static int suite_setup(void)
  35. {
  36. a_custom_setup();
  37. }
  38. /*=======Suite Teardown=====*/
  39. static int suite_teardown(int num_failures)
  40. {
  41. a_custom_teardown();
  42. }
  43. /*=======Test Reset Option=====*/
  44. void resetTest(void);
  45. void resetTest(void)
  46. {
  47. tearDown();
  48. setUp();
  49. }
  50. /*=======MAIN=====*/
  51. int main(void)
  52. {
  53. suite_setup();
  54. UnityBegin("testdata/testsample.c");
  55. RUN_TEST(test_TheFirstThingToTest, 21);
  56. RUN_TEST(test_TheSecondThingToTest, 43);
  57. RUN_TEST(test_TheThirdThingToTest, 53);
  58. RUN_TEST(test_TheFourthThingToTest, 58);
  59. return suite_teardown(UnityEnd());
  60. }