xref: /netbsd-src/external/bsd/ntp/dist/tests/ntpd/run-t-ntp_scanner.c (revision 87d689fb734c654d2486f87f7be32f1b53ecdbec)
1 /*	$NetBSD: run-t-ntp_scanner.c,v 1.1.1.3 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 
29 //=======External Functions This Runner Calls=====
30 extern void setUp(void);
31 extern void tearDown(void);
32 extern void test_keywordIncorrectToken(void);
33 extern void test_keywordServerToken(void);
34 extern void test_DropUninitializedStack(void);
35 extern void test_IncorrectlyInitializeLexStack(void);
36 extern void test_InitializeLexStack(void);
37 extern void test_PopEmptyStack(void);
38 extern void test_IsInteger(void);
39 extern void test_IsUint(void);
40 extern void test_IsDouble(void);
41 extern void test_SpecialSymbols(void);
42 extern void test_EOC(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("t-ntp_scanner.c");
61   RUN_TEST(test_keywordIncorrectToken, 21);
62   RUN_TEST(test_keywordServerToken, 22);
63   RUN_TEST(test_DropUninitializedStack, 23);
64   RUN_TEST(test_IncorrectlyInitializeLexStack, 24);
65   RUN_TEST(test_InitializeLexStack, 25);
66   RUN_TEST(test_PopEmptyStack, 61);
67   RUN_TEST(test_IsInteger, 69);
68   RUN_TEST(test_IsUint, 87);
69   RUN_TEST(test_IsDouble, 99);
70   RUN_TEST(test_SpecialSymbols, 111);
71   RUN_TEST(test_EOC, 120);
72 
73   return (UnityEnd());
74 }
75