summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/sntp/tests/run-keyFile.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/tests/run-keyFile.c')
-rw-r--r--contrib/ntp/sntp/tests/run-keyFile.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/contrib/ntp/sntp/tests/run-keyFile.c b/contrib/ntp/sntp/tests/run-keyFile.c
new file mode 100644
index 0000000..0a6380d
--- /dev/null
+++ b/contrib/ntp/sntp/tests/run-keyFile.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 <setjmp.h>
+#include <stdio.h>
+
+//=======External Functions This Runner Calls=====
+extern void setUp(void);
+extern void tearDown(void);
+extern void test_ReadEmptyKeyFile();
+extern void test_ReadASCIIKeys();
+extern void test_ReadHexKeys();
+extern void test_ReadKeyFileWithComments();
+extern void test_ReadKeyFileWithInvalidHex();
+
+
+//=======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");
+ RUN_TEST(test_ReadEmptyKeyFile, 53);
+ RUN_TEST(test_ReadASCIIKeys, 61);
+ RUN_TEST(test_ReadHexKeys, 79);
+ RUN_TEST(test_ReadKeyFileWithComments, 105);
+ RUN_TEST(test_ReadKeyFileWithInvalidHex, 124);
+
+ return (UnityEnd());
+}
OpenPOWER on IntegriCloud