xref: /netbsd-src/external/bsd/ntp/dist/tests/ntpd/run-ntp_prio_q.c (revision 7e30e94394d0994ab9534f68a8f91665045c91ce)
1 /*	$NetBSD: run-ntp_prio_q.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 #include "ntp.h"
29 #include "ntp_calendar.h"
30 #include "ntp_stdlib.h"
31 #include "ntp_prio_q.h"
32 #include <string.h>
33 
34 //=======External Functions This Runner Calls=====
35 extern void setUp(void);
36 extern void tearDown(void);
37 extern void test_AllocateDeallocateNode(void);
38 extern void test_EmptyQueue(void);
39 extern void test_OneElementQueue(void);
40 extern void test_MultipleElementQueue(void);
41 extern void test_CustomOrderQueue(void);
42 extern void test_DestroyNonEmptyQueue(void);
43 extern void test_AppendQueues(void);
44 
45 
46 //=======Test Reset Option=====
47 void resetTest(void);
48 void resetTest(void)
49 {
50   tearDown();
51   setUp();
52 }
53 
54 char const *progname;
55 
56 
57 //=======MAIN=====
58 int main(int argc, char *argv[])
59 {
60   progname = argv[0];
61   UnityBegin("ntp_prio_q.c");
62   RUN_TEST(test_AllocateDeallocateNode, 39);
63   RUN_TEST(test_EmptyQueue, 46);
64   RUN_TEST(test_OneElementQueue, 60);
65   RUN_TEST(test_MultipleElementQueue, 88);
66   RUN_TEST(test_CustomOrderQueue, 126);
67   RUN_TEST(test_DestroyNonEmptyQueue, 183);
68   RUN_TEST(test_AppendQueues, 205);
69 
70   return (UnityEnd());
71 }
72