xref: /netbsd-src/external/bsd/ntp/dist/tests/libntp/run-clocktime.c (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1 /*	$NetBSD: run-clocktime.c,v 1.1.1.5 2016/01/08 21:21:33 christos Exp $	*/
2 
3 /* AUTOGENERATED FILE. DO NOT EDIT. */
4 
5 //=======Test Runner Used To Run Each Test Below=====
6 #define RUN_TEST(TestFunc, TestLineNum) \
7 { \
8   Unity.CurrentTestName = #TestFunc; \
9   Unity.CurrentTestLineNumber = TestLineNum; \
10   Unity.NumberOfTests++; \
11   if (TEST_PROTECT()) \
12   { \
13       setUp(); \
14       TestFunc(); \
15   } \
16   if (TEST_PROTECT() && !TEST_IS_IGNORED) \
17   { \
18     tearDown(); \
19   } \
20   UnityConcludeTest(); \
21 }
22 
23 //=======Automagically Detected Files To Include=====
24 #include "unity.h"
25 #include <setjmp.h>
26 #include <stdio.h>
27 #include "config.h"
28 #include "ntp_calendar.h"
29 #include "ntp_stdlib.h"
30 #include "test-libntp.h"
31 
32 //=======External Functions This Runner Calls=====
33 extern void setUp(void);
34 extern void tearDown(void);
35 extern void test_CurrentYear(void);
36 extern void test_CurrentYearFuzz(void);
37 extern void test_TimeZoneOffset(void);
38 extern void test_WrongYearStart(void);
39 extern void test_PreviousYear(void);
40 extern void test_NextYear(void);
41 extern void test_NoReasonableConversion(void);
42 extern void test_AlwaysInLimit(void);
43 
44 
45 //=======Test Reset Option=====
46 void resetTest(void);
47 void resetTest(void)
48 {
49   tearDown();
50   setUp();
51 }
52 
53 char const *progname;
54 
55 
56 //=======MAIN=====
57 int main(int argc, char *argv[])
58 {
59   progname = argv[0];
60   UnityBegin("clocktime.c");
61   RUN_TEST(test_CurrentYear, 11);
62   RUN_TEST(test_CurrentYearFuzz, 12);
63   RUN_TEST(test_TimeZoneOffset, 13);
64   RUN_TEST(test_WrongYearStart, 14);
65   RUN_TEST(test_PreviousYear, 15);
66   RUN_TEST(test_NextYear, 16);
67   RUN_TEST(test_NoReasonableConversion, 17);
68   RUN_TEST(test_AlwaysInLimit, 19);
69 
70   return (UnityEnd());
71 }
72