check_PROGRAMS = \
test-leapsec \
test-rc_cmdlength \
+ test-ntp_signd \
$(NULL)
if GTEST_AVAILABLE
g_ntpdtest.cpp \
$(top_srcdir)/ntpd/ntp_leapsec.c \
$(top_srcdir)/ntpd/rc_cmdlength.c \
+ $(top_srcdir)/ntpd/ntp_signd.c \
g_leapsec.cpp \
$(NULL)
BUILT_SOURCES += \
$(srcdir)/run-leapsec.c \
$(srcdir)/run-rc_cmdlength.c \
+ $(srcdir)/run-ntp_signd.c \
$(NULL)
noinst_HEADERS = g_ntpdtest.h \
$(srcdir)/run-rc_cmdlength.c: $(srcdir)/rc_cmdlength.c $(std_unity_list)
$(run_unity) rc_cmdlength.c run-rc_cmdlength.c
+###
+test_ntp_signd_CFLAGS = \
+ -I$(top_srcdir)/sntp/unity \
+ $(NULL)
+
+test_ntp_signd_LDADD = \
+ $(unity_tests_LDADD) \
+ $(NULL)
+
+test_ntp_signd_SOURCES = \
+ ntp_signd.c \
+ run-ntp_signd.c \
+ $(srcdir)/../libntp/test-libntp.c \
+ $(NULL)
+
+$(srcdir)/run-ntp_signd.c: $(srcdir)/ntp_signd.c $(std_unity_list)
+ $(run_unity) ntp_signd.c run-ntp_signd.c
+
TESTS =
--- /dev/null
+/* 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);
+void resetTest(void);
+extern void test_ux_socket_connect(void);
+
+
+//=======Test Reset Option=====
+void resetTest()
+{
+ tearDown();
+ setUp();
+}
+
+char *progname;
+
+
+//=======MAIN=====
+int main(int argc, char *argv[])
+{
+ progname = argv[0];
+ Unity.TestFile = "ntp_signd.c";
+ UnityBegin("ntp_signd.c");
+ RUN_TEST(test_ux_socket_connect, 13);
+
+ return (UnityEnd());
+}