1/* AUTOGENERATED FILE. DO NOT EDIT. */
2
3//=======Test Runner Used To Run Each Test Below=====
4#define RUN_TEST(TestFunc, TestLineNum) \
5{ \
6  Unity.CurrentTestName = #TestFunc; \
7  Unity.CurrentTestLineNumber = TestLineNum; \
8  Unity.NumberOfTests++; \
9  if (TEST_PROTECT()) \
10  { \
11      setUp(); \
12      TestFunc(); \
13  } \
14  if (TEST_PROTECT() && !TEST_IS_IGNORED) \
15  { \
16    tearDown(); \
17  } \
18  UnityConcludeTest(); \
19}
20
21//=======Automagically Detected Files To Include=====
22#include "unity.h"
23#include <setjmp.h>
24#include <stdio.h>
25#include "config.h"
26#include "ntp_stdlib.h"
27#include "ntp_calendar.h"
28#include "ntp_unixtime.h"
29#include <string.h>
30
31//=======External Functions This Runner Calls=====
32extern void setUp(void);
33extern void tearDown(void);
34extern void test_DaySplitMerge(void);
35extern void test_SplitYearDays1(void);
36extern void test_SplitYearDays2(void);
37extern void test_RataDie1(void);
38extern void test_LeapYears1(void);
39extern void test_LeapYears2(void);
40extern void test_RoundTripDate(void);
41extern void test_RoundTripYearStart(void);
42extern void test_RoundTripMonthStart(void);
43extern void test_RoundTripWeekStart(void);
44extern void test_RoundTripDayStart(void);
45extern void test_IsoCalYearsToWeeks(void);
46extern void test_IsoCalWeeksToYearStart(void);
47extern void test_IsoCalWeeksToYearEnd(void);
48extern void test_DaySecToDate(void);
49extern void test_NtpToNtp(void);
50extern void test_NtpToTime(void);
51
52
53//=======Test Reset Option=====
54void resetTest(void);
55void resetTest(void)
56{
57  tearDown();
58  setUp();
59}
60
61char const *progname;
62
63
64//=======MAIN=====
65int main(int argc, char *argv[])
66{
67  progname = argv[0];
68  UnityBegin("calendar.c");
69  RUN_TEST(test_DaySplitMerge, 24);
70  RUN_TEST(test_SplitYearDays1, 25);
71  RUN_TEST(test_SplitYearDays2, 26);
72  RUN_TEST(test_RataDie1, 27);
73  RUN_TEST(test_LeapYears1, 28);
74  RUN_TEST(test_LeapYears2, 29);
75  RUN_TEST(test_RoundTripDate, 30);
76  RUN_TEST(test_RoundTripYearStart, 31);
77  RUN_TEST(test_RoundTripMonthStart, 32);
78  RUN_TEST(test_RoundTripWeekStart, 33);
79  RUN_TEST(test_RoundTripDayStart, 34);
80  RUN_TEST(test_IsoCalYearsToWeeks, 35);
81  RUN_TEST(test_IsoCalWeeksToYearStart, 36);
82  RUN_TEST(test_IsoCalWeeksToYearEnd, 37);
83  RUN_TEST(test_DaySecToDate, 38);
84  RUN_TEST(test_NtpToNtp, 40);
85  RUN_TEST(test_NtpToTime, 41);
86
87  return (UnityEnd());
88}
89