#include <stdio.h>
#include "config.h"
#include "ntp_types.h"
-#include "log.h"
//=======External Functions This Runner Calls=====
extern void setUp(void);
extern void tearDown(void);
extern void testChangePrognameInMysyslog(void);
+extern void testOpenLogfileTest(void);
extern void testWriteInCustomLogfile(void);
setUp();
}
-const char *progname;
+char *progname;
//=======MAIN=====
progname = argv[0];
UnityBegin("t-log.c");
RUN_TEST(testChangePrognameInMysyslog, 9);
- RUN_TEST(testWriteInCustomLogfile, 32);
+ RUN_TEST(testOpenLogfileTest, 10);
+ RUN_TEST(testWriteInCustomLogfile, 35);
return (UnityEnd());
}
void
test_IPv6AddressOnly(void) {
-#ifdef ISC_PLATFORM_HAVEIPV6
-
+//#ifdef ISC_PLATFORM_HAVEIPV6 //looks like HAVEIPV6 checks if system has IPV6 capabilies. WANTIPV6 can be changed with build --disable-ipv6
+#ifdef ISC_PLATFORM_WANTIPV6
const struct in6_addr address = {
0x20, 0x01, 0x0d, 0xb8,
0x85, 0xa3, 0x08, 0xd3,
void
test_IPv6AddressWithPort(void) {
-#ifdef ISC_PLATFORM_HAVEIPV6
+#ifdef ISC_PLATFORM_WANTIPV6
const struct in6_addr address = {
0x20, 0x01, 0x0d, 0xb8,
void
test_IPv6AddressWithPort(void) {
-#ifdef ISC_PLATFORM_HAVEIPV6
+#ifdef ISC_PLATFORM_WANTIPV6
const struct in6_addr address = {
0x20, 0x01, 0x0d, 0xb8,
void
test_IgnoreIPv6Fields(void) {
-#ifdef ISC_PLATFORM_HAVEIPV6
+#ifdef ISC_PLATFORM_WANTIPV6
const struct in6_addr address = {
0x20, 0x01, 0x0d, 0xb8,
run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
check_PROGRAMS = \
- test-ntp_scanner \
- test-ntp_signd \
+ test-ntpq \
$(NULL)
$(NULL)
###
-test_ntp_signd_CFLAGS = \
+test_ntpq_CFLAGS = \
-I$(top_srcdir)/sntp/unity \
- -Iwhy.h \
$(NULL)
-test_ntp_signd_LDADD = \
+test_ntpq_LDADD = \
$(unity_tests_LDADD) \
- $(top_builddir)/ntpd/libntpd.a \
- $(unity_tests_LDADD) \
- $(top_builddir)/ntpd/ntp_config.o \
- $(top_builddir)/ntpd/ntp_io.o \
- $(NULL)
-
-# $(top_builddir)/ntpd/ntp_signd.o #not needed if you #include the file.c
-
-test_ntp_signd_SOURCES = \
- t-ntp_signd.c \
- run-t-ntp_signd.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(srcdir)/../../ntpd/ntp_signd.c \
- $(NULL)
-
-$(srcdir)/run-t-ntp_signd.c: $(srcdir)/t-ntp_signd.c $(std_unity_list)
- $(run_unity) t-ntp_signd.c run-t-ntp_signd.c
-
-###
-test_ntp_scanner_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_ntp_scanner_LDADD = \
- $(unity_tests_LDADD) \
- $(top_builddir)/ntpd/ntp_scanner.o \
$(NULL)
-test_ntp_scanner_SOURCES = \
- ntp_scanner.c \
- run-ntp_scanner.c \
- $(srcdir)/../libntp/test-libntp.c \
+test_ntpq_SOURCES = \
+ t-ntpq.c \
+ run-t-ntpq.c \
$(NULL)
-$(srcdir)/run-ntp_scanner.c: $(srcdir)/ntp_scanner.c $(std_unity_list)
- $(run_unity) ntp_scanner.c run-ntp_scanner.c
+$(srcdir)/run-t-ntpq.c: $(srcdir)/t-ntpq.c $(std_unity_list)
+ $(run_unity) t-ntpq.c run-t-ntpq.c
--- /dev/null
+#include "config.h"
+
+#include "ntp.h"
+#include "ntp_stdlib.h"
+
+#include "unity.h"
+
+
+void testPrimary(void);
+
+void testPrimary(void){
+
+
+}