run-caltontp.c revision 290000
133965Sjdp/* AUTOGENERATED FILE. DO NOT EDIT. */
233965Sjdp
333965Sjdp//=======Test Runner Used To Run Each Test Below=====
433965Sjdp#define RUN_TEST(TestFunc, TestLineNum) \
5218822Sdim{ \
6218822Sdim  Unity.CurrentTestName = #TestFunc; \
733965Sjdp  Unity.CurrentTestLineNumber = TestLineNum; \
833965Sjdp  Unity.NumberOfTests++; \
933965Sjdp  if (TEST_PROTECT()) \
1033965Sjdp  { \
1133965Sjdp      setUp(); \
1233965Sjdp      TestFunc(); \
1333965Sjdp  } \
1433965Sjdp  if (TEST_PROTECT() && !TEST_IS_IGNORED) \
1533965Sjdp  { \
1633965Sjdp    tearDown(); \
1733965Sjdp  } \
1833965Sjdp  UnityConcludeTest(); \
1933965Sjdp}
2033965Sjdp
2133965Sjdp//=======Automagically Detected Files To Include=====
2233965Sjdp#include "unity.h"
2333965Sjdp#include <setjmp.h>
2433965Sjdp#include <stdio.h>
2533965Sjdp#include "config.h"
2633965Sjdp#include "ntp_calendar.h"
2733965Sjdp
28218822Sdim//=======External Functions This Runner Calls=====
29218822Sdimextern void setUp(void);
3033965Sjdpextern void tearDown(void);
31218822Sdimextern void test_DateGivenMonthDay(void);
32218822Sdimextern void test_DateGivenYearDay(void);
3333965Sjdpextern void test_DateLeapYear(void);
3433965Sjdpextern void test_WraparoundDateIn2036(void);
3533965Sjdp
3633965Sjdp
3733965Sjdp//=======Test Reset Option=====
3833965Sjdpvoid resetTest(void);
3933965Sjdpvoid resetTest(void)
4060484Sobrien{
4160484Sobrien  tearDown();
4260484Sobrien  setUp();
4360484Sobrien}
4460484Sobrien
4560484Sobrienchar const *progname;
46218822Sdim
47218822Sdim
48218822Sdim//=======MAIN=====
49218822Sdimint main(int argc, char *argv[])
50218822Sdim{
51218822Sdim  progname = argv[0];
52218822Sdim  UnityBegin("caltontp.c");
5360484Sobrien  RUN_TEST(test_DateGivenMonthDay, 5);
5433965Sjdp  RUN_TEST(test_DateGivenYearDay, 6);
5533965Sjdp  RUN_TEST(test_DateLeapYear, 7);
5633965Sjdp  RUN_TEST(test_WraparoundDateIn2036, 8);
5733965Sjdp
5833965Sjdp  return (UnityEnd());
5933965Sjdp}
6033965Sjdp