1 /* $NetBSD: run-authkeys.c,v 1.3 2020/05/25 20:47:36 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_stdlib.h"
30 #include "ntp_calendar.h"
31 #include <limits.h>
32
33 //=======External Functions This Runner Calls=====
34 extern void setUp(void);
35 extern void tearDown(void);
36 extern void test_AddTrustedKeys(void);
37 extern void test_AddUntrustedKey(void);
38 extern void test_HaveKeyCorrect(void);
39 extern void test_HaveKeyIncorrect(void);
40 extern void test_AddWithAuthUseKey(void);
41 extern void test_EmptyKey(void);
42 extern void test_auth_log2(void);
43 extern void test_AddrMatch_anull(void);
44 extern void test_AddrMatch_self4(void);
45 extern void test_AddrMatch_self6(void);
46 extern void test_AddrMatch_afmix(void);
47 extern void test_AddrMatch_ipv4(void);
48 extern void test_AddrMatch_ipv6(void);
49
50
51 //=======Suite Setup=====
suite_setup(void)52 static void suite_setup(void)
53 {
54 extern int change_iobufs(int);
55 extern int change_logfile(const char*, int);
56 change_iobufs(1);
57 change_logfile("stderr", 0);
58 }
59
60 //=======Test Reset Option=====
61 void resetTest(void);
resetTest(void)62 void resetTest(void)
63 {
64 tearDown();
65 setUp();
66 }
67
68 char const *progname;
69
70
71 //=======MAIN=====
main(int argc,char * argv[])72 int main(int argc, char *argv[])
73 {
74 progname = argv[0];
75 suite_setup();
76 UnityBegin("authkeys.c");
77 RUN_TEST(test_AddTrustedKeys, 79);
78 RUN_TEST(test_AddUntrustedKey, 92);
79 RUN_TEST(test_HaveKeyCorrect, 102);
80 RUN_TEST(test_HaveKeyIncorrect, 113);
81 RUN_TEST(test_AddWithAuthUseKey, 122);
82 RUN_TEST(test_EmptyKey, 131);
83 RUN_TEST(test_auth_log2, 160);
84 RUN_TEST(test_AddrMatch_anull, 203);
85 RUN_TEST(test_AddrMatch_self4, 234);
86 RUN_TEST(test_AddrMatch_self6, 245);
87 RUN_TEST(test_AddrMatch_afmix, 256);
88 RUN_TEST(test_AddrMatch_ipv4, 268);
89 RUN_TEST(test_AddrMatch_ipv6, 298);
90
91 return (UnityEnd());
92 }
93