1 /* $NetBSD: run-authkeys.c,v 1.1.1.6 2016/05/01 15:57:23 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 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("authkeys.c"); 61 RUN_TEST(test_AddTrustedKeys, 25); 62 RUN_TEST(test_AddUntrustedKey, 26); 63 RUN_TEST(test_HaveKeyCorrect, 27); 64 RUN_TEST(test_HaveKeyIncorrect, 28); 65 RUN_TEST(test_AddWithAuthUseKey, 29); 66 RUN_TEST(test_EmptyKey, 30); 67 RUN_TEST(test_auth_log2, 31); 68 69 return (UnityEnd()); 70 } 71