check_PROGRAMS = \
test-leapsec \
test-rc_cmdlength \
- test-ntp_signd \
+ test-ntp_scanner \
$(NULL)
if GTEST_AVAILABLE
$(NULL)
test_ntp_signd_LDADD = \
+ $(top_builddir)/ntpd/libntpd.a \
$(unity_tests_LDADD) \
$(NULL)
$(srcdir)/run-ntp_signd.c: $(srcdir)/ntp_signd.c $(std_unity_list)
$(run_unity) ntp_signd.c run-ntp_signd.c
+###
+test_ntp_scanner_CFLAGS = \
+ -I$(top_srcdir)/sntp/unity \
+ $(NULL)
+
+test_ntp_scanner_LDADD = \
+ $(unity_tests_LDADD) \
+ $(NULL)
+
+test_ntp_scanner_SOURCES = \
+ ntp_scanner.c \
+ run-ntp_scanner.c \
+ $(srcdir)/../libntp/test-libntp.c \
+ $(NULL)
+
+$(srcdir)/run-ntp_scanner.c: $(srcdir)/ntp_scanner.c $(std_unity_list)
+ $(run_unity) ntp_scanner.c run-ntp_scanner.c
+
TESTS =
#include "unity.h"
#include <setjmp.h>
#include <stdio.h>
+#include "config.h"
+#include "ntp.h"
+#include "ntp_calendar.h"
+#include "ntp_stdlib.h"
+#include "test-libntp.h"
//=======External Functions This Runner Calls=====
extern void setUp(void);
extern void tearDown(void);
-void resetTest(void);
extern void test_ux_socket_connect(void);
+extern void test_write_all(void);
//=======Test Reset Option=====
-void resetTest()
+void resetTest(void);
+void resetTest(void)
{
tearDown();
setUp();
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);
+ RUN_TEST(test_write_all, 24);
return (UnityEnd());
}