1284990Scy/* AUTOGENERATED FILE. DO NOT EDIT. */
2284990Scy
3284990Scy//=======Test Runner Used To Run Each Test Below=====
4284990Scy#define RUN_TEST(TestFunc, TestLineNum) \
5284990Scy{ \
6284990Scy  Unity.CurrentTestName = #TestFunc; \
7284990Scy  Unity.CurrentTestLineNumber = TestLineNum; \
8284990Scy  Unity.NumberOfTests++; \
9284990Scy  if (TEST_PROTECT()) \
10284990Scy  { \
11284990Scy      setUp(); \
12284990Scy      TestFunc(); \
13284990Scy  } \
14284990Scy  if (TEST_PROTECT() && !TEST_IS_IGNORED) \
15284990Scy  { \
16284990Scy    tearDown(); \
17284990Scy  } \
18284990Scy  UnityConcludeTest(); \
19284990Scy}
20284990Scy
21284990Scy//=======Automagically Detected Files To Include=====
22284990Scy#include "unity.h"
23284990Scy#include <setjmp.h>
24284990Scy#include <stdio.h>
25289999Sglebius#include "config.h"
26289999Sglebius#include "ntp_stdlib.h"
27289999Sglebius#include "ntp_calendar.h"
28310419Sdelphij#include "ntp_unixtime.h"
29289999Sglebius#include <string.h>
30284990Scy
31284990Scy//=======External Functions This Runner Calls=====
32284990Scyextern void setUp(void);
33284990Scyextern void tearDown(void);
34289999Sglebiusextern void test_DaySplitMerge(void);
35289999Sglebiusextern void test_SplitYearDays1(void);
36289999Sglebiusextern void test_SplitYearDays2(void);
37289999Sglebiusextern void test_RataDie1(void);
38289999Sglebiusextern void test_LeapYears1(void);
39289999Sglebiusextern void test_LeapYears2(void);
40289999Sglebiusextern void test_RoundTripDate(void);
41289999Sglebiusextern void test_RoundTripYearStart(void);
42289999Sglebiusextern void test_RoundTripMonthStart(void);
43289999Sglebiusextern void test_RoundTripWeekStart(void);
44289999Sglebiusextern void test_RoundTripDayStart(void);
45289999Sglebiusextern void test_IsoCalYearsToWeeks(void);
46289999Sglebiusextern void test_IsoCalWeeksToYearStart(void);
47289999Sglebiusextern void test_IsoCalWeeksToYearEnd(void);
48289999Sglebiusextern void test_DaySecToDate(void);
49310419Sdelphijextern void test_NtpToNtp(void);
50310419Sdelphijextern void test_NtpToTime(void);
51284990Scy
52284990Scy
53284990Scy//=======Test Reset Option=====
54289999Sglebiusvoid resetTest(void);
55289999Sglebiusvoid resetTest(void)
56284990Scy{
57284990Scy  tearDown();
58284990Scy  setUp();
59284990Scy}
60284990Scy
61289999Sglebiuschar const *progname;
62284990Scy
63284990Scy
64284990Scy//=======MAIN=====
65284990Scyint main(int argc, char *argv[])
66284990Scy{
67284990Scy  progname = argv[0];
68284990Scy  UnityBegin("calendar.c");
69310419Sdelphij  RUN_TEST(test_DaySplitMerge, 24);
70310419Sdelphij  RUN_TEST(test_SplitYearDays1, 25);
71310419Sdelphij  RUN_TEST(test_SplitYearDays2, 26);
72310419Sdelphij  RUN_TEST(test_RataDie1, 27);
73310419Sdelphij  RUN_TEST(test_LeapYears1, 28);
74310419Sdelphij  RUN_TEST(test_LeapYears2, 29);
75310419Sdelphij  RUN_TEST(test_RoundTripDate, 30);
76310419Sdelphij  RUN_TEST(test_RoundTripYearStart, 31);
77310419Sdelphij  RUN_TEST(test_RoundTripMonthStart, 32);
78310419Sdelphij  RUN_TEST(test_RoundTripWeekStart, 33);
79310419Sdelphij  RUN_TEST(test_RoundTripDayStart, 34);
80310419Sdelphij  RUN_TEST(test_IsoCalYearsToWeeks, 35);
81310419Sdelphij  RUN_TEST(test_IsoCalWeeksToYearStart, 36);
82310419Sdelphij  RUN_TEST(test_IsoCalWeeksToYearEnd, 37);
83310419Sdelphij  RUN_TEST(test_DaySecToDate, 38);
84310419Sdelphij  RUN_TEST(test_NtpToNtp, 40);
85310419Sdelphij  RUN_TEST(test_NtpToTime, 41);
86284990Scy
87284990Scy  return (UnityEnd());
88284990Scy}
89