testsample_cmd.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. CEXCEPTION_T e; \
  11. Try { \
  12. setUp(); \
  13. TestFunc(); \
  14. } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
  15. } \
  16. if (TEST_PROTECT() && !TEST_IS_IGNORED) \
  17. { \
  18. tearDown(); \
  19. } \
  20. UnityConcludeTest(); \
  21. }
  22. /*=======Automagically Detected Files To Include=====*/
  23. #include "unity.h"
  24. #include <setjmp.h>
  25. #include <stdio.h>
  26. #include "CException.h"
  27. #include "funky.h"
  28. #include "stanky.h"
  29. #include <setjmp.h>
  30. /*=======External Functions This Runner Calls=====*/
  31. extern void setUp(void);
  32. extern void tearDown(void);
  33. extern void test_TheFirstThingToTest(void);
  34. extern void test_TheSecondThingToTest(void);
  35. extern void test_TheThirdThingToTest(void);
  36. extern void test_TheFourthThingToTest(void);
  37. /*=======Test Reset Option=====*/
  38. void resetTest(void);
  39. void resetTest(void)
  40. {
  41. tearDown();
  42. setUp();
  43. }
  44. /*=======MAIN=====*/
  45. int main(void)
  46. {
  47. UnityBegin("testdata/testsample.c");
  48. RUN_TEST(test_TheFirstThingToTest, 21);
  49. RUN_TEST(test_TheSecondThingToTest, 43);
  50. RUN_TEST(test_TheThirdThingToTest, 53);
  51. RUN_TEST(test_TheFourthThingToTest, 58);
  52. return (UnityEnd());
  53. }