testsample_def.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /*=======Test Reset Option=====*/
  34. void resetTest(void);
  35. void resetTest(void)
  36. {
  37. tearDown();
  38. setUp();
  39. }
  40. /*=======MAIN=====*/
  41. int main(void)
  42. {
  43. UnityBegin("testdata/testsample.c");
  44. RUN_TEST(test_TheFirstThingToTest, 21);
  45. RUN_TEST(test_TheSecondThingToTest, 43);
  46. RUN_TEST(test_TheThirdThingToTest, 53);
  47. RUN_TEST(test_TheFourthThingToTest, 58);
  48. return (UnityEnd());
  49. }