diff options
Diffstat (limited to 'contrib/ntp/sntp/tests/run-kodDatabase.c')
-rw-r--r-- | contrib/ntp/sntp/tests/run-kodDatabase.c | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/contrib/ntp/sntp/tests/run-kodDatabase.c b/contrib/ntp/sntp/tests/run-kodDatabase.c index 7fc9678..e5bf3d7 100644 --- a/contrib/ntp/sntp/tests/run-kodDatabase.c +++ b/contrib/ntp/sntp/tests/run-kodDatabase.c @@ -22,38 +22,45 @@ #include "unity.h" #include <setjmp.h> #include <stdio.h> +#include "config.h" +#include "ntp_types.h" +#include "sntptest.h" +#include "ntp_stdlib.h" +#include "sntp-opts.h" +#include "kod_management.h" +#include "ntp_io.h" //=======External Functions This Runner Calls===== extern void setUp(void); extern void tearDown(void); -extern void test_SingleEntryHandling(); -extern void test_MultipleEntryHandling(); -extern void test_NoMatchInSearch(); -extern void test_AddDuplicate(); -extern void test_DeleteEntry(); +extern void test_SingleEntryHandling(void); +extern void test_MultipleEntryHandling(void); +extern void test_NoMatchInSearch(void); +extern void test_AddDuplicate(void); +extern void test_DeleteEntry(void); //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); } -char *progname; +char const *progname; //=======MAIN===== int main(int argc, char *argv[]) { progname = argv[0]; - Unity.TestFile = "kodDatabase.c"; UnityBegin("kodDatabase.c"); - RUN_TEST(test_SingleEntryHandling, 22); - RUN_TEST(test_MultipleEntryHandling, 35); - RUN_TEST(test_NoMatchInSearch, 66); - RUN_TEST(test_AddDuplicate, 79); - RUN_TEST(test_DeleteEntry, 104); + RUN_TEST(test_SingleEntryHandling, 13); + RUN_TEST(test_MultipleEntryHandling, 14); + RUN_TEST(test_NoMatchInSearch, 15); + RUN_TEST(test_AddDuplicate, 16); + RUN_TEST(test_DeleteEntry, 17); return (UnityEnd()); } |