Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/sntp/tests/run-kodDatabase.c
Show All 17 Lines | #define RUN_TEST(TestFunc, TestLineNum) \ | ||||
UnityConcludeTest(); \ | UnityConcludeTest(); \ | ||||
} | } | ||||
//=======Automagically Detected Files To Include===== | //=======Automagically Detected Files To Include===== | ||||
#include "unity.h" | #include "unity.h" | ||||
#include <setjmp.h> | #include <setjmp.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include "config.h" | #include "config.h" | ||||
#include "ntp_workimpl.h" | |||||
#include "ntp_types.h" | #include "ntp_types.h" | ||||
#include "sntptest.h" | #include "sntptest.h" | ||||
#include "ntp_stdlib.h" | #include "ntp_stdlib.h" | ||||
#include "sntp-opts.h" | #include "sntp-opts.h" | ||||
#include "kod_management.h" | #include "kod_management.h" | ||||
#include "ntp_io.h" | #include "ntp_io.h" | ||||
//=======External Functions This Runner Calls===== | //=======External Functions This Runner Calls===== | ||||
Show All 17 Lines | |||||
char const *progname; | char const *progname; | ||||
//=======MAIN===== | //=======MAIN===== | ||||
int main(int argc, char *argv[]) | int main(int argc, char *argv[]) | ||||
{ | { | ||||
progname = argv[0]; | progname = argv[0]; | ||||
UnityBegin("kodDatabase.c"); | UnityBegin("kodDatabase.c"); | ||||
RUN_TEST(test_SingleEntryHandling, 13); | RUN_TEST(test_SingleEntryHandling, 14); | ||||
RUN_TEST(test_MultipleEntryHandling, 14); | RUN_TEST(test_MultipleEntryHandling, 15); | ||||
RUN_TEST(test_NoMatchInSearch, 15); | RUN_TEST(test_NoMatchInSearch, 16); | ||||
RUN_TEST(test_AddDuplicate, 16); | RUN_TEST(test_AddDuplicate, 17); | ||||
RUN_TEST(test_DeleteEntry, 17); | RUN_TEST(test_DeleteEntry, 18); | ||||
return (UnityEnd()); | return (UnityEnd()); | ||||
} | } |