]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
added autogenerated files
authorTomasz Flendrich <tflendrich@ntp.org>
Fri, 19 Jun 2015 06:20:32 +0000 (06:20 +0000)
committerTomasz Flendrich <tflendrich@ntp.org>
Fri, 19 Jun 2015 06:20:32 +0000 (06:20 +0000)
bk: 5583b4b0hgmlQM37e1PKAPoCF7yFOg

12 files changed:
tests/libntp/run-caltontp.c [new file with mode: 0644]
tests/libntp/run-msyslog.c [new file with mode: 0644]
tests/libntp/run-prettydate.c [new file with mode: 0644]
tests/libntp/run-recvbuff.c [new file with mode: 0644]
tests/libntp/run-tstotv.c [new file with mode: 0644]
tests/libntp/test-caltontp.c [new file with mode: 0644]
tests/libntp/test-msyslog.c [new file with mode: 0644]
tests/libntp/test-prettydate.c [new file with mode: 0644]
tests/libntp/test-recvbuff.c [new file with mode: 0644]
tests/libntp/test-ssl_init.c [new file with mode: 0644]
tests/libntp/test-tstotv.c [new file with mode: 0644]
tests/libntp/test-vi64ops.c [new file with mode: 0644]

diff --git a/tests/libntp/run-caltontp.c b/tests/libntp/run-caltontp.c
new file mode 100644 (file)
index 0000000..b7b6626
--- /dev/null
@@ -0,0 +1,57 @@
+/* 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_DateGivenMonthDay(void);
+extern void test_DateGivenYearDay(void);
+extern void test_DateLeapYear(void);
+extern void test_WraparoundDateIn2036(void);
+
+
+//=======Test Reset Option=====
+void resetTest()
+{
+  tearDown();
+  setUp();
+}
+
+char *progname;
+
+
+//=======MAIN=====
+int main(int argc, char *argv[])
+{
+  progname = argv[0];
+  Unity.TestFile = "caltontp.c";
+  UnityBegin("caltontp.c");
+  RUN_TEST(test_DateGivenMonthDay, 6);
+  RUN_TEST(test_DateGivenYearDay, 16);
+  RUN_TEST(test_DateLeapYear, 27);
+  RUN_TEST(test_WraparoundDateIn2036, 40);
+
+  return (UnityEnd());
+}
diff --git a/tests/libntp/run-msyslog.c b/tests/libntp/run-msyslog.c
new file mode 100644 (file)
index 0000000..8ec7c24
--- /dev/null
@@ -0,0 +1,65 @@
+/* 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_msnprintf(void);
+extern void test_msnprintfLiteralPercentm(void);
+extern void test_msnprintfBackslashLiteralPercentm(void);
+extern void test_msnprintfBackslashPercent(void);
+extern void test_msnprintfHangingPercent(void);
+extern void test_format_errmsgHangingPercent(void);
+extern void test_msnprintfNullTarget(void);
+extern void test_msnprintfTruncate(void);
+
+
+//=======Test Reset Option=====
+void resetTest()
+{
+  tearDown();
+  setUp();
+}
+
+char *progname;
+
+
+//=======MAIN=====
+int main(int argc, char *argv[])
+{
+  progname = argv[0];
+  Unity.TestFile = "msyslog.c";
+  UnityBegin("msyslog.c");
+  RUN_TEST(test_msnprintf, 15);
+  RUN_TEST(test_msnprintfLiteralPercentm, 31);
+  RUN_TEST(test_msnprintfBackslashLiteralPercentm, 46);
+  RUN_TEST(test_msnprintfBackslashPercent, 60);
+  RUN_TEST(test_msnprintfHangingPercent, 75);
+  RUN_TEST(test_format_errmsgHangingPercent, 92);
+  RUN_TEST(test_msnprintfNullTarget, 107);
+  RUN_TEST(test_msnprintfTruncate, 118);
+
+  return (UnityEnd());
+}
diff --git a/tests/libntp/run-prettydate.c b/tests/libntp/run-prettydate.c
new file mode 100644 (file)
index 0000000..cafdad4
--- /dev/null
@@ -0,0 +1,51 @@
+/* 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_ConstantDate(void);
+
+
+//=======Test Reset Option=====
+void resetTest()
+{
+  tearDown();
+  setUp();
+}
+
+char *progname;
+
+
+//=======MAIN=====
+int main(int argc, char *argv[])
+{
+  progname = argv[0];
+  Unity.TestFile = "prettydate.c";
+  UnityBegin("prettydate.c");
+  RUN_TEST(test_ConstantDate, 9);
+
+  return (UnityEnd());
+}
diff --git a/tests/libntp/run-recvbuff.c b/tests/libntp/run-recvbuff.c
new file mode 100644 (file)
index 0000000..75adc6b
--- /dev/null
@@ -0,0 +1,55 @@
+/* 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_Initialization(void);
+extern void test_GetAndFree(void);
+extern void test_GetAndFill(void);
+
+
+//=======Test Reset Option=====
+void resetTest()
+{
+  tearDown();
+  setUp();
+}
+
+char *progname;
+
+
+//=======MAIN=====
+int main(int argc, char *argv[])
+{
+  progname = argv[0];
+  Unity.TestFile = "recvbuff.c";
+  UnityBegin("recvbuff.c");
+  RUN_TEST(test_Initialization, 16);
+  RUN_TEST(test_GetAndFree, 24);
+  RUN_TEST(test_GetAndFill, 35);
+
+  return (UnityEnd());
+}
diff --git a/tests/libntp/run-tstotv.c b/tests/libntp/run-tstotv.c
new file mode 100644 (file)
index 0000000..34807b3
--- /dev/null
@@ -0,0 +1,55 @@
+/* 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_Seconds(void);
+extern void test_MicrosecondsExact(void);
+extern void test_MicrosecondsRounding(void);
+
+
+//=======Test Reset Option=====
+void resetTest()
+{
+  tearDown();
+  setUp();
+}
+
+char *progname;
+
+
+//=======MAIN=====
+int main(int argc, char *argv[])
+{
+  progname = argv[0];
+  Unity.TestFile = "tstotv.c";
+  UnityBegin("tstotv.c");
+  RUN_TEST(test_Seconds, 7);
+  RUN_TEST(test_MicrosecondsExact, 19);
+  RUN_TEST(test_MicrosecondsRounding, 33);
+
+  return (UnityEnd());
+}
diff --git a/tests/libntp/test-caltontp.c b/tests/libntp/test-caltontp.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/libntp/test-msyslog.c b/tests/libntp/test-msyslog.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/libntp/test-prettydate.c b/tests/libntp/test-prettydate.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/libntp/test-recvbuff.c b/tests/libntp/test-recvbuff.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/libntp/test-ssl_init.c b/tests/libntp/test-ssl_init.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/libntp/test-tstotv.c b/tests/libntp/test-tstotv.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/libntp/test-vi64ops.c b/tests/libntp/test-vi64ops.c
new file mode 100644 (file)
index 0000000..e69de29