]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
run-keyFile.c, run-networking.c, run-kodDatabase.c:
authorDamir Tomic <viperus@ntp.org>
Thu, 18 Jun 2015 07:04:46 +0000 (09:04 +0200)
committerDamir Tomic <viperus@ntp.org>
Thu, 18 Jun 2015 07:04:46 +0000 (09:04 +0200)
  new file
Makefile.am:
  hopefully fixing bug-2852

bk: 55826d8eA6B4tNPWyiVc0SodqbI40A

sntp/tests/run-keyFile.c [new file with mode: 0644]
sntp/tests/run-kodDatabase.c [new file with mode: 0644]
sntp/tests/run-networking.c [new file with mode: 0644]
tests/libntp/Makefile.am

diff --git a/sntp/tests/run-keyFile.c b/sntp/tests/run-keyFile.c
new file mode 100644 (file)
index 0000000..a87c229
--- /dev/null
@@ -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 <setjmp.h>
+#include <stdio.h>
+
+//=======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 (file)
index 0000000..7fc9678
--- /dev/null
@@ -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 <setjmp.h>
+#include <stdio.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();
+
+
+//=======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 (file)
index 0000000..d5e822c
--- /dev/null
@@ -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 <setjmp.h>
+#include <stdio.h>
+
+//=======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());
+}
index fe69230c9e9f18d24b831ab7b9ea3c74785cc1f2..ac509eb1783d709e69897fdf3cd7345e9b3845ef 100644 (file)
@@ -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            \