From: Damir Tomic Date: Thu, 18 Jun 2015 07:04:46 +0000 (+0200) Subject: run-keyFile.c, run-networking.c, run-kodDatabase.c: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a90b0ac0bc7ae05f1ce9a0f584bad13b5e45efab;p=thirdparty%2Fntp.git run-keyFile.c, run-networking.c, run-kodDatabase.c: new file Makefile.am: hopefully fixing bug-2852 bk: 55826d8eA6B4tNPWyiVc0SodqbI40A --- diff --git a/sntp/tests/run-keyFile.c b/sntp/tests/run-keyFile.c new file mode 100644 index 000000000..a87c22984 --- /dev/null +++ b/sntp/tests/run-keyFile.c @@ -0,0 +1,49 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "keyFile.c"; + UnityBegin("keyFile.c"); + + return (UnityEnd()); +} diff --git a/sntp/tests/run-kodDatabase.c b/sntp/tests/run-kodDatabase.c new file mode 100644 index 000000000..7fc96783e --- /dev/null +++ b/sntp/tests/run-kodDatabase.c @@ -0,0 +1,59 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include +#include + +//=======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(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *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); + + return (UnityEnd()); +} diff --git a/sntp/tests/run-networking.c b/sntp/tests/run-networking.c new file mode 100644 index 000000000..d5e822c71 --- /dev/null +++ b/sntp/tests/run-networking.c @@ -0,0 +1,49 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "networking.c"; + UnityBegin("networking.c"); + + return (UnityEnd()); +} diff --git a/tests/libntp/Makefile.am b/tests/libntp/Makefile.am index fe69230c9..ac509eb17 100644 --- a/tests/libntp/Makefile.am +++ b/tests/libntp/Makefile.am @@ -98,7 +98,7 @@ tests_SOURCES = \ recvbuff.cpp \ g_refnumtoa.cpp \ sfptostr.cpp \ - socktoa.cpp \ + g_socktoa.cpp \ g_ssl_init.cpp \ g_statestr.cpp \ strtolfp.cpp \