1 /* $NetBSD: run-kodDatabase.c,v 1.3 2020/05/25 20:47:35 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_workimpl.h" 29 #include "ntp_types.h" 30 #include "sntptest.h" 31 #include "ntp_stdlib.h" 32 #include "sntp-opts.h" 33 #include "kod_management.h" 34 #include "ntp_io.h" 35 36 //=======External Functions This Runner Calls===== 37 extern void setUp(void); 38 extern void tearDown(void); 39 extern void test_SingleEntryHandling(void); 40 extern void test_MultipleEntryHandling(void); 41 extern void test_NoMatchInSearch(void); 42 extern void test_AddDuplicate(void); 43 extern void test_DeleteEntry(void); 44 45 46 //=======Suite Setup===== 47 static void suite_setup(void) 48 { 49 extern int change_iobufs(int); 50 extern int change_logfile(const char*, int); 51 change_iobufs(1); 52 change_logfile("stderr", 0); 53 } 54 55 //=======Test Reset Option===== 56 void resetTest(void); 57 void resetTest(void) 58 { 59 tearDown(); 60 setUp(); 61 } 62 63 char const *progname; 64 65 66 //=======MAIN===== 67 int main(int argc, char *argv[]) 68 { 69 progname = argv[0]; 70 suite_setup(); 71 UnityBegin("kodDatabase.c"); 72 RUN_TEST(test_SingleEntryHandling, 14); 73 RUN_TEST(test_MultipleEntryHandling, 15); 74 RUN_TEST(test_NoMatchInSearch, 16); 75 RUN_TEST(test_AddDuplicate, 17); 76 RUN_TEST(test_DeleteEntry, 18); 77 78 return (UnityEnd()); 79 } 80