summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/tests
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/tests')
-rw-r--r--contrib/ntp/tests/Makefile.am12
-rw-r--r--contrib/ntp/tests/Makefile.in801
-rw-r--r--contrib/ntp/tests/bug-2803/Makefile.am72
-rw-r--r--contrib/ntp/tests/bug-2803/Makefile.in1267
-rw-r--r--contrib/ntp/tests/bug-2803/bug-2803.c123
-rw-r--r--contrib/ntp/tests/bug-2803/run-bug-2803.c58
-rw-r--r--contrib/ntp/tests/libntp/Makefile.am568
-rw-r--r--contrib/ntp/tests/libntp/Makefile.in2736
-rw-r--r--contrib/ntp/tests/libntp/a_md5encrypt.c115
-rw-r--r--contrib/ntp/tests/libntp/atoint.c60
-rw-r--r--contrib/ntp/tests/libntp/atouint.c51
-rw-r--r--contrib/ntp/tests/libntp/authkeys.c198
-rw-r--r--contrib/ntp/tests/libntp/buftvtots.c97
-rw-r--r--contrib/ntp/tests/libntp/calendar.c737
-rw-r--r--contrib/ntp/tests/libntp/caljulian.c153
-rw-r--r--contrib/ntp/tests/libntp/caltontp.c53
-rw-r--r--contrib/ntp/tests/libntp/calyearstart.c49
-rw-r--r--contrib/ntp/tests/libntp/clocktime.c246
-rw-r--r--contrib/ntp/tests/libntp/decodenetnum.c150
-rw-r--r--contrib/ntp/tests/libntp/hextoint.c53
-rw-r--r--contrib/ntp/tests/libntp/hextolfp.c75
-rw-r--r--contrib/ntp/tests/libntp/humandate.c56
-rw-r--r--contrib/ntp/tests/libntp/lfpfunc.c545
-rw-r--r--contrib/ntp/tests/libntp/lfptest.c11
-rw-r--r--contrib/ntp/tests/libntp/lfptest.h16
-rw-r--r--contrib/ntp/tests/libntp/lfptostr.c134
-rw-r--r--contrib/ntp/tests/libntp/modetoa.c33
-rw-r--r--contrib/ntp/tests/libntp/msyslog.c164
-rw-r--r--contrib/ntp/tests/libntp/netof.c107
-rw-r--r--contrib/ntp/tests/libntp/numtoa.c36
-rw-r--r--contrib/ntp/tests/libntp/numtohost.c31
-rw-r--r--contrib/ntp/tests/libntp/octtoint.c96
-rw-r--r--contrib/ntp/tests/libntp/prettydate.c31
-rw-r--r--contrib/ntp/tests/libntp/recvbuff.c49
-rw-r--r--contrib/ntp/tests/libntp/refidsmear.c151
-rw-r--r--contrib/ntp/tests/libntp/refnumtoa.c76
-rw-r--r--contrib/ntp/tests/libntp/run-a_md5encrypt.c62
-rw-r--r--contrib/ntp/tests/libntp/run-atoint.c64
-rw-r--r--contrib/ntp/tests/libntp/run-atouint.c63
-rw-r--r--contrib/ntp/tests/libntp/run-authkeys.c68
-rw-r--r--contrib/ntp/tests/libntp/run-buftvtots.c63
-rw-r--r--contrib/ntp/tests/libntp/run-calendar.c88
-rw-r--r--contrib/ntp/tests/libntp/run-caljulian.c62
-rw-r--r--contrib/ntp/tests/libntp/run-caltontp.c59
-rw-r--r--contrib/ntp/tests/libntp/run-calyearstart.c59
-rw-r--r--contrib/ntp/tests/libntp/run-clocktime.c69
-rw-r--r--contrib/ntp/tests/libntp/run-decodenetnum.c64
-rw-r--r--contrib/ntp/tests/libntp/run-hextoint.c63
-rw-r--r--contrib/ntp/tests/libntp/run-hextolfp.c65
-rw-r--r--contrib/ntp/tests/libntp/run-humandate.c56
-rw-r--r--contrib/ntp/tests/libntp/run-lfpfunc.c72
-rw-r--r--contrib/ntp/tests/libntp/run-lfptostr.c74
-rw-r--r--contrib/ntp/tests/libntp/run-modetoa.c55
-rw-r--r--contrib/ntp/tests/libntp/run-msyslog.c67
-rw-r--r--contrib/ntp/tests/libntp/run-netof.c61
-rw-r--r--contrib/ntp/tests/libntp/run-numtoa.c56
-rw-r--r--contrib/ntp/tests/libntp/run-numtohost.c54
-rw-r--r--contrib/ntp/tests/libntp/run-octtoint.c65
-rw-r--r--contrib/ntp/tests/libntp/run-prettydate.c55
-rw-r--r--contrib/ntp/tests/libntp/run-recvbuff.c57
-rw-r--r--contrib/ntp/tests/libntp/run-refidsmear.c56
-rw-r--r--contrib/ntp/tests/libntp/run-refnumtoa.c56
-rw-r--r--contrib/ntp/tests/libntp/run-sfptostr.c68
-rw-r--r--contrib/ntp/tests/libntp/run-socktoa.c65
-rw-r--r--contrib/ntp/tests/libntp/run-ssl_init.c61
-rw-r--r--contrib/ntp/tests/libntp/run-statestr.c61
-rw-r--r--contrib/ntp/tests/libntp/run-strtolfp.c67
-rw-r--r--contrib/ntp/tests/libntp/run-timespecops.c111
-rw-r--r--contrib/ntp/tests/libntp/run-timevalops.c110
-rw-r--r--contrib/ntp/tests/libntp/run-tsafememcmp.c64
-rw-r--r--contrib/ntp/tests/libntp/run-tstotv.c58
-rw-r--r--contrib/ntp/tests/libntp/run-tvtots.c59
-rw-r--r--contrib/ntp/tests/libntp/run-uglydate.c54
-rw-r--r--contrib/ntp/tests/libntp/run-vi64ops.c58
-rw-r--r--contrib/ntp/tests/libntp/run-ymd2yd.c59
-rw-r--r--contrib/ntp/tests/libntp/sfptostr.c94
-rw-r--r--contrib/ntp/tests/libntp/sockaddrtest.c51
-rw-r--r--contrib/ntp/tests/libntp/sockaddrtest.h13
-rw-r--r--contrib/ntp/tests/libntp/socktoa.c158
-rw-r--r--contrib/ntp/tests/libntp/ssl_init.c69
-rw-r--r--contrib/ntp/tests/libntp/statestr.c48
-rw-r--r--contrib/ntp/tests/libntp/strtolfp.c133
-rw-r--r--contrib/ntp/tests/libntp/test-libntp.c27
-rw-r--r--contrib/ntp/tests/libntp/test-libntp.h8
-rw-r--r--contrib/ntp/tests/libntp/timespecops.c797
-rw-r--r--contrib/ntp/tests/libntp/timevalops.c804
-rw-r--r--contrib/ntp/tests/libntp/tsafememcmp.c85
-rw-r--r--contrib/ntp/tests/libntp/tstotv.c49
-rw-r--r--contrib/ntp/tests/libntp/tvtots.c64
-rw-r--r--contrib/ntp/tests/libntp/uglydate.c30
-rw-r--r--contrib/ntp/tests/libntp/vi64ops.c80
-rw-r--r--contrib/ntp/tests/libntp/ymd2yd.c37
-rw-r--r--contrib/ntp/tests/ntpd/Makefile.am221
-rw-r--r--contrib/ntp/tests/ntpd/Makefile.in1754
-rw-r--r--contrib/ntp/tests/ntpd/leapsec.c1388
-rw-r--r--contrib/ntp/tests/ntpd/ntp_prio_q.c263
-rw-r--r--contrib/ntp/tests/ntpd/ntp_restrict.c199
-rw-r--r--contrib/ntp/tests/ntpd/rc_cmdlength.c39
-rw-r--r--contrib/ntp/tests/ntpd/run-leapsec.c122
-rw-r--r--contrib/ntp/tests/ntpd/run-ntp_prio_q.c69
-rw-r--r--contrib/ntp/tests/ntpd/run-ntp_restrict.c68
-rw-r--r--contrib/ntp/tests/ntpd/run-rc_cmdlength.c58
-rw-r--r--contrib/ntp/tests/ntpd/run-t-ntp_scanner.c72
-rw-r--r--contrib/ntp/tests/ntpd/run-t-ntp_signd.c66
-rw-r--r--contrib/ntp/tests/ntpd/t-ntp_scanner.c136
-rw-r--r--contrib/ntp/tests/ntpd/t-ntp_signd.c185
-rw-r--r--contrib/ntp/tests/ntpq/Makefile.am97
-rw-r--r--contrib/ntp/tests/ntpq/Makefile.in1287
-rw-r--r--contrib/ntp/tests/ntpq/run-t-ntpq.c54
-rw-r--r--contrib/ntp/tests/ntpq/t-ntpq.c37
-rw-r--r--contrib/ntp/tests/sandbox/Makefile.am98
-rw-r--r--contrib/ntp/tests/sandbox/Makefile.in1335
-rw-r--r--contrib/ntp/tests/sandbox/bug-2803.c99
-rw-r--r--contrib/ntp/tests/sandbox/modetoa.c20
-rw-r--r--contrib/ntp/tests/sandbox/run-modetoa.c53
-rw-r--r--contrib/ntp/tests/sandbox/run-uglydate.c54
-rw-r--r--contrib/ntp/tests/sandbox/run-ut-2803.c61
-rw-r--r--contrib/ntp/tests/sandbox/smeartest.c186
-rw-r--r--contrib/ntp/tests/sandbox/uglydate.c31
-rw-r--r--contrib/ntp/tests/sandbox/ut-2803.c80
-rw-r--r--contrib/ntp/tests/sec-2853/Makefile.am80
-rw-r--r--contrib/ntp/tests/sec-2853/Makefile.in1274
-rw-r--r--contrib/ntp/tests/sec-2853/run-sec-2853.c53
-rw-r--r--contrib/ntp/tests/sec-2853/sec-2853.c117
124 files changed, 0 insertions, 23941 deletions
diff --git a/contrib/ntp/tests/Makefile.am b/contrib/ntp/tests/Makefile.am
deleted file mode 100644
index af502b9..0000000
--- a/contrib/ntp/tests/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-NULL =
-SUBDIRS =
-
-SUBDIRS += \
- bug-2803 \
- libntp \
- ntpd \
- ntpq \
- sandbox \
- sec-2853 \
- $(NULL)
-
diff --git a/contrib/ntp/tests/Makefile.in b/contrib/ntp/tests/Makefile.in
deleted file mode 100644
index 597b377..0000000
--- a/contrib/ntp/tests/Makefile.in
+++ /dev/null
@@ -1,801 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
- $(top_srcdir)/sntp/libopts/m4/stdnoreturn.m4 \
- $(top_srcdir)/sntp/m4/ax_c99_struct_init.m4 \
- $(top_srcdir)/sntp/m4/define_dir.m4 \
- $(top_srcdir)/sntp/m4/hms_search_lib.m4 \
- $(top_srcdir)/sntp/m4/libtool.m4 \
- $(top_srcdir)/sntp/m4/ltoptions.m4 \
- $(top_srcdir)/sntp/m4/ltsugar.m4 \
- $(top_srcdir)/sntp/m4/ltversion.m4 \
- $(top_srcdir)/sntp/m4/lt~obsolete.m4 \
- $(top_srcdir)/sntp/m4/ntp_cacheversion.m4 \
- $(top_srcdir)/sntp/m4/ntp_compiler.m4 \
- $(top_srcdir)/sntp/m4/ntp_crosscompile.m4 \
- $(top_srcdir)/sntp/m4/ntp_crypto_rand.m4 \
- $(top_srcdir)/sntp/m4/ntp_debug.m4 \
- $(top_srcdir)/sntp/m4/ntp_dir_sep.m4 \
- $(top_srcdir)/sntp/m4/ntp_facilitynames.m4 \
- $(top_srcdir)/sntp/m4/ntp_googletest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ipv6.m4 \
- $(top_srcdir)/sntp/m4/ntp_lib_m.m4 \
- $(top_srcdir)/sntp/m4/ntp_libevent.m4 \
- $(top_srcdir)/sntp/m4/ntp_libntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_lineeditlibs.m4 \
- $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \
- $(top_srcdir)/sntp/m4/ntp_openssl.m4 \
- $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \
- $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \
- $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \
- $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \
- $(top_srcdir)/sntp/m4/ntp_sntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_unitytest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ver_suffix.m4 \
- $(top_srcdir)/sntp/m4/ntp_vpathhack.m4 \
- $(top_srcdir)/sntp/m4/openldap-thread-check.m4 \
- $(top_srcdir)/sntp/m4/openldap.m4 \
- $(top_srcdir)/sntp/m4/os_cflags.m4 \
- $(top_srcdir)/sntp/m4/snprintf.m4 \
- $(top_srcdir)/sntp/m4/version.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
- ctags-recursive dvi-recursive html-recursive info-recursive \
- install-data-recursive install-dvi-recursive \
- install-exec-recursive install-html-recursive \
- install-info-recursive install-pdf-recursive \
- install-ps-recursive install-recursive installcheck-recursive \
- installdirs-recursive pdf-recursive ps-recursive \
- tags-recursive uninstall-recursive
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-am__recursive_targets = \
- $(RECURSIVE_TARGETS) \
- $(RECURSIVE_CLEAN_TARGETS) \
- $(am__extra_recursive_targets)
-AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
- distdir
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-am__DIST_COMMON = $(srcdir)/Makefile.in
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-am__relativize = \
- dir0=`pwd`; \
- sed_first='s,^\([^/]*\)/.*$$,\1,'; \
- sed_rest='s,^[^/]*/*,,'; \
- sed_last='s,^.*/\([^/]*\)$$,\1,'; \
- sed_butlast='s,/*[^/]*$$,,'; \
- while test -n "$$dir1"; do \
- first=`echo "$$dir1" | sed -e "$$sed_first"`; \
- if test "$$first" != "."; then \
- if test "$$first" = ".."; then \
- dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
- dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
- else \
- first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
- if test "$$first2" = "$$first"; then \
- dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
- else \
- dir2="../$$dir2"; \
- fi; \
- dir0="$$dir0"/"$$first"; \
- fi; \
- fi; \
- dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
- done; \
- reldir="$$dir2"
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BUILD_THREAD = @BUILD_THREAD@
-CALC_TICKADJ_DB = @CALC_TICKADJ_DB@
-CALC_TICKADJ_DL = @CALC_TICKADJ_DL@
-CALC_TICKADJ_DS = @CALC_TICKADJ_DS@
-CALC_TICKADJ_MS = @CALC_TICKADJ_MS@
-CALC_TICKADJ_NI = @CALC_TICKADJ_NI@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@
-CFLAGS_NTP = @CFLAGS_NTP@
-CHUTEST = @CHUTEST@
-CONFIG_SHELL = @CONFIG_SHELL@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CPPFLAGS_LIBEVENT = @CPPFLAGS_LIBEVENT@
-CPPFLAGS_NTP = @CPPFLAGS_NTP@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCFD = @DCFD@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EDITLINE_LIBS = @EDITLINE_LIBS@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-GTEST_CONFIG = @GTEST_CONFIG@
-GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
-GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
-GTEST_LDFLAGS = @GTEST_LDFLAGS@
-GTEST_LIBS = @GTEST_LIBS@
-HAVE_INLINE = @HAVE_INLINE@
-HAVE_LEAPSMEARINTERVAL = @HAVE_LEAPSMEARINTERVAL@
-HAVE_RLIMIT_MEMLOCK = @HAVE_RLIMIT_MEMLOCK@
-HAVE_RLIMIT_STACK = @HAVE_RLIMIT_STACK@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDADD_LIBEVENT = @LDADD_LIBEVENT@
-LDADD_LIBNTP = @LDADD_LIBNTP@
-LDADD_LIBUTIL = @LDADD_LIBUTIL@
-LDADD_NLIST = @LDADD_NLIST@
-LDADD_NTP = @LDADD_NTP@
-LDFLAGS = @LDFLAGS@
-LDFLAGS_NTP = @LDFLAGS_NTP@
-LIBISC_PTHREADS_NOTHREADS = @LIBISC_PTHREADS_NOTHREADS@
-LIBM = @LIBM@
-LIBOBJS = @LIBOBJS@
-LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
-LIBOPTS_DIR = @LIBOPTS_DIR@
-LIBOPTS_LDADD = @LIBOPTS_LDADD@
-LIBPARSE = @LIBPARSE@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LSCF = @LSCF@
-LTHREAD_LIBS = @LTHREAD_LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAKE_ADJTIMED = @MAKE_ADJTIMED@
-MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
-MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
-MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
-MAKE_LIBPARSE = @MAKE_LIBPARSE@
-MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
-MAKE_NTPDSIM = @MAKE_NTPDSIM@
-MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
-MAKE_NTPTIME = @MAKE_NTPTIME@
-MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
-MAKE_TICKADJ = @MAKE_TICKADJ@
-MAKE_TIMETRIM = @MAKE_TIMETRIM@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MANTAGFMT = @MANTAGFMT@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NTPDATE_DB = @NTPDATE_DB@
-NTPDATE_DL = @NTPDATE_DL@
-NTPDATE_DS = @NTPDATE_DS@
-NTPDATE_MS = @NTPDATE_MS@
-NTPDATE_NI = @NTPDATE_NI@
-NTPDC_DB = @NTPDC_DB@
-NTPDC_DL = @NTPDC_DL@
-NTPDC_DS = @NTPDC_DS@
-NTPDC_MS = @NTPDC_MS@
-NTPDC_NI = @NTPDC_NI@
-NTPDSIM_DB = @NTPDSIM_DB@
-NTPDSIM_DL = @NTPDSIM_DL@
-NTPDSIM_DS = @NTPDSIM_DS@
-NTPDSIM_MS = @NTPDSIM_MS@
-NTPDSIM_NI = @NTPDSIM_NI@
-NTPD_DB = @NTPD_DB@
-NTPD_DL = @NTPD_DL@
-NTPD_DS = @NTPD_DS@
-NTPD_MS = @NTPD_MS@
-NTPD_NI = @NTPD_NI@
-NTPQ_DB = @NTPQ_DB@
-NTPQ_DL = @NTPQ_DL@
-NTPQ_DS = @NTPQ_DS@
-NTPQ_MS = @NTPQ_MS@
-NTPQ_NI = @NTPQ_NI@
-NTPSNMPD_DB = @NTPSNMPD_DB@
-NTPSNMPD_DL = @NTPSNMPD_DL@
-NTPSNMPD_DS = @NTPSNMPD_DS@
-NTPSNMPD_MS = @NTPSNMPD_MS@
-NTPSNMPD_NI = @NTPSNMPD_NI@
-NTPSWEEP_DB = @NTPSWEEP_DB@
-NTPSWEEP_DL = @NTPSWEEP_DL@
-NTPSWEEP_DS = @NTPSWEEP_DS@
-NTPSWEEP_MS = @NTPSWEEP_MS@
-NTPSWEEP_NI = @NTPSWEEP_NI@
-NTPTIME_DB = @NTPTIME_DB@
-NTPTIME_DL = @NTPTIME_DL@
-NTPTIME_DS = @NTPTIME_DS@
-NTPTIME_MS = @NTPTIME_MS@
-NTPTIME_NI = @NTPTIME_NI@
-NTPTRACE_DB = @NTPTRACE_DB@
-NTPTRACE_DL = @NTPTRACE_DL@
-NTPTRACE_DS = @NTPTRACE_DS@
-NTPTRACE_MS = @NTPTRACE_MS@
-NTPTRACE_NI = @NTPTRACE_NI@
-NTP_KEYGEN_DB = @NTP_KEYGEN_DB@
-NTP_KEYGEN_DL = @NTP_KEYGEN_DL@
-NTP_KEYGEN_DS = @NTP_KEYGEN_DS@
-NTP_KEYGEN_MS = @NTP_KEYGEN_MS@
-NTP_KEYGEN_NI = @NTP_KEYGEN_NI@
-NTP_KEYSDIR = @NTP_KEYSDIR@
-NTP_WAIT_DB = @NTP_WAIT_DB@
-NTP_WAIT_DL = @NTP_WAIT_DL@
-NTP_WAIT_DS = @NTP_WAIT_DS@
-NTP_WAIT_MS = @NTP_WAIT_MS@
-NTP_WAIT_NI = @NTP_WAIT_NI@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
-PATH_PERL = @PATH_PERL@
-PATH_RUBY = @PATH_RUBY@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TEST = @PATH_TEST@
-PERLLIBDIR = @PERLLIBDIR@
-PKG_CONFIG = @PKG_CONFIG@
-POSIX_SHELL = @POSIX_SHELL@
-PROPDELAY = @PROPDELAY@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SNMP_CFLAGS = @SNMP_CFLAGS@
-SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
-SNMP_LIBS = @SNMP_LIBS@
-SNTP = @SNTP@
-SNTP_DB = @SNTP_DB@
-SNTP_DL = @SNTP_DL@
-SNTP_DS = @SNTP_DS@
-SNTP_MS = @SNTP_MS@
-SNTP_NI = @SNTP_NI@
-STDNORETURN_H = @STDNORETURN_H@
-STRIP = @STRIP@
-TESTDCF = @TESTDCF@
-TICKADJ_DB = @TICKADJ_DB@
-TICKADJ_DL = @TICKADJ_DL@
-TICKADJ_DS = @TICKADJ_DS@
-TICKADJ_MS = @TICKADJ_MS@
-TICKADJ_NI = @TICKADJ_NI@
-TIMETRIM_DB = @TIMETRIM_DB@
-TIMETRIM_DL = @TIMETRIM_DL@
-TIMETRIM_DS = @TIMETRIM_DS@
-TIMETRIM_MS = @TIMETRIM_MS@
-TIMETRIM_NI = @TIMETRIM_NI@
-UPDATE_LEAP_DB = @UPDATE_LEAP_DB@
-UPDATE_LEAP_DL = @UPDATE_LEAP_DL@
-UPDATE_LEAP_DS = @UPDATE_LEAP_DS@
-UPDATE_LEAP_MS = @UPDATE_LEAP_MS@
-UPDATE_LEAP_NI = @UPDATE_LEAP_NI@
-VERSION = @VERSION@
-VER_SUFFIX = @VER_SUFFIX@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-NULL =
-SUBDIRS = bug-2803 libntp ntpd ntpq sandbox sec-2853 $(NULL)
-all: all-recursive
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign tests/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run 'make' without going through this Makefile.
-# To change the values of 'make' variables: instead of editing Makefiles,
-# (1) if the variable is set in 'config.status', edit 'config.status'
-# (which will cause the Makefiles to be regenerated when you run 'make');
-# (2) otherwise, pass the desired values on the 'make' command line.
-$(am__recursive_targets):
- @fail=; \
- if $(am__make_keepgoing); then \
- failcom='fail=yes'; \
- else \
- failcom='exit 1'; \
- fi; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-recursive
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-recursive
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-recursive
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- $(am__make_dryrun) \
- || test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
- $(am__relativize); \
- new_distdir=$$reldir; \
- dir1=$$subdir; dir2="$(top_distdir)"; \
- $(am__relativize); \
- new_top_distdir=$$reldir; \
- echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
- echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
- ($(am__cd) $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$new_top_distdir" \
- distdir="$$new_distdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- am__skip_mode_fix=: \
- distdir) \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-recursive
-all-am: Makefile
-installdirs: installdirs-recursive
-installdirs-am:
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-recursive
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-recursive
- -rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: $(am__recursive_targets) install-am install-strip
-
-.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
- check-am clean clean-generic clean-libtool cscopelist-am ctags \
- ctags-am distclean distclean-generic distclean-libtool \
- distclean-tags distdir dvi dvi-am html html-am info info-am \
- install install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- installdirs-am maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
- ps ps-am tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/contrib/ntp/tests/bug-2803/Makefile.am b/contrib/ntp/tests/bug-2803/Makefile.am
deleted file mode 100644
index 1e0cd9c..0000000
--- a/contrib/ntp/tests/bug-2803/Makefile.am
+++ /dev/null
@@ -1,72 +0,0 @@
-#AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
-NULL =
-BUILT_SOURCES =
-CLEANFILES =
-
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-check_PROGRAMS = bug-2803
-
-# HMS: we may not need some of these:
-LDADD = \
- $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-# HMS: we may not need some of these:
-AM_CPPFLAGS = $(NTP_INCS)
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-AM_CPPFLAGS += -I$(top_srcdir)/include
-AM_CPPFLAGS += $(CPPFLAGS_NTP)
-AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-
-AM_LDFLAGS = $(LDFLAGS_NTP)
-
-bug_2803_SOURCES = \
- bug-2803.c \
- run-bug-2803.c \
- $(NULL)
-
-$(srcdir)/run-bug-2803.c: $(srcdir)/bug-2803.c $(std_unity_list)
- $(run_unity) bug-2803.c run-bug-2803.c
-
-# HMS: we may not need some of these:
-#noinst_HEADERS = ntpdtest.h \
-# $(NULL)
-
-TESTS =
-
-if !NTP_CROSSCOMPILE
-TESTS += $(check_PROGRAMS)
-endif
-
-## check-libntp.mf - automake fragment
-## slightly adapted for deeper directory
-
-BUILT_SOURCES += check-libntp check-libunity
-CLEANFILES += check-libntp check-libunity
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-include $(top_srcdir)/depsver.mf
-include $(top_srcdir)/includes.mf
diff --git a/contrib/ntp/tests/bug-2803/Makefile.in b/contrib/ntp/tests/bug-2803/Makefile.in
deleted file mode 100644
index 7febe6a..0000000
--- a/contrib/ntp/tests/bug-2803/Makefile.in
+++ /dev/null
@@ -1,1267 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-check_PROGRAMS = bug-2803$(EXEEXT)
-@NTP_CROSSCOMPILE_FALSE@am__append_1 = $(check_PROGRAMS)
-subdir = tests/bug-2803
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
- $(top_srcdir)/sntp/libopts/m4/stdnoreturn.m4 \
- $(top_srcdir)/sntp/m4/ax_c99_struct_init.m4 \
- $(top_srcdir)/sntp/m4/define_dir.m4 \
- $(top_srcdir)/sntp/m4/hms_search_lib.m4 \
- $(top_srcdir)/sntp/m4/libtool.m4 \
- $(top_srcdir)/sntp/m4/ltoptions.m4 \
- $(top_srcdir)/sntp/m4/ltsugar.m4 \
- $(top_srcdir)/sntp/m4/ltversion.m4 \
- $(top_srcdir)/sntp/m4/lt~obsolete.m4 \
- $(top_srcdir)/sntp/m4/ntp_cacheversion.m4 \
- $(top_srcdir)/sntp/m4/ntp_compiler.m4 \
- $(top_srcdir)/sntp/m4/ntp_crosscompile.m4 \
- $(top_srcdir)/sntp/m4/ntp_crypto_rand.m4 \
- $(top_srcdir)/sntp/m4/ntp_debug.m4 \
- $(top_srcdir)/sntp/m4/ntp_dir_sep.m4 \
- $(top_srcdir)/sntp/m4/ntp_facilitynames.m4 \
- $(top_srcdir)/sntp/m4/ntp_googletest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ipv6.m4 \
- $(top_srcdir)/sntp/m4/ntp_lib_m.m4 \
- $(top_srcdir)/sntp/m4/ntp_libevent.m4 \
- $(top_srcdir)/sntp/m4/ntp_libntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_lineeditlibs.m4 \
- $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \
- $(top_srcdir)/sntp/m4/ntp_openssl.m4 \
- $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \
- $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \
- $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \
- $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \
- $(top_srcdir)/sntp/m4/ntp_sntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_unitytest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ver_suffix.m4 \
- $(top_srcdir)/sntp/m4/ntp_vpathhack.m4 \
- $(top_srcdir)/sntp/m4/openldap-thread-check.m4 \
- $(top_srcdir)/sntp/m4/openldap.m4 \
- $(top_srcdir)/sntp/m4/os_cflags.m4 \
- $(top_srcdir)/sntp/m4/snprintf.m4 \
- $(top_srcdir)/sntp/m4/version.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__objects_1 =
-am_bug_2803_OBJECTS = bug-2803.$(OBJEXT) run-bug-2803.$(OBJEXT) \
- $(am__objects_1)
-bug_2803_OBJECTS = $(am_bug_2803_OBJECTS)
-bug_2803_LDADD = $(LDADD)
-am__DEPENDENCIES_1 =
-bug_2803_DEPENDENCIES = $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/sntp/libevent/build-aux/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(bug_2803_SOURCES)
-DIST_SOURCES = $(bug_2803_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depsver.mf \
- $(top_srcdir)/includes.mf \
- $(top_srcdir)/sntp/libevent/build-aux/depcomp \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BUILD_THREAD = @BUILD_THREAD@
-CALC_TICKADJ_DB = @CALC_TICKADJ_DB@
-CALC_TICKADJ_DL = @CALC_TICKADJ_DL@
-CALC_TICKADJ_DS = @CALC_TICKADJ_DS@
-CALC_TICKADJ_MS = @CALC_TICKADJ_MS@
-CALC_TICKADJ_NI = @CALC_TICKADJ_NI@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@
-CFLAGS_NTP = @CFLAGS_NTP@
-CHUTEST = @CHUTEST@
-CONFIG_SHELL = @CONFIG_SHELL@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CPPFLAGS_LIBEVENT = @CPPFLAGS_LIBEVENT@
-CPPFLAGS_NTP = @CPPFLAGS_NTP@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCFD = @DCFD@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EDITLINE_LIBS = @EDITLINE_LIBS@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-GTEST_CONFIG = @GTEST_CONFIG@
-GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
-GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
-GTEST_LDFLAGS = @GTEST_LDFLAGS@
-GTEST_LIBS = @GTEST_LIBS@
-HAVE_INLINE = @HAVE_INLINE@
-HAVE_LEAPSMEARINTERVAL = @HAVE_LEAPSMEARINTERVAL@
-HAVE_RLIMIT_MEMLOCK = @HAVE_RLIMIT_MEMLOCK@
-HAVE_RLIMIT_STACK = @HAVE_RLIMIT_STACK@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDADD_LIBEVENT = @LDADD_LIBEVENT@
-LDADD_LIBNTP = @LDADD_LIBNTP@
-LDADD_LIBUTIL = @LDADD_LIBUTIL@
-LDADD_NLIST = @LDADD_NLIST@
-LDADD_NTP = @LDADD_NTP@
-LDFLAGS = @LDFLAGS@
-LDFLAGS_NTP = @LDFLAGS_NTP@
-LIBISC_PTHREADS_NOTHREADS = @LIBISC_PTHREADS_NOTHREADS@
-LIBM = @LIBM@
-LIBOBJS = @LIBOBJS@
-LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
-LIBOPTS_DIR = @LIBOPTS_DIR@
-LIBOPTS_LDADD = @LIBOPTS_LDADD@
-LIBPARSE = @LIBPARSE@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LSCF = @LSCF@
-LTHREAD_LIBS = @LTHREAD_LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAKE_ADJTIMED = @MAKE_ADJTIMED@
-MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
-MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
-MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
-MAKE_LIBPARSE = @MAKE_LIBPARSE@
-MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
-MAKE_NTPDSIM = @MAKE_NTPDSIM@
-MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
-MAKE_NTPTIME = @MAKE_NTPTIME@
-MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
-MAKE_TICKADJ = @MAKE_TICKADJ@
-MAKE_TIMETRIM = @MAKE_TIMETRIM@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MANTAGFMT = @MANTAGFMT@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NTPDATE_DB = @NTPDATE_DB@
-NTPDATE_DL = @NTPDATE_DL@
-NTPDATE_DS = @NTPDATE_DS@
-NTPDATE_MS = @NTPDATE_MS@
-NTPDATE_NI = @NTPDATE_NI@
-NTPDC_DB = @NTPDC_DB@
-NTPDC_DL = @NTPDC_DL@
-NTPDC_DS = @NTPDC_DS@
-NTPDC_MS = @NTPDC_MS@
-NTPDC_NI = @NTPDC_NI@
-NTPDSIM_DB = @NTPDSIM_DB@
-NTPDSIM_DL = @NTPDSIM_DL@
-NTPDSIM_DS = @NTPDSIM_DS@
-NTPDSIM_MS = @NTPDSIM_MS@
-NTPDSIM_NI = @NTPDSIM_NI@
-NTPD_DB = @NTPD_DB@
-NTPD_DL = @NTPD_DL@
-NTPD_DS = @NTPD_DS@
-NTPD_MS = @NTPD_MS@
-NTPD_NI = @NTPD_NI@
-NTPQ_DB = @NTPQ_DB@
-NTPQ_DL = @NTPQ_DL@
-NTPQ_DS = @NTPQ_DS@
-NTPQ_MS = @NTPQ_MS@
-NTPQ_NI = @NTPQ_NI@
-NTPSNMPD_DB = @NTPSNMPD_DB@
-NTPSNMPD_DL = @NTPSNMPD_DL@
-NTPSNMPD_DS = @NTPSNMPD_DS@
-NTPSNMPD_MS = @NTPSNMPD_MS@
-NTPSNMPD_NI = @NTPSNMPD_NI@
-NTPSWEEP_DB = @NTPSWEEP_DB@
-NTPSWEEP_DL = @NTPSWEEP_DL@
-NTPSWEEP_DS = @NTPSWEEP_DS@
-NTPSWEEP_MS = @NTPSWEEP_MS@
-NTPSWEEP_NI = @NTPSWEEP_NI@
-NTPTIME_DB = @NTPTIME_DB@
-NTPTIME_DL = @NTPTIME_DL@
-NTPTIME_DS = @NTPTIME_DS@
-NTPTIME_MS = @NTPTIME_MS@
-NTPTIME_NI = @NTPTIME_NI@
-NTPTRACE_DB = @NTPTRACE_DB@
-NTPTRACE_DL = @NTPTRACE_DL@
-NTPTRACE_DS = @NTPTRACE_DS@
-NTPTRACE_MS = @NTPTRACE_MS@
-NTPTRACE_NI = @NTPTRACE_NI@
-NTP_KEYGEN_DB = @NTP_KEYGEN_DB@
-NTP_KEYGEN_DL = @NTP_KEYGEN_DL@
-NTP_KEYGEN_DS = @NTP_KEYGEN_DS@
-NTP_KEYGEN_MS = @NTP_KEYGEN_MS@
-NTP_KEYGEN_NI = @NTP_KEYGEN_NI@
-NTP_KEYSDIR = @NTP_KEYSDIR@
-NTP_WAIT_DB = @NTP_WAIT_DB@
-NTP_WAIT_DL = @NTP_WAIT_DL@
-NTP_WAIT_DS = @NTP_WAIT_DS@
-NTP_WAIT_MS = @NTP_WAIT_MS@
-NTP_WAIT_NI = @NTP_WAIT_NI@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
-PATH_PERL = @PATH_PERL@
-PATH_RUBY = @PATH_RUBY@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TEST = @PATH_TEST@
-PERLLIBDIR = @PERLLIBDIR@
-PKG_CONFIG = @PKG_CONFIG@
-POSIX_SHELL = @POSIX_SHELL@
-PROPDELAY = @PROPDELAY@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SNMP_CFLAGS = @SNMP_CFLAGS@
-SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
-SNMP_LIBS = @SNMP_LIBS@
-SNTP = @SNTP@
-SNTP_DB = @SNTP_DB@
-SNTP_DL = @SNTP_DL@
-SNTP_DS = @SNTP_DS@
-SNTP_MS = @SNTP_MS@
-SNTP_NI = @SNTP_NI@
-STDNORETURN_H = @STDNORETURN_H@
-STRIP = @STRIP@
-TESTDCF = @TESTDCF@
-TICKADJ_DB = @TICKADJ_DB@
-TICKADJ_DL = @TICKADJ_DL@
-TICKADJ_DS = @TICKADJ_DS@
-TICKADJ_MS = @TICKADJ_MS@
-TICKADJ_NI = @TICKADJ_NI@
-TIMETRIM_DB = @TIMETRIM_DB@
-TIMETRIM_DL = @TIMETRIM_DL@
-TIMETRIM_DS = @TIMETRIM_DS@
-TIMETRIM_MS = @TIMETRIM_MS@
-TIMETRIM_NI = @TIMETRIM_NI@
-UPDATE_LEAP_DB = @UPDATE_LEAP_DB@
-UPDATE_LEAP_DL = @UPDATE_LEAP_DL@
-UPDATE_LEAP_DS = @UPDATE_LEAP_DS@
-UPDATE_LEAP_MS = @UPDATE_LEAP_MS@
-UPDATE_LEAP_NI = @UPDATE_LEAP_NI@
-VERSION = @VERSION@
-VER_SUFFIX = @VER_SUFFIX@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-
-#AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
-NULL =
-BUILT_SOURCES = check-libntp check-libunity .deps-ver
-CLEANFILES = check-libntp check-libunity .deps-ver
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-# HMS: we may not need some of these:
-LDADD = \
- $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-# HMS: we may not need some of these:
-AM_CPPFLAGS = $(NTP_INCS) -I$(top_srcdir)/sntp/unity \
- -I$(top_srcdir)/include $(CPPFLAGS_NTP) \
- -DUNITY_INCLUDE_CONFIG_H -I$(top_srcdir)/sntp/unity
-AM_LDFLAGS = $(LDFLAGS_NTP)
-bug_2803_SOURCES = \
- bug-2803.c \
- run-bug-2803.c \
- $(NULL)
-
-
-# HMS: we may not need some of these:
-#noinst_HEADERS = ntpdtest.h \
-# $(NULL)
-TESTS = $(am__append_1)
-NTP_INCS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
- -I$(top_srcdir)/lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/include \
- -I$(top_srcdir)/lib/isc/unix/include
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/bug-2803/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign tests/bug-2803/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__empty):
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-
-bug-2803$(EXEEXT): $(bug_2803_OBJECTS) $(bug_2803_DEPENDENCIES) $(EXTRA_bug_2803_DEPENDENCIES)
- @rm -f bug-2803$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(bug_2803_OBJECTS) $(bug_2803_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bug-2803.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-bug-2803.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- elif test -n "$$redo_logs"; then \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-bug-2803.log: bug-2803$(EXEEXT)
- @p='bug-2803$(EXEEXT)'; \
- b='bug-2803'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile
-installdirs:
-install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: all check check-am install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
- ctags ctags-am distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- recheck tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-$(srcdir)/run-bug-2803.c: $(srcdir)/bug-2803.c $(std_unity_list)
- $(run_unity) bug-2803.c run-bug-2803.c
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
- @[ -f $@ ] || \
- cp $(top_srcdir)/deps-ver $@
- @[ -w $@ ] || \
- chmod ug+w $@
- @cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
- $(MAKE) $(AM_MAKEFLAGS) clean && \
- echo -n "Prior $(subdir)/$(DEPDIR) version " && \
- cat $@ && \
- rm -rf $(DEPDIR) && \
- mkdir $(DEPDIR) && \
- case "$(top_builddir)" in \
- .) \
- ./config.status Makefile depfiles \
- ;; \
- *) \
- cd "$(top_builddir)" && \
- ./config.status $(subdir)/Makefile depfiles && \
- cd $(subdir) \
- ;; \
- esac && \
- echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
- cat $(top_srcdir)/deps-ver \
- )
- cp $(top_srcdir)/deps-ver $@
-
-.deps-ver: $(top_srcdir)/deps-ver
- @[ ! -d $(DEPDIR) ] || $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/deps-ver
- @touch $@
-
-#
-# depsver.mf included in Makefile.am for directories with .deps
-#
-# When building in the same directory with sources that change over
-# time, such as when tracking using bk, the .deps files can become
-# stale with respect to moved, deleted, or superceded headers. Most
-# commonly, this would exhibit as make reporting a failure to make a
-# header file which is no longer in the location given. To address
-# this issue, we use a deps-ver file which is updated with each change
-# that breaks old .deps files. A copy of deps-ver is made into
-# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
-# with different contents than deps-ver, we make clean to ensure all
-# .o files built before the incompatible change are rebuilt along with
-# their updated .deps files, then remove $(DEPDIR) and recreate it as
-# empty stubs.
-#
-# It is normal when configured with --disable-dependency-tracking for
-# the DEPDIR to not have been created. For this reason, we use the
-# intermediate target .deps-ver, which invokes make recursively if
-# DEPDIR exists.
-#
-# If you modify depsver.mf, please make the changes to the master
-# copy, the one in sntp is copied by the bootstrap script from it.
-#
-# This comment block follows rather than leads the related code so that
-# it stays with it in the generated Makefile.in and Makefile.
-#
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/contrib/ntp/tests/bug-2803/bug-2803.c b/contrib/ntp/tests/bug-2803/bug-2803.c
deleted file mode 100644
index df9dcde..0000000
--- a/contrib/ntp/tests/bug-2803/bug-2803.c
+++ /dev/null
@@ -1,123 +0,0 @@
-#include <config.h>
-
-#include <stdio.h>
-#include <sys/time.h>
-
-#include <ntp_fp.h>
-#include <timevalops.h>
-
-#include "unity.h"
-//#include "bug-2803.h"
-
-/* microseconds per second */
-#define MICROSECONDS 1000000
-
-int simpleTest(void);
-void setUp(void);
-void tearDown(void);
-void test_main(void);
-
-static int verbose = 1; // if not 0, also print results if test passed
-static int exit_on_err = 0; // if not 0, exit if test failed
-
-
-/*
- * Test function calling the old and new code mentioned in
- * http://bugs.ntp.org/show_bug.cgi?id=2803#c22
- */
-static int do_test( struct timeval timetv, struct timeval tvlast )
-{
- struct timeval tvdiff_old;
- struct timeval tvdiff_new;
-
- int cond_old;
- int cond_new;
- int failed;
-
- cond_old = 0;
- cond_new = 0;
-
- // Here is the old code:
- tvdiff_old = abs_tval(sub_tval(timetv, tvlast));
- if (tvdiff_old.tv_sec > 0) {
- cond_old = 1;
- }
-
- // Here is the new code:
- tvdiff_new = sub_tval(timetv, tvlast);
- if (tvdiff_new.tv_sec != 0) {
- cond_new = 1;
- }
-
- failed = cond_new != cond_old;
-
- if ( failed || verbose )
- printf( "timetv %lli|%07li, tvlast %lli|%07li: tvdiff_old: %lli|%07li -> %i, tvdiff_new: %lli|%07li -> %i, same cond: %s\n",
- (long long) timetv.tv_sec, timetv.tv_usec,
- (long long) tvlast.tv_sec, tvlast.tv_usec,
- (long long) tvdiff_old.tv_sec, tvdiff_old.tv_usec, cond_old,
- (long long) tvdiff_new.tv_sec, tvdiff_new.tv_usec, cond_new,
- failed ? "NO <<" : "yes" );
-
- return failed ? -1 : 0;
-}
-
-
-
-/*
- * Call the test function in a loop for a given set of parameters.
- * Both timetv and tvlast iterate over the given range, in all combinations.
- */
-static
-int test_loop( long long start_sec, long start_usec,
- long long stop_sec, long stop_usec,
- long long step_sec, long step_usec )
-{
- struct timeval timetv;
- struct timeval tvlast;
-
- for ( timetv.tv_sec = start_sec; timetv.tv_sec <= stop_sec; timetv.tv_sec += step_sec )
- for ( timetv.tv_usec = start_usec; timetv.tv_usec <= stop_usec; timetv.tv_usec += step_usec )
- for ( tvlast.tv_sec = start_sec; tvlast.tv_sec <= stop_sec; tvlast.tv_sec += step_sec )
- for ( tvlast.tv_usec = start_usec; tvlast.tv_usec <= stop_usec; tvlast.tv_usec += step_usec )
- {
- int rc = do_test( timetv, tvlast );
- if (rc < 0 && exit_on_err )
- return rc;
- }
-
- return 0;
-}
-
-
-
-int simpleTest( void )
-{
- int x;
- // loop from {0.0} to {1.1000000} stepping by tv_sec by 1 and tv_usec by 100000
- x = test_loop( 0, 0, 1, MICROSECONDS, 1, MICROSECONDS / 10 );
-
- // x = test_loop( 0, 0, 5, MICROSECONDS, 1, MICROSECONDS / 1000 );
- // x = test_loop( 0, 0, -5, -MICROSECONDS, -1, -MICROSECONDS / 1000 );
-
- return x;
-}
-
-
-
-
-
-void setUp(void)
-{
-
-}
-
-void tearDown(void)
-{
-}
-
-
-void test_main( void )
-{
- TEST_ASSERT_EQUAL(0, simpleTest());
-}
diff --git a/contrib/ntp/tests/bug-2803/run-bug-2803.c b/contrib/ntp/tests/bug-2803/run-bug-2803.c
deleted file mode 100644
index f4066f2..0000000
--- a/contrib/ntp/tests/bug-2803/run-bug-2803.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* 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>
-#include <config.h>
-#include <stdio.h>
-#include <sys/time.h>
-#include <ntp_fp.h>
-#include <timevalops.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_main(void);
-extern void test_main(void );
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("bug-2803.c");
- RUN_TEST(test_main, 18);
- RUN_TEST(test_main, 18);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/Makefile.am b/contrib/ntp/tests/libntp/Makefile.am
deleted file mode 100644
index f8360a9..0000000
--- a/contrib/ntp/tests/libntp/Makefile.am
+++ /dev/null
@@ -1,568 +0,0 @@
-NULL =
-BUILT_SOURCES =
-CLEANFILES =
-
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-check_PROGRAMS = \
- test-a_md5encrypt \
- test-atoint \
- test-atouint \
- test-authkeys \
- test-buftvtots \
- test-calendar \
- test-caljulian \
- test-caltontp \
- test-calyearstart \
- test-clocktime \
- test-decodenetnum \
- test-hextoint \
- test-hextolfp \
- test-humandate \
- test-lfpfunc \
- test-lfptostr \
- test-modetoa \
- test-msyslog \
- test-netof \
- test-numtoa \
- test-numtohost \
- test-octtoint \
- test-prettydate \
- test-recvbuff \
- test-refidsmear \
- test-refnumtoa \
- test-sfptostr \
- test-socktoa \
- test-ssl_init \
- test-statestr \
- test-strtolfp \
- test-timespecops \
- test-timevalops \
- test-tsafememcmp \
- test-tstotv \
- test-tvtots \
- test-uglydate \
- test-vi64ops \
- test-ymd2yd \
- $(NULL)
-
-LDADD = \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(LIBM) \
- $(top_builddir)/sntp/unity/libunity.a \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-AM_CPPFLAGS = $(NTP_INCS)
-AM_CPPFLAGS += -I$(top_srcdir)/sntp
-AM_CPPFLAGS += $(CPPFLAGS_NTP)
-AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-
-AM_LDFLAGS = $(LDFLAGS_NTP)
-
-BUILT_SOURCES += \
- $(srcdir)/run-a_md5encrypt.c \
- $(srcdir)/run-atoint.c \
- $(srcdir)/run-atouint.c \
- $(srcdir)/run-authkeys.c \
- $(srcdir)/run-buftvtots.c \
- $(srcdir)/run-calendar.c \
- $(srcdir)/run-caljulian.c \
- $(srcdir)/run-caltontp.c \
- $(srcdir)/run-calyearstart.c \
- $(srcdir)/run-clocktime.c \
- $(srcdir)/run-decodenetnum.c \
- $(srcdir)/run-hextoint.c \
- $(srcdir)/run-hextolfp.c \
- $(srcdir)/run-humandate.c \
- $(srcdir)/run-lfpfunc.c \
- $(srcdir)/run-lfptostr.c \
- $(srcdir)/run-modetoa.c \
- $(srcdir)/run-msyslog.c \
- $(srcdir)/run-netof.c \
- $(srcdir)/run-numtoa.c \
- $(srcdir)/run-numtohost.c \
- $(srcdir)/run-octtoint.c \
- $(srcdir)/run-prettydate.c \
- $(srcdir)/run-recvbuff.c \
- $(srcdir)/run-refidsmear.c \
- $(srcdir)/run-refnumtoa.c \
- $(srcdir)/run-sfptostr.c \
- $(srcdir)/run-socktoa.c \
- $(srcdir)/run-ssl_init.c \
- $(srcdir)/run-statestr.c \
- $(srcdir)/run-strtolfp.c \
- $(srcdir)/run-timevalops.c \
- $(srcdir)/run-timespecops.c \
- $(srcdir)/run-tsafememcmp.c \
- $(srcdir)/run-tstotv.c \
- $(srcdir)/run-tvtots.c \
- $(srcdir)/run-uglydate.c \
- $(srcdir)/run-vi64ops.c \
- $(srcdir)/run-ymd2yd.c \
- $(NULL)
-
-noinst_HEADERS = \
- lfptest.h \
- sockaddrtest.h \
- test-libntp.h \
- $(NULL)
-
-###
-
-test_a_md5encrypt_SOURCES = \
- a_md5encrypt.c \
- run-a_md5encrypt.c \
- $(NULL)
-
-$(srcdir)/run-a_md5encrypt.c: $(srcdir)/a_md5encrypt.c $(std_unity_list)
- $(run_unity) a_md5encrypt.c run-a_md5encrypt.c
-
-###
-
-test_atoint_SOURCES = \
- atoint.c \
- run-atoint.c \
- $(NULL)
-
-$(srcdir)/run-atoint.c: $(srcdir)/atoint.c $(std_unity_list)
- $(run_unity) atoint.c run-atoint.c
-
-###
-
-test_atouint_SOURCES = \
- atouint.c \
- run-atouint.c \
- $(NULL)
-
-$(srcdir)/run-atouint.c: $(srcdir)/atouint.c $(std_unity_list)
- $(run_unity) atouint.c run-atouint.c
-
-###
-
-test_authkeys_SOURCES = \
- authkeys.c \
- run-authkeys.c \
- $(NULL)
-
-$(srcdir)/run-authkeys.c: $(srcdir)/authkeys.c $(std_unity_list)
- $(run_unity) authkeys.c run-authkeys.c
-
-###
-
-test_buftvtots_SOURCES = \
- buftvtots.c \
- run-buftvtots.c \
- lfptest.c \
- $(NULL)
-
-$(srcdir)/run-buftvtots.c: $(srcdir)/buftvtots.c $(std_unity_list)
- $(run_unity) buftvtots.c run-buftvtots.c
-
-###
-
-test_calendar_SOURCES = \
- calendar.c \
- run-calendar.c \
- test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-calendar.c: $(srcdir)/calendar.c $(std_unity_list)
- $(run_unity) calendar.c run-calendar.c
-
-###
-
-test_caltontp_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_caltontp_SOURCES = \
- caltontp.c \
- run-caltontp.c \
- $(NULL)
-
-$(srcdir)/run-caltontp.c: $(srcdir)/caltontp.c $(std_unity_list)
- $(run_unity) caltontp.c run-caltontp.c
-
-###
-
-test_caljulian_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_caljulian_SOURCES = \
- caljulian.c \
- run-caljulian.c \
- test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-caljulian.c: $(srcdir)/caljulian.c $(std_unity_list)
- $(run_unity) caljulian.c run-caljulian.c
-
-###
-
-test_calyearstart_SOURCES = \
- calyearstart.c \
- run-calyearstart.c \
- test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-calyearstart.c: $(srcdir)/calyearstart.c $(std_unity_list)
- $(run_unity) calyearstart.c run-calyearstart.c
-
-###
-
-test_clocktime_SOURCES = \
- clocktime.c \
- run-clocktime.c \
- test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-clocktime.c: $(srcdir)/clocktime.c $(std_unity_list)
- $(run_unity) clocktime.c run-clocktime.c
-
-###
-
-test_decodenetnum_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_decodenetnum_SOURCES = \
- decodenetnum.c \
- run-decodenetnum.c \
- sockaddrtest.c \
- $(NULL)
-
-$(srcdir)/run-decodenetnum.c: $(srcdir)/decodenetnum.c $(std_unity_list)
- $(run_unity) decodenetnum.c run-decodenetnum.c
-
-###
-
-test_hextoint_SOURCES = \
- hextoint.c \
- run-hextoint.c \
- $(NULL)
-
-$(srcdir)/run-hextoint.c: $(srcdir)/hextoint.c $(std_unity_list)
- $(run_unity) hextoint.c run-hextoint.c
-
-###
-
-test_hextolfp_SOURCES = \
- hextolfp.c \
- run-hextolfp.c \
- lfptest.c \
- $(NULL)
-
-$(srcdir)/run-hextolfp.c: $(srcdir)/hextolfp.c $(std_unity_list)
- $(run_unity) hextolfp.c run-hextolfp.c
-
-###
-
-test_humandate_SOURCES = \
- humandate.c \
- run-humandate.c \
- $(NULL)
-
-$(srcdir)/run-humandate.c: $(srcdir)/humandate.c $(std_unity_list)
- $(run_unity) humandate.c run-humandate.c
-
-###
-
-test_lfpfunc_SOURCES = \
- lfpfunc.c \
- run-lfpfunc.c \
- $(NULL)
-
-$(srcdir)/run-lfpfunc.c: $(srcdir)/lfpfunc.c $(std_unity_list)
- $(run_unity) lfpfunc.c run-lfpfunc.c
-
-###
-
-test_lfptostr_SOURCES = \
- lfptostr.c \
- run-lfptostr.c \
- $(NULL)
-
-$(srcdir)/run-lfptostr.c: $(srcdir)/lfptostr.c $(std_unity_list)
- $(run_unity) lfptostr.c run-lfptostr.c
-
-###
-
-test_modetoa_SOURCES = \
- modetoa.c \
- run-modetoa.c \
- $(NULL)
-
-$(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
- $(run_unity) modetoa.c run-modetoa.c
-
-###
-
-test_msyslog_SOURCES = \
- msyslog.c \
- run-msyslog.c \
- $(NULL)
-
-$(srcdir)/run-msyslog.c: $(srcdir)/msyslog.c $(std_unity_list)
- $(run_unity) msyslog.c run-msyslog.c
-
-###
-
-test_netof_SOURCES = \
- netof.c \
- run-netof.c \
- sockaddrtest.c \
- $(NULL)
-
-$(srcdir)/run-netof.c: $(srcdir)/netof.c $(std_unity_list)
- $(run_unity) netof.c run-netof.c
-
-###
-
-test_numtoa_SOURCES = \
- numtoa.c \
- run-numtoa.c \
- $(NULL)
-
-$(srcdir)/run-numtoa.c: $(srcdir)/numtoa.c $(std_unity_list)
- $(run_unity) numtoa.c run-numtoa.c
-
-###
-
-test_numtohost_SOURCES = \
- numtohost.c \
- run-numtohost.c \
- $(NULL)
-
-$(srcdir)/run-numtohost.c: $(srcdir)/numtohost.c $(std_unity_list)
- $(run_unity) numtohost.c run-numtohost.c
-
-###
-
-test_octtoint_SOURCES = \
- octtoint.c \
- run-octtoint.c \
- $(NULL)
-
-$(srcdir)/run-octtoint.c: $(srcdir)/octtoint.c $(std_unity_list)
- $(run_unity) octtoint.c run-octtoint.c
-
-###
-
-test_prettydate_SOURCES = \
- prettydate.c \
- run-prettydate.c \
- $(NULL)
-
-$(srcdir)/run-prettydate.c: $(srcdir)/prettydate.c $(std_unity_list)
- $(run_unity) prettydate.c run-prettydate.c
-
-###
-
-test_recvbuff_SOURCES = \
- recvbuff.c \
- run-recvbuff.c \
- $(NULL)
-
-$(srcdir)/run-recvbuff.c: $(srcdir)/recvbuff.c $(std_unity_list)
- $(run_unity) recvbuff.c run-recvbuff.c
-
-###
-
-test_refidsmear_SOURCES = \
- refidsmear.c \
- run-refidsmear.c \
- $(NULL)
-
-$(srcdir)/run-refidsmear.c: $(srcdir)/refidsmear.c $(std_unity_list)
- $(run_unity) refidsmear.c run-refidsmear.c
-
-###
-
-test_refnumtoa_SOURCES = \
- refnumtoa.c \
- run-refnumtoa.c \
- $(NULL)
-
-$(srcdir)/run-refnumtoa.c: $(srcdir)/refnumtoa.c $(std_unity_list)
- $(run_unity) refnumtoa.c run-refnumtoa.c
-
-###
-
-test_sfptostr_SOURCES = \
- sfptostr.c \
- run-sfptostr.c \
- $(NULL)
-
-$(srcdir)/run-sfptostr.c: $(srcdir)/sfptostr.c $(std_unity_list)
- $(run_unity) sfptostr.c run-sfptostr.c
-
-###
-
-test_socktoa_SOURCES = \
- socktoa.c \
- run-socktoa.c \
- sockaddrtest.c \
- $(NULL)
-
-$(srcdir)/run-socktoa.c: $(srcdir)/socktoa.c $(std_unity_list)
- $(run_unity) socktoa.c run-socktoa.c
-
-###
-
-test_ssl_init_SOURCES = \
- ssl_init.c \
- run-ssl_init.c \
- $(NULL)
-
-$(srcdir)/run-ssl_init.c: $(srcdir)/ssl_init.c $(std_unity_list)
- $(run_unity) ssl_init.c run-ssl_init.c
-
-###
-
-test_statestr_SOURCES = \
- statestr.c \
- run-statestr.c \
- $(NULL)
-
-$(srcdir)/run-statestr.c: $(srcdir)/statestr.c $(std_unity_list)
- $(run_unity) statestr.c run-statestr.c
-
-###
-
-test_strtolfp_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_strtolfp_SOURCES = \
- strtolfp.c \
- run-strtolfp.c \
- lfptest.c \
- $(NULL)
-
-$(srcdir)/run-strtolfp.c: $(srcdir)/strtolfp.c $(std_unity_list)
- $(run_unity) strtolfp.c run-strtolfp.c
-
-###
-
-test_timespecops_SOURCES = \
- timespecops.c \
- run-timespecops.c \
- $(NULL)
-
-$(srcdir)/run-timespecops.c: $(srcdir)/timespecops.c $(std_unity_list)
- $(run_unity) timespecops.c run-timespecops.c
-
-###
-
-test_timevalops_SOURCES = \
- timevalops.c \
- run-timevalops.c \
- $(NULL)
-
-$(srcdir)/run-timevalops.c: $(srcdir)/timevalops.c $(std_unity_list)
- $(run_unity) timevalops.c run-timevalops.c
-
-###
-
-test_tsafememcmp_SOURCES = \
- tsafememcmp.c \
- run-tsafememcmp.c \
- $(NULL)
-
-$(srcdir)/run-tsafememcmp.c: $(srcdir)/tsafememcmp.c $(std_unity_list)
- $(run_unity) tsafememcmp.c run-tsafememcmp.c
-
-###
-
-test_tstotv_SOURCES = \
- tstotv.c \
- run-tstotv.c \
- $(NULL)
-
-$(srcdir)/run-tstotv.c: $(srcdir)/tstotv.c $(std_unity_list)
- $(run_unity) tstotv.c run-tstotv.c
-
-###
-
-test_tvtots_SOURCES = \
- tvtots.c \
- run-tvtots.c \
- lfptest.c \
- $(NULL)
-
-$(srcdir)/run-tvtots.c: $(srcdir)/tvtots.c $(std_unity_list)
- $(run_unity) tvtots.c run-tvtots.c
-
-###
-
-test_uglydate_SOURCES = \
- uglydate.c \
- run-uglydate.c \
- $(NULL)
-
-$(srcdir)/run-uglydate.c: $(srcdir)/uglydate.c $(std_unity_list)
- $(run_unity) uglydate.c run-uglydate.c
-
-###
-
-test_vi64ops_SOURCES = \
- vi64ops.c \
- run-vi64ops.c \
- $(NULL)
-
-$(srcdir)/run-vi64ops.c: $(srcdir)/vi64ops.c $(std_unity_list)
- $(run_unity) vi64ops.c run-vi64ops.c
-
-###
-
-test_ymd2yd_SOURCES = \
- ymd2yd.c \
- run-ymd2yd.c \
- $(NULL)
-
-$(srcdir)/run-ymd2yd.c: $(srcdir)/ymd2yd.c $(std_unity_list)
- $(run_unity) ymd2yd.c run-ymd2yd.c
-
-###
-
-TESTS =
-
-if !NTP_CROSSCOMPILE
-TESTS += $(check_PROGRAMS)
-endif
-
-## check-libntp.mf - automake fragment
-## slightly adapted for deeper directory
-
-BUILT_SOURCES += check-libntp check-libunity
-CLEANFILES += check-libntp check-libunity
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-include $(top_srcdir)/depsver.mf
-include $(top_srcdir)/includes.mf
diff --git a/contrib/ntp/tests/libntp/Makefile.in b/contrib/ntp/tests/libntp/Makefile.in
deleted file mode 100644
index 87dd319..0000000
--- a/contrib/ntp/tests/libntp/Makefile.in
+++ /dev/null
@@ -1,2736 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-check_PROGRAMS = test-a_md5encrypt$(EXEEXT) test-atoint$(EXEEXT) \
- test-atouint$(EXEEXT) test-authkeys$(EXEEXT) \
- test-buftvtots$(EXEEXT) test-calendar$(EXEEXT) \
- test-caljulian$(EXEEXT) test-caltontp$(EXEEXT) \
- test-calyearstart$(EXEEXT) test-clocktime$(EXEEXT) \
- test-decodenetnum$(EXEEXT) test-hextoint$(EXEEXT) \
- test-hextolfp$(EXEEXT) test-humandate$(EXEEXT) \
- test-lfpfunc$(EXEEXT) test-lfptostr$(EXEEXT) \
- test-modetoa$(EXEEXT) test-msyslog$(EXEEXT) \
- test-netof$(EXEEXT) test-numtoa$(EXEEXT) \
- test-numtohost$(EXEEXT) test-octtoint$(EXEEXT) \
- test-prettydate$(EXEEXT) test-recvbuff$(EXEEXT) \
- test-refidsmear$(EXEEXT) test-refnumtoa$(EXEEXT) \
- test-sfptostr$(EXEEXT) test-socktoa$(EXEEXT) \
- test-ssl_init$(EXEEXT) test-statestr$(EXEEXT) \
- test-strtolfp$(EXEEXT) test-timespecops$(EXEEXT) \
- test-timevalops$(EXEEXT) test-tsafememcmp$(EXEEXT) \
- test-tstotv$(EXEEXT) test-tvtots$(EXEEXT) \
- test-uglydate$(EXEEXT) test-vi64ops$(EXEEXT) \
- test-ymd2yd$(EXEEXT) $(am__EXEEXT_1)
-@NTP_CROSSCOMPILE_FALSE@am__append_1 = $(check_PROGRAMS)
-subdir = tests/libntp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
- $(top_srcdir)/sntp/libopts/m4/stdnoreturn.m4 \
- $(top_srcdir)/sntp/m4/ax_c99_struct_init.m4 \
- $(top_srcdir)/sntp/m4/define_dir.m4 \
- $(top_srcdir)/sntp/m4/hms_search_lib.m4 \
- $(top_srcdir)/sntp/m4/libtool.m4 \
- $(top_srcdir)/sntp/m4/ltoptions.m4 \
- $(top_srcdir)/sntp/m4/ltsugar.m4 \
- $(top_srcdir)/sntp/m4/ltversion.m4 \
- $(top_srcdir)/sntp/m4/lt~obsolete.m4 \
- $(top_srcdir)/sntp/m4/ntp_cacheversion.m4 \
- $(top_srcdir)/sntp/m4/ntp_compiler.m4 \
- $(top_srcdir)/sntp/m4/ntp_crosscompile.m4 \
- $(top_srcdir)/sntp/m4/ntp_crypto_rand.m4 \
- $(top_srcdir)/sntp/m4/ntp_debug.m4 \
- $(top_srcdir)/sntp/m4/ntp_dir_sep.m4 \
- $(top_srcdir)/sntp/m4/ntp_facilitynames.m4 \
- $(top_srcdir)/sntp/m4/ntp_googletest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ipv6.m4 \
- $(top_srcdir)/sntp/m4/ntp_lib_m.m4 \
- $(top_srcdir)/sntp/m4/ntp_libevent.m4 \
- $(top_srcdir)/sntp/m4/ntp_libntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_lineeditlibs.m4 \
- $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \
- $(top_srcdir)/sntp/m4/ntp_openssl.m4 \
- $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \
- $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \
- $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \
- $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \
- $(top_srcdir)/sntp/m4/ntp_sntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_unitytest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ver_suffix.m4 \
- $(top_srcdir)/sntp/m4/ntp_vpathhack.m4 \
- $(top_srcdir)/sntp/m4/openldap-thread-check.m4 \
- $(top_srcdir)/sntp/m4/openldap.m4 \
- $(top_srcdir)/sntp/m4/os_cflags.m4 \
- $(top_srcdir)/sntp/m4/snprintf.m4 \
- $(top_srcdir)/sntp/m4/version.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
- $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__EXEEXT_1 =
-am__objects_1 =
-am_test_a_md5encrypt_OBJECTS = a_md5encrypt.$(OBJEXT) \
- run-a_md5encrypt.$(OBJEXT) $(am__objects_1)
-test_a_md5encrypt_OBJECTS = $(am_test_a_md5encrypt_OBJECTS)
-test_a_md5encrypt_LDADD = $(LDADD)
-am__DEPENDENCIES_1 =
-test_a_md5encrypt_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-am_test_atoint_OBJECTS = atoint.$(OBJEXT) run-atoint.$(OBJEXT) \
- $(am__objects_1)
-test_atoint_OBJECTS = $(am_test_atoint_OBJECTS)
-test_atoint_LDADD = $(LDADD)
-test_atoint_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_atouint_OBJECTS = atouint.$(OBJEXT) run-atouint.$(OBJEXT) \
- $(am__objects_1)
-test_atouint_OBJECTS = $(am_test_atouint_OBJECTS)
-test_atouint_LDADD = $(LDADD)
-test_atouint_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_authkeys_OBJECTS = authkeys.$(OBJEXT) run-authkeys.$(OBJEXT) \
- $(am__objects_1)
-test_authkeys_OBJECTS = $(am_test_authkeys_OBJECTS)
-test_authkeys_LDADD = $(LDADD)
-test_authkeys_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_buftvtots_OBJECTS = buftvtots.$(OBJEXT) \
- run-buftvtots.$(OBJEXT) lfptest.$(OBJEXT) $(am__objects_1)
-test_buftvtots_OBJECTS = $(am_test_buftvtots_OBJECTS)
-test_buftvtots_LDADD = $(LDADD)
-test_buftvtots_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_calendar_OBJECTS = calendar.$(OBJEXT) run-calendar.$(OBJEXT) \
- test-libntp.$(OBJEXT) $(am__objects_1)
-test_calendar_OBJECTS = $(am_test_calendar_OBJECTS)
-test_calendar_LDADD = $(LDADD)
-test_calendar_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_caljulian_OBJECTS = test_caljulian-caljulian.$(OBJEXT) \
- test_caljulian-run-caljulian.$(OBJEXT) \
- test_caljulian-test-libntp.$(OBJEXT) $(am__objects_1)
-test_caljulian_OBJECTS = $(am_test_caljulian_OBJECTS)
-test_caljulian_LDADD = $(LDADD)
-test_caljulian_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-test_caljulian_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(test_caljulian_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \
- $@
-am_test_caltontp_OBJECTS = test_caltontp-caltontp.$(OBJEXT) \
- test_caltontp-run-caltontp.$(OBJEXT) $(am__objects_1)
-test_caltontp_OBJECTS = $(am_test_caltontp_OBJECTS)
-test_caltontp_LDADD = $(LDADD)
-test_caltontp_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-test_caltontp_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_caltontp_CFLAGS) \
- $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-am_test_calyearstart_OBJECTS = calyearstart.$(OBJEXT) \
- run-calyearstart.$(OBJEXT) test-libntp.$(OBJEXT) \
- $(am__objects_1)
-test_calyearstart_OBJECTS = $(am_test_calyearstart_OBJECTS)
-test_calyearstart_LDADD = $(LDADD)
-test_calyearstart_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_clocktime_OBJECTS = clocktime.$(OBJEXT) \
- run-clocktime.$(OBJEXT) test-libntp.$(OBJEXT) $(am__objects_1)
-test_clocktime_OBJECTS = $(am_test_clocktime_OBJECTS)
-test_clocktime_LDADD = $(LDADD)
-test_clocktime_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_decodenetnum_OBJECTS = \
- test_decodenetnum-decodenetnum.$(OBJEXT) \
- test_decodenetnum-run-decodenetnum.$(OBJEXT) \
- test_decodenetnum-sockaddrtest.$(OBJEXT) $(am__objects_1)
-test_decodenetnum_OBJECTS = $(am_test_decodenetnum_OBJECTS)
-test_decodenetnum_LDADD = $(LDADD)
-test_decodenetnum_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-test_decodenetnum_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(test_decodenetnum_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
- -o $@
-am_test_hextoint_OBJECTS = hextoint.$(OBJEXT) run-hextoint.$(OBJEXT) \
- $(am__objects_1)
-test_hextoint_OBJECTS = $(am_test_hextoint_OBJECTS)
-test_hextoint_LDADD = $(LDADD)
-test_hextoint_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_hextolfp_OBJECTS = hextolfp.$(OBJEXT) run-hextolfp.$(OBJEXT) \
- lfptest.$(OBJEXT) $(am__objects_1)
-test_hextolfp_OBJECTS = $(am_test_hextolfp_OBJECTS)
-test_hextolfp_LDADD = $(LDADD)
-test_hextolfp_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_humandate_OBJECTS = humandate.$(OBJEXT) \
- run-humandate.$(OBJEXT) $(am__objects_1)
-test_humandate_OBJECTS = $(am_test_humandate_OBJECTS)
-test_humandate_LDADD = $(LDADD)
-test_humandate_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_lfpfunc_OBJECTS = lfpfunc.$(OBJEXT) run-lfpfunc.$(OBJEXT) \
- $(am__objects_1)
-test_lfpfunc_OBJECTS = $(am_test_lfpfunc_OBJECTS)
-test_lfpfunc_LDADD = $(LDADD)
-test_lfpfunc_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_lfptostr_OBJECTS = lfptostr.$(OBJEXT) run-lfptostr.$(OBJEXT) \
- $(am__objects_1)
-test_lfptostr_OBJECTS = $(am_test_lfptostr_OBJECTS)
-test_lfptostr_LDADD = $(LDADD)
-test_lfptostr_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_modetoa_OBJECTS = modetoa.$(OBJEXT) run-modetoa.$(OBJEXT) \
- $(am__objects_1)
-test_modetoa_OBJECTS = $(am_test_modetoa_OBJECTS)
-test_modetoa_LDADD = $(LDADD)
-test_modetoa_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_msyslog_OBJECTS = msyslog.$(OBJEXT) run-msyslog.$(OBJEXT) \
- $(am__objects_1)
-test_msyslog_OBJECTS = $(am_test_msyslog_OBJECTS)
-test_msyslog_LDADD = $(LDADD)
-test_msyslog_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_netof_OBJECTS = netof.$(OBJEXT) run-netof.$(OBJEXT) \
- sockaddrtest.$(OBJEXT) $(am__objects_1)
-test_netof_OBJECTS = $(am_test_netof_OBJECTS)
-test_netof_LDADD = $(LDADD)
-test_netof_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_numtoa_OBJECTS = numtoa.$(OBJEXT) run-numtoa.$(OBJEXT) \
- $(am__objects_1)
-test_numtoa_OBJECTS = $(am_test_numtoa_OBJECTS)
-test_numtoa_LDADD = $(LDADD)
-test_numtoa_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_numtohost_OBJECTS = numtohost.$(OBJEXT) \
- run-numtohost.$(OBJEXT) $(am__objects_1)
-test_numtohost_OBJECTS = $(am_test_numtohost_OBJECTS)
-test_numtohost_LDADD = $(LDADD)
-test_numtohost_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_octtoint_OBJECTS = octtoint.$(OBJEXT) run-octtoint.$(OBJEXT) \
- $(am__objects_1)
-test_octtoint_OBJECTS = $(am_test_octtoint_OBJECTS)
-test_octtoint_LDADD = $(LDADD)
-test_octtoint_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_prettydate_OBJECTS = prettydate.$(OBJEXT) \
- run-prettydate.$(OBJEXT) $(am__objects_1)
-test_prettydate_OBJECTS = $(am_test_prettydate_OBJECTS)
-test_prettydate_LDADD = $(LDADD)
-test_prettydate_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_recvbuff_OBJECTS = recvbuff.$(OBJEXT) run-recvbuff.$(OBJEXT) \
- $(am__objects_1)
-test_recvbuff_OBJECTS = $(am_test_recvbuff_OBJECTS)
-test_recvbuff_LDADD = $(LDADD)
-test_recvbuff_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_refidsmear_OBJECTS = refidsmear.$(OBJEXT) \
- run-refidsmear.$(OBJEXT) $(am__objects_1)
-test_refidsmear_OBJECTS = $(am_test_refidsmear_OBJECTS)
-test_refidsmear_LDADD = $(LDADD)
-test_refidsmear_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_refnumtoa_OBJECTS = refnumtoa.$(OBJEXT) \
- run-refnumtoa.$(OBJEXT) $(am__objects_1)
-test_refnumtoa_OBJECTS = $(am_test_refnumtoa_OBJECTS)
-test_refnumtoa_LDADD = $(LDADD)
-test_refnumtoa_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_sfptostr_OBJECTS = sfptostr.$(OBJEXT) run-sfptostr.$(OBJEXT) \
- $(am__objects_1)
-test_sfptostr_OBJECTS = $(am_test_sfptostr_OBJECTS)
-test_sfptostr_LDADD = $(LDADD)
-test_sfptostr_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_socktoa_OBJECTS = socktoa.$(OBJEXT) run-socktoa.$(OBJEXT) \
- sockaddrtest.$(OBJEXT) $(am__objects_1)
-test_socktoa_OBJECTS = $(am_test_socktoa_OBJECTS)
-test_socktoa_LDADD = $(LDADD)
-test_socktoa_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_ssl_init_OBJECTS = ssl_init.$(OBJEXT) run-ssl_init.$(OBJEXT) \
- $(am__objects_1)
-test_ssl_init_OBJECTS = $(am_test_ssl_init_OBJECTS)
-test_ssl_init_LDADD = $(LDADD)
-test_ssl_init_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_statestr_OBJECTS = statestr.$(OBJEXT) run-statestr.$(OBJEXT) \
- $(am__objects_1)
-test_statestr_OBJECTS = $(am_test_statestr_OBJECTS)
-test_statestr_LDADD = $(LDADD)
-test_statestr_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_strtolfp_OBJECTS = test_strtolfp-strtolfp.$(OBJEXT) \
- test_strtolfp-run-strtolfp.$(OBJEXT) \
- test_strtolfp-lfptest.$(OBJEXT) $(am__objects_1)
-test_strtolfp_OBJECTS = $(am_test_strtolfp_OBJECTS)
-test_strtolfp_LDADD = $(LDADD)
-test_strtolfp_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-test_strtolfp_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_strtolfp_CFLAGS) \
- $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-am_test_timespecops_OBJECTS = timespecops.$(OBJEXT) \
- run-timespecops.$(OBJEXT) $(am__objects_1)
-test_timespecops_OBJECTS = $(am_test_timespecops_OBJECTS)
-test_timespecops_LDADD = $(LDADD)
-test_timespecops_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_timevalops_OBJECTS = timevalops.$(OBJEXT) \
- run-timevalops.$(OBJEXT) $(am__objects_1)
-test_timevalops_OBJECTS = $(am_test_timevalops_OBJECTS)
-test_timevalops_LDADD = $(LDADD)
-test_timevalops_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_tsafememcmp_OBJECTS = tsafememcmp.$(OBJEXT) \
- run-tsafememcmp.$(OBJEXT) $(am__objects_1)
-test_tsafememcmp_OBJECTS = $(am_test_tsafememcmp_OBJECTS)
-test_tsafememcmp_LDADD = $(LDADD)
-test_tsafememcmp_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_tstotv_OBJECTS = tstotv.$(OBJEXT) run-tstotv.$(OBJEXT) \
- $(am__objects_1)
-test_tstotv_OBJECTS = $(am_test_tstotv_OBJECTS)
-test_tstotv_LDADD = $(LDADD)
-test_tstotv_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_tvtots_OBJECTS = tvtots.$(OBJEXT) run-tvtots.$(OBJEXT) \
- lfptest.$(OBJEXT) $(am__objects_1)
-test_tvtots_OBJECTS = $(am_test_tvtots_OBJECTS)
-test_tvtots_LDADD = $(LDADD)
-test_tvtots_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_uglydate_OBJECTS = uglydate.$(OBJEXT) run-uglydate.$(OBJEXT) \
- $(am__objects_1)
-test_uglydate_OBJECTS = $(am_test_uglydate_OBJECTS)
-test_uglydate_LDADD = $(LDADD)
-test_uglydate_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_vi64ops_OBJECTS = vi64ops.$(OBJEXT) run-vi64ops.$(OBJEXT) \
- $(am__objects_1)
-test_vi64ops_OBJECTS = $(am_test_vi64ops_OBJECTS)
-test_vi64ops_LDADD = $(LDADD)
-test_vi64ops_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-am_test_ymd2yd_OBJECTS = ymd2yd.$(OBJEXT) run-ymd2yd.$(OBJEXT) \
- $(am__objects_1)
-test_ymd2yd_OBJECTS = $(am_test_ymd2yd_OBJECTS)
-test_ymd2yd_LDADD = $(LDADD)
-test_ymd2yd_DEPENDENCIES = $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/sntp/libevent/build-aux/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(test_a_md5encrypt_SOURCES) $(test_atoint_SOURCES) \
- $(test_atouint_SOURCES) $(test_authkeys_SOURCES) \
- $(test_buftvtots_SOURCES) $(test_calendar_SOURCES) \
- $(test_caljulian_SOURCES) $(test_caltontp_SOURCES) \
- $(test_calyearstart_SOURCES) $(test_clocktime_SOURCES) \
- $(test_decodenetnum_SOURCES) $(test_hextoint_SOURCES) \
- $(test_hextolfp_SOURCES) $(test_humandate_SOURCES) \
- $(test_lfpfunc_SOURCES) $(test_lfptostr_SOURCES) \
- $(test_modetoa_SOURCES) $(test_msyslog_SOURCES) \
- $(test_netof_SOURCES) $(test_numtoa_SOURCES) \
- $(test_numtohost_SOURCES) $(test_octtoint_SOURCES) \
- $(test_prettydate_SOURCES) $(test_recvbuff_SOURCES) \
- $(test_refidsmear_SOURCES) $(test_refnumtoa_SOURCES) \
- $(test_sfptostr_SOURCES) $(test_socktoa_SOURCES) \
- $(test_ssl_init_SOURCES) $(test_statestr_SOURCES) \
- $(test_strtolfp_SOURCES) $(test_timespecops_SOURCES) \
- $(test_timevalops_SOURCES) $(test_tsafememcmp_SOURCES) \
- $(test_tstotv_SOURCES) $(test_tvtots_SOURCES) \
- $(test_uglydate_SOURCES) $(test_vi64ops_SOURCES) \
- $(test_ymd2yd_SOURCES)
-DIST_SOURCES = $(test_a_md5encrypt_SOURCES) $(test_atoint_SOURCES) \
- $(test_atouint_SOURCES) $(test_authkeys_SOURCES) \
- $(test_buftvtots_SOURCES) $(test_calendar_SOURCES) \
- $(test_caljulian_SOURCES) $(test_caltontp_SOURCES) \
- $(test_calyearstart_SOURCES) $(test_clocktime_SOURCES) \
- $(test_decodenetnum_SOURCES) $(test_hextoint_SOURCES) \
- $(test_hextolfp_SOURCES) $(test_humandate_SOURCES) \
- $(test_lfpfunc_SOURCES) $(test_lfptostr_SOURCES) \
- $(test_modetoa_SOURCES) $(test_msyslog_SOURCES) \
- $(test_netof_SOURCES) $(test_numtoa_SOURCES) \
- $(test_numtohost_SOURCES) $(test_octtoint_SOURCES) \
- $(test_prettydate_SOURCES) $(test_recvbuff_SOURCES) \
- $(test_refidsmear_SOURCES) $(test_refnumtoa_SOURCES) \
- $(test_sfptostr_SOURCES) $(test_socktoa_SOURCES) \
- $(test_ssl_init_SOURCES) $(test_statestr_SOURCES) \
- $(test_strtolfp_SOURCES) $(test_timespecops_SOURCES) \
- $(test_timevalops_SOURCES) $(test_tsafememcmp_SOURCES) \
- $(test_tstotv_SOURCES) $(test_tvtots_SOURCES) \
- $(test_uglydate_SOURCES) $(test_vi64ops_SOURCES) \
- $(test_ymd2yd_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depsver.mf \
- $(top_srcdir)/includes.mf \
- $(top_srcdir)/sntp/libevent/build-aux/depcomp \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BUILD_THREAD = @BUILD_THREAD@
-CALC_TICKADJ_DB = @CALC_TICKADJ_DB@
-CALC_TICKADJ_DL = @CALC_TICKADJ_DL@
-CALC_TICKADJ_DS = @CALC_TICKADJ_DS@
-CALC_TICKADJ_MS = @CALC_TICKADJ_MS@
-CALC_TICKADJ_NI = @CALC_TICKADJ_NI@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@
-CFLAGS_NTP = @CFLAGS_NTP@
-CHUTEST = @CHUTEST@
-CONFIG_SHELL = @CONFIG_SHELL@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CPPFLAGS_LIBEVENT = @CPPFLAGS_LIBEVENT@
-CPPFLAGS_NTP = @CPPFLAGS_NTP@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCFD = @DCFD@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EDITLINE_LIBS = @EDITLINE_LIBS@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-GTEST_CONFIG = @GTEST_CONFIG@
-GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
-GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
-GTEST_LDFLAGS = @GTEST_LDFLAGS@
-GTEST_LIBS = @GTEST_LIBS@
-HAVE_INLINE = @HAVE_INLINE@
-HAVE_LEAPSMEARINTERVAL = @HAVE_LEAPSMEARINTERVAL@
-HAVE_RLIMIT_MEMLOCK = @HAVE_RLIMIT_MEMLOCK@
-HAVE_RLIMIT_STACK = @HAVE_RLIMIT_STACK@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDADD_LIBEVENT = @LDADD_LIBEVENT@
-LDADD_LIBNTP = @LDADD_LIBNTP@
-LDADD_LIBUTIL = @LDADD_LIBUTIL@
-LDADD_NLIST = @LDADD_NLIST@
-LDADD_NTP = @LDADD_NTP@
-LDFLAGS = @LDFLAGS@
-LDFLAGS_NTP = @LDFLAGS_NTP@
-LIBISC_PTHREADS_NOTHREADS = @LIBISC_PTHREADS_NOTHREADS@
-LIBM = @LIBM@
-LIBOBJS = @LIBOBJS@
-LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
-LIBOPTS_DIR = @LIBOPTS_DIR@
-LIBOPTS_LDADD = @LIBOPTS_LDADD@
-LIBPARSE = @LIBPARSE@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LSCF = @LSCF@
-LTHREAD_LIBS = @LTHREAD_LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAKE_ADJTIMED = @MAKE_ADJTIMED@
-MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
-MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
-MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
-MAKE_LIBPARSE = @MAKE_LIBPARSE@
-MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
-MAKE_NTPDSIM = @MAKE_NTPDSIM@
-MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
-MAKE_NTPTIME = @MAKE_NTPTIME@
-MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
-MAKE_TICKADJ = @MAKE_TICKADJ@
-MAKE_TIMETRIM = @MAKE_TIMETRIM@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MANTAGFMT = @MANTAGFMT@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NTPDATE_DB = @NTPDATE_DB@
-NTPDATE_DL = @NTPDATE_DL@
-NTPDATE_DS = @NTPDATE_DS@
-NTPDATE_MS = @NTPDATE_MS@
-NTPDATE_NI = @NTPDATE_NI@
-NTPDC_DB = @NTPDC_DB@
-NTPDC_DL = @NTPDC_DL@
-NTPDC_DS = @NTPDC_DS@
-NTPDC_MS = @NTPDC_MS@
-NTPDC_NI = @NTPDC_NI@
-NTPDSIM_DB = @NTPDSIM_DB@
-NTPDSIM_DL = @NTPDSIM_DL@
-NTPDSIM_DS = @NTPDSIM_DS@
-NTPDSIM_MS = @NTPDSIM_MS@
-NTPDSIM_NI = @NTPDSIM_NI@
-NTPD_DB = @NTPD_DB@
-NTPD_DL = @NTPD_DL@
-NTPD_DS = @NTPD_DS@
-NTPD_MS = @NTPD_MS@
-NTPD_NI = @NTPD_NI@
-NTPQ_DB = @NTPQ_DB@
-NTPQ_DL = @NTPQ_DL@
-NTPQ_DS = @NTPQ_DS@
-NTPQ_MS = @NTPQ_MS@
-NTPQ_NI = @NTPQ_NI@
-NTPSNMPD_DB = @NTPSNMPD_DB@
-NTPSNMPD_DL = @NTPSNMPD_DL@
-NTPSNMPD_DS = @NTPSNMPD_DS@
-NTPSNMPD_MS = @NTPSNMPD_MS@
-NTPSNMPD_NI = @NTPSNMPD_NI@
-NTPSWEEP_DB = @NTPSWEEP_DB@
-NTPSWEEP_DL = @NTPSWEEP_DL@
-NTPSWEEP_DS = @NTPSWEEP_DS@
-NTPSWEEP_MS = @NTPSWEEP_MS@
-NTPSWEEP_NI = @NTPSWEEP_NI@
-NTPTIME_DB = @NTPTIME_DB@
-NTPTIME_DL = @NTPTIME_DL@
-NTPTIME_DS = @NTPTIME_DS@
-NTPTIME_MS = @NTPTIME_MS@
-NTPTIME_NI = @NTPTIME_NI@
-NTPTRACE_DB = @NTPTRACE_DB@
-NTPTRACE_DL = @NTPTRACE_DL@
-NTPTRACE_DS = @NTPTRACE_DS@
-NTPTRACE_MS = @NTPTRACE_MS@
-NTPTRACE_NI = @NTPTRACE_NI@
-NTP_KEYGEN_DB = @NTP_KEYGEN_DB@
-NTP_KEYGEN_DL = @NTP_KEYGEN_DL@
-NTP_KEYGEN_DS = @NTP_KEYGEN_DS@
-NTP_KEYGEN_MS = @NTP_KEYGEN_MS@
-NTP_KEYGEN_NI = @NTP_KEYGEN_NI@
-NTP_KEYSDIR = @NTP_KEYSDIR@
-NTP_WAIT_DB = @NTP_WAIT_DB@
-NTP_WAIT_DL = @NTP_WAIT_DL@
-NTP_WAIT_DS = @NTP_WAIT_DS@
-NTP_WAIT_MS = @NTP_WAIT_MS@
-NTP_WAIT_NI = @NTP_WAIT_NI@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
-PATH_PERL = @PATH_PERL@
-PATH_RUBY = @PATH_RUBY@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TEST = @PATH_TEST@
-PERLLIBDIR = @PERLLIBDIR@
-PKG_CONFIG = @PKG_CONFIG@
-POSIX_SHELL = @POSIX_SHELL@
-PROPDELAY = @PROPDELAY@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SNMP_CFLAGS = @SNMP_CFLAGS@
-SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
-SNMP_LIBS = @SNMP_LIBS@
-SNTP = @SNTP@
-SNTP_DB = @SNTP_DB@
-SNTP_DL = @SNTP_DL@
-SNTP_DS = @SNTP_DS@
-SNTP_MS = @SNTP_MS@
-SNTP_NI = @SNTP_NI@
-STDNORETURN_H = @STDNORETURN_H@
-STRIP = @STRIP@
-TESTDCF = @TESTDCF@
-TICKADJ_DB = @TICKADJ_DB@
-TICKADJ_DL = @TICKADJ_DL@
-TICKADJ_DS = @TICKADJ_DS@
-TICKADJ_MS = @TICKADJ_MS@
-TICKADJ_NI = @TICKADJ_NI@
-TIMETRIM_DB = @TIMETRIM_DB@
-TIMETRIM_DL = @TIMETRIM_DL@
-TIMETRIM_DS = @TIMETRIM_DS@
-TIMETRIM_MS = @TIMETRIM_MS@
-TIMETRIM_NI = @TIMETRIM_NI@
-UPDATE_LEAP_DB = @UPDATE_LEAP_DB@
-UPDATE_LEAP_DL = @UPDATE_LEAP_DL@
-UPDATE_LEAP_DS = @UPDATE_LEAP_DS@
-UPDATE_LEAP_MS = @UPDATE_LEAP_MS@
-UPDATE_LEAP_NI = @UPDATE_LEAP_NI@
-VERSION = @VERSION@
-VER_SUFFIX = @VER_SUFFIX@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-NULL =
-BUILT_SOURCES = $(srcdir)/run-a_md5encrypt.c $(srcdir)/run-atoint.c \
- $(srcdir)/run-atouint.c $(srcdir)/run-authkeys.c \
- $(srcdir)/run-buftvtots.c $(srcdir)/run-calendar.c \
- $(srcdir)/run-caljulian.c $(srcdir)/run-caltontp.c \
- $(srcdir)/run-calyearstart.c $(srcdir)/run-clocktime.c \
- $(srcdir)/run-decodenetnum.c $(srcdir)/run-hextoint.c \
- $(srcdir)/run-hextolfp.c $(srcdir)/run-humandate.c \
- $(srcdir)/run-lfpfunc.c $(srcdir)/run-lfptostr.c \
- $(srcdir)/run-modetoa.c $(srcdir)/run-msyslog.c \
- $(srcdir)/run-netof.c $(srcdir)/run-numtoa.c \
- $(srcdir)/run-numtohost.c $(srcdir)/run-octtoint.c \
- $(srcdir)/run-prettydate.c $(srcdir)/run-recvbuff.c \
- $(srcdir)/run-refidsmear.c $(srcdir)/run-refnumtoa.c \
- $(srcdir)/run-sfptostr.c $(srcdir)/run-socktoa.c \
- $(srcdir)/run-ssl_init.c $(srcdir)/run-statestr.c \
- $(srcdir)/run-strtolfp.c $(srcdir)/run-timevalops.c \
- $(srcdir)/run-timespecops.c $(srcdir)/run-tsafememcmp.c \
- $(srcdir)/run-tstotv.c $(srcdir)/run-tvtots.c \
- $(srcdir)/run-uglydate.c $(srcdir)/run-vi64ops.c \
- $(srcdir)/run-ymd2yd.c $(NULL) check-libntp check-libunity \
- .deps-ver
-CLEANFILES = check-libntp check-libunity .deps-ver
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-LDADD = \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(LIBM) \
- $(top_builddir)/sntp/unity/libunity.a \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-AM_CPPFLAGS = $(NTP_INCS) -I$(top_srcdir)/sntp $(CPPFLAGS_NTP) \
- -DUNITY_INCLUDE_CONFIG_H -I$(top_srcdir)/sntp/unity
-AM_LDFLAGS = $(LDFLAGS_NTP)
-noinst_HEADERS = \
- lfptest.h \
- sockaddrtest.h \
- test-libntp.h \
- $(NULL)
-
-
-###
-test_a_md5encrypt_SOURCES = \
- a_md5encrypt.c \
- run-a_md5encrypt.c \
- $(NULL)
-
-
-###
-test_atoint_SOURCES = \
- atoint.c \
- run-atoint.c \
- $(NULL)
-
-
-###
-test_atouint_SOURCES = \
- atouint.c \
- run-atouint.c \
- $(NULL)
-
-
-###
-test_authkeys_SOURCES = \
- authkeys.c \
- run-authkeys.c \
- $(NULL)
-
-
-###
-test_buftvtots_SOURCES = \
- buftvtots.c \
- run-buftvtots.c \
- lfptest.c \
- $(NULL)
-
-
-###
-test_calendar_SOURCES = \
- calendar.c \
- run-calendar.c \
- test-libntp.c \
- $(NULL)
-
-
-###
-test_caltontp_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_caltontp_SOURCES = \
- caltontp.c \
- run-caltontp.c \
- $(NULL)
-
-
-###
-test_caljulian_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_caljulian_SOURCES = \
- caljulian.c \
- run-caljulian.c \
- test-libntp.c \
- $(NULL)
-
-
-###
-test_calyearstart_SOURCES = \
- calyearstart.c \
- run-calyearstart.c \
- test-libntp.c \
- $(NULL)
-
-
-###
-test_clocktime_SOURCES = \
- clocktime.c \
- run-clocktime.c \
- test-libntp.c \
- $(NULL)
-
-
-###
-test_decodenetnum_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_decodenetnum_SOURCES = \
- decodenetnum.c \
- run-decodenetnum.c \
- sockaddrtest.c \
- $(NULL)
-
-
-###
-test_hextoint_SOURCES = \
- hextoint.c \
- run-hextoint.c \
- $(NULL)
-
-
-###
-test_hextolfp_SOURCES = \
- hextolfp.c \
- run-hextolfp.c \
- lfptest.c \
- $(NULL)
-
-
-###
-test_humandate_SOURCES = \
- humandate.c \
- run-humandate.c \
- $(NULL)
-
-
-###
-test_lfpfunc_SOURCES = \
- lfpfunc.c \
- run-lfpfunc.c \
- $(NULL)
-
-
-###
-test_lfptostr_SOURCES = \
- lfptostr.c \
- run-lfptostr.c \
- $(NULL)
-
-
-###
-test_modetoa_SOURCES = \
- modetoa.c \
- run-modetoa.c \
- $(NULL)
-
-
-###
-test_msyslog_SOURCES = \
- msyslog.c \
- run-msyslog.c \
- $(NULL)
-
-
-###
-test_netof_SOURCES = \
- netof.c \
- run-netof.c \
- sockaddrtest.c \
- $(NULL)
-
-
-###
-test_numtoa_SOURCES = \
- numtoa.c \
- run-numtoa.c \
- $(NULL)
-
-
-###
-test_numtohost_SOURCES = \
- numtohost.c \
- run-numtohost.c \
- $(NULL)
-
-
-###
-test_octtoint_SOURCES = \
- octtoint.c \
- run-octtoint.c \
- $(NULL)
-
-
-###
-test_prettydate_SOURCES = \
- prettydate.c \
- run-prettydate.c \
- $(NULL)
-
-
-###
-test_recvbuff_SOURCES = \
- recvbuff.c \
- run-recvbuff.c \
- $(NULL)
-
-
-###
-test_refidsmear_SOURCES = \
- refidsmear.c \
- run-refidsmear.c \
- $(NULL)
-
-
-###
-test_refnumtoa_SOURCES = \
- refnumtoa.c \
- run-refnumtoa.c \
- $(NULL)
-
-
-###
-test_sfptostr_SOURCES = \
- sfptostr.c \
- run-sfptostr.c \
- $(NULL)
-
-
-###
-test_socktoa_SOURCES = \
- socktoa.c \
- run-socktoa.c \
- sockaddrtest.c \
- $(NULL)
-
-
-###
-test_ssl_init_SOURCES = \
- ssl_init.c \
- run-ssl_init.c \
- $(NULL)
-
-
-###
-test_statestr_SOURCES = \
- statestr.c \
- run-statestr.c \
- $(NULL)
-
-
-###
-test_strtolfp_CFLAGS = \
- $(CFLAGS_LIBEVENT) \
- $(AM_CFLAGS) \
- $(NULL)
-
-test_strtolfp_SOURCES = \
- strtolfp.c \
- run-strtolfp.c \
- lfptest.c \
- $(NULL)
-
-
-###
-test_timespecops_SOURCES = \
- timespecops.c \
- run-timespecops.c \
- $(NULL)
-
-
-###
-test_timevalops_SOURCES = \
- timevalops.c \
- run-timevalops.c \
- $(NULL)
-
-
-###
-test_tsafememcmp_SOURCES = \
- tsafememcmp.c \
- run-tsafememcmp.c \
- $(NULL)
-
-
-###
-test_tstotv_SOURCES = \
- tstotv.c \
- run-tstotv.c \
- $(NULL)
-
-
-###
-test_tvtots_SOURCES = \
- tvtots.c \
- run-tvtots.c \
- lfptest.c \
- $(NULL)
-
-
-###
-test_uglydate_SOURCES = \
- uglydate.c \
- run-uglydate.c \
- $(NULL)
-
-
-###
-test_vi64ops_SOURCES = \
- vi64ops.c \
- run-vi64ops.c \
- $(NULL)
-
-
-###
-test_ymd2yd_SOURCES = \
- ymd2yd.c \
- run-ymd2yd.c \
- $(NULL)
-
-
-###
-TESTS = $(am__append_1)
-NTP_INCS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
- -I$(top_srcdir)/lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/include \
- -I$(top_srcdir)/lib/isc/unix/include
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/libntp/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign tests/libntp/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__empty):
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-
-test-a_md5encrypt$(EXEEXT): $(test_a_md5encrypt_OBJECTS) $(test_a_md5encrypt_DEPENDENCIES) $(EXTRA_test_a_md5encrypt_DEPENDENCIES)
- @rm -f test-a_md5encrypt$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_a_md5encrypt_OBJECTS) $(test_a_md5encrypt_LDADD) $(LIBS)
-
-test-atoint$(EXEEXT): $(test_atoint_OBJECTS) $(test_atoint_DEPENDENCIES) $(EXTRA_test_atoint_DEPENDENCIES)
- @rm -f test-atoint$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_atoint_OBJECTS) $(test_atoint_LDADD) $(LIBS)
-
-test-atouint$(EXEEXT): $(test_atouint_OBJECTS) $(test_atouint_DEPENDENCIES) $(EXTRA_test_atouint_DEPENDENCIES)
- @rm -f test-atouint$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_atouint_OBJECTS) $(test_atouint_LDADD) $(LIBS)
-
-test-authkeys$(EXEEXT): $(test_authkeys_OBJECTS) $(test_authkeys_DEPENDENCIES) $(EXTRA_test_authkeys_DEPENDENCIES)
- @rm -f test-authkeys$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_authkeys_OBJECTS) $(test_authkeys_LDADD) $(LIBS)
-
-test-buftvtots$(EXEEXT): $(test_buftvtots_OBJECTS) $(test_buftvtots_DEPENDENCIES) $(EXTRA_test_buftvtots_DEPENDENCIES)
- @rm -f test-buftvtots$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_buftvtots_OBJECTS) $(test_buftvtots_LDADD) $(LIBS)
-
-test-calendar$(EXEEXT): $(test_calendar_OBJECTS) $(test_calendar_DEPENDENCIES) $(EXTRA_test_calendar_DEPENDENCIES)
- @rm -f test-calendar$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_calendar_OBJECTS) $(test_calendar_LDADD) $(LIBS)
-
-test-caljulian$(EXEEXT): $(test_caljulian_OBJECTS) $(test_caljulian_DEPENDENCIES) $(EXTRA_test_caljulian_DEPENDENCIES)
- @rm -f test-caljulian$(EXEEXT)
- $(AM_V_CCLD)$(test_caljulian_LINK) $(test_caljulian_OBJECTS) $(test_caljulian_LDADD) $(LIBS)
-
-test-caltontp$(EXEEXT): $(test_caltontp_OBJECTS) $(test_caltontp_DEPENDENCIES) $(EXTRA_test_caltontp_DEPENDENCIES)
- @rm -f test-caltontp$(EXEEXT)
- $(AM_V_CCLD)$(test_caltontp_LINK) $(test_caltontp_OBJECTS) $(test_caltontp_LDADD) $(LIBS)
-
-test-calyearstart$(EXEEXT): $(test_calyearstart_OBJECTS) $(test_calyearstart_DEPENDENCIES) $(EXTRA_test_calyearstart_DEPENDENCIES)
- @rm -f test-calyearstart$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_calyearstart_OBJECTS) $(test_calyearstart_LDADD) $(LIBS)
-
-test-clocktime$(EXEEXT): $(test_clocktime_OBJECTS) $(test_clocktime_DEPENDENCIES) $(EXTRA_test_clocktime_DEPENDENCIES)
- @rm -f test-clocktime$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_clocktime_OBJECTS) $(test_clocktime_LDADD) $(LIBS)
-
-test-decodenetnum$(EXEEXT): $(test_decodenetnum_OBJECTS) $(test_decodenetnum_DEPENDENCIES) $(EXTRA_test_decodenetnum_DEPENDENCIES)
- @rm -f test-decodenetnum$(EXEEXT)
- $(AM_V_CCLD)$(test_decodenetnum_LINK) $(test_decodenetnum_OBJECTS) $(test_decodenetnum_LDADD) $(LIBS)
-
-test-hextoint$(EXEEXT): $(test_hextoint_OBJECTS) $(test_hextoint_DEPENDENCIES) $(EXTRA_test_hextoint_DEPENDENCIES)
- @rm -f test-hextoint$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_hextoint_OBJECTS) $(test_hextoint_LDADD) $(LIBS)
-
-test-hextolfp$(EXEEXT): $(test_hextolfp_OBJECTS) $(test_hextolfp_DEPENDENCIES) $(EXTRA_test_hextolfp_DEPENDENCIES)
- @rm -f test-hextolfp$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_hextolfp_OBJECTS) $(test_hextolfp_LDADD) $(LIBS)
-
-test-humandate$(EXEEXT): $(test_humandate_OBJECTS) $(test_humandate_DEPENDENCIES) $(EXTRA_test_humandate_DEPENDENCIES)
- @rm -f test-humandate$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_humandate_OBJECTS) $(test_humandate_LDADD) $(LIBS)
-
-test-lfpfunc$(EXEEXT): $(test_lfpfunc_OBJECTS) $(test_lfpfunc_DEPENDENCIES) $(EXTRA_test_lfpfunc_DEPENDENCIES)
- @rm -f test-lfpfunc$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_lfpfunc_OBJECTS) $(test_lfpfunc_LDADD) $(LIBS)
-
-test-lfptostr$(EXEEXT): $(test_lfptostr_OBJECTS) $(test_lfptostr_DEPENDENCIES) $(EXTRA_test_lfptostr_DEPENDENCIES)
- @rm -f test-lfptostr$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_lfptostr_OBJECTS) $(test_lfptostr_LDADD) $(LIBS)
-
-test-modetoa$(EXEEXT): $(test_modetoa_OBJECTS) $(test_modetoa_DEPENDENCIES) $(EXTRA_test_modetoa_DEPENDENCIES)
- @rm -f test-modetoa$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_modetoa_OBJECTS) $(test_modetoa_LDADD) $(LIBS)
-
-test-msyslog$(EXEEXT): $(test_msyslog_OBJECTS) $(test_msyslog_DEPENDENCIES) $(EXTRA_test_msyslog_DEPENDENCIES)
- @rm -f test-msyslog$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_msyslog_OBJECTS) $(test_msyslog_LDADD) $(LIBS)
-
-test-netof$(EXEEXT): $(test_netof_OBJECTS) $(test_netof_DEPENDENCIES) $(EXTRA_test_netof_DEPENDENCIES)
- @rm -f test-netof$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_netof_OBJECTS) $(test_netof_LDADD) $(LIBS)
-
-test-numtoa$(EXEEXT): $(test_numtoa_OBJECTS) $(test_numtoa_DEPENDENCIES) $(EXTRA_test_numtoa_DEPENDENCIES)
- @rm -f test-numtoa$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_numtoa_OBJECTS) $(test_numtoa_LDADD) $(LIBS)
-
-test-numtohost$(EXEEXT): $(test_numtohost_OBJECTS) $(test_numtohost_DEPENDENCIES) $(EXTRA_test_numtohost_DEPENDENCIES)
- @rm -f test-numtohost$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_numtohost_OBJECTS) $(test_numtohost_LDADD) $(LIBS)
-
-test-octtoint$(EXEEXT): $(test_octtoint_OBJECTS) $(test_octtoint_DEPENDENCIES) $(EXTRA_test_octtoint_DEPENDENCIES)
- @rm -f test-octtoint$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_octtoint_OBJECTS) $(test_octtoint_LDADD) $(LIBS)
-
-test-prettydate$(EXEEXT): $(test_prettydate_OBJECTS) $(test_prettydate_DEPENDENCIES) $(EXTRA_test_prettydate_DEPENDENCIES)
- @rm -f test-prettydate$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_prettydate_OBJECTS) $(test_prettydate_LDADD) $(LIBS)
-
-test-recvbuff$(EXEEXT): $(test_recvbuff_OBJECTS) $(test_recvbuff_DEPENDENCIES) $(EXTRA_test_recvbuff_DEPENDENCIES)
- @rm -f test-recvbuff$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_recvbuff_OBJECTS) $(test_recvbuff_LDADD) $(LIBS)
-
-test-refidsmear$(EXEEXT): $(test_refidsmear_OBJECTS) $(test_refidsmear_DEPENDENCIES) $(EXTRA_test_refidsmear_DEPENDENCIES)
- @rm -f test-refidsmear$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_refidsmear_OBJECTS) $(test_refidsmear_LDADD) $(LIBS)
-
-test-refnumtoa$(EXEEXT): $(test_refnumtoa_OBJECTS) $(test_refnumtoa_DEPENDENCIES) $(EXTRA_test_refnumtoa_DEPENDENCIES)
- @rm -f test-refnumtoa$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_refnumtoa_OBJECTS) $(test_refnumtoa_LDADD) $(LIBS)
-
-test-sfptostr$(EXEEXT): $(test_sfptostr_OBJECTS) $(test_sfptostr_DEPENDENCIES) $(EXTRA_test_sfptostr_DEPENDENCIES)
- @rm -f test-sfptostr$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_sfptostr_OBJECTS) $(test_sfptostr_LDADD) $(LIBS)
-
-test-socktoa$(EXEEXT): $(test_socktoa_OBJECTS) $(test_socktoa_DEPENDENCIES) $(EXTRA_test_socktoa_DEPENDENCIES)
- @rm -f test-socktoa$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_socktoa_OBJECTS) $(test_socktoa_LDADD) $(LIBS)
-
-test-ssl_init$(EXEEXT): $(test_ssl_init_OBJECTS) $(test_ssl_init_DEPENDENCIES) $(EXTRA_test_ssl_init_DEPENDENCIES)
- @rm -f test-ssl_init$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_ssl_init_OBJECTS) $(test_ssl_init_LDADD) $(LIBS)
-
-test-statestr$(EXEEXT): $(test_statestr_OBJECTS) $(test_statestr_DEPENDENCIES) $(EXTRA_test_statestr_DEPENDENCIES)
- @rm -f test-statestr$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_statestr_OBJECTS) $(test_statestr_LDADD) $(LIBS)
-
-test-strtolfp$(EXEEXT): $(test_strtolfp_OBJECTS) $(test_strtolfp_DEPENDENCIES) $(EXTRA_test_strtolfp_DEPENDENCIES)
- @rm -f test-strtolfp$(EXEEXT)
- $(AM_V_CCLD)$(test_strtolfp_LINK) $(test_strtolfp_OBJECTS) $(test_strtolfp_LDADD) $(LIBS)
-
-test-timespecops$(EXEEXT): $(test_timespecops_OBJECTS) $(test_timespecops_DEPENDENCIES) $(EXTRA_test_timespecops_DEPENDENCIES)
- @rm -f test-timespecops$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_timespecops_OBJECTS) $(test_timespecops_LDADD) $(LIBS)
-
-test-timevalops$(EXEEXT): $(test_timevalops_OBJECTS) $(test_timevalops_DEPENDENCIES) $(EXTRA_test_timevalops_DEPENDENCIES)
- @rm -f test-timevalops$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_timevalops_OBJECTS) $(test_timevalops_LDADD) $(LIBS)
-
-test-tsafememcmp$(EXEEXT): $(test_tsafememcmp_OBJECTS) $(test_tsafememcmp_DEPENDENCIES) $(EXTRA_test_tsafememcmp_DEPENDENCIES)
- @rm -f test-tsafememcmp$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_tsafememcmp_OBJECTS) $(test_tsafememcmp_LDADD) $(LIBS)
-
-test-tstotv$(EXEEXT): $(test_tstotv_OBJECTS) $(test_tstotv_DEPENDENCIES) $(EXTRA_test_tstotv_DEPENDENCIES)
- @rm -f test-tstotv$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_tstotv_OBJECTS) $(test_tstotv_LDADD) $(LIBS)
-
-test-tvtots$(EXEEXT): $(test_tvtots_OBJECTS) $(test_tvtots_DEPENDENCIES) $(EXTRA_test_tvtots_DEPENDENCIES)
- @rm -f test-tvtots$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_tvtots_OBJECTS) $(test_tvtots_LDADD) $(LIBS)
-
-test-uglydate$(EXEEXT): $(test_uglydate_OBJECTS) $(test_uglydate_DEPENDENCIES) $(EXTRA_test_uglydate_DEPENDENCIES)
- @rm -f test-uglydate$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_uglydate_OBJECTS) $(test_uglydate_LDADD) $(LIBS)
-
-test-vi64ops$(EXEEXT): $(test_vi64ops_OBJECTS) $(test_vi64ops_DEPENDENCIES) $(EXTRA_test_vi64ops_DEPENDENCIES)
- @rm -f test-vi64ops$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_vi64ops_OBJECTS) $(test_vi64ops_LDADD) $(LIBS)
-
-test-ymd2yd$(EXEEXT): $(test_ymd2yd_OBJECTS) $(test_ymd2yd_DEPENDENCIES) $(EXTRA_test_ymd2yd_DEPENDENCIES)
- @rm -f test-ymd2yd$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_ymd2yd_OBJECTS) $(test_ymd2yd_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/a_md5encrypt.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atoint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atouint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/authkeys.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buftvtots.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calendar.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calyearstart.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clocktime.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hextoint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hextolfp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/humandate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lfpfunc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lfptest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lfptostr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/modetoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msyslog.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netof.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/numtoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/numtohost.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/octtoint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prettydate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recvbuff.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/refidsmear.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/refnumtoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-a_md5encrypt.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-atoint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-atouint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-authkeys.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-buftvtots.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-calendar.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-calyearstart.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-clocktime.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-hextoint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-hextolfp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-humandate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-lfpfunc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-lfptostr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-modetoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-msyslog.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-netof.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-numtoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-numtohost.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-octtoint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-prettydate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-recvbuff.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-refidsmear.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-refnumtoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-sfptostr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-socktoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-ssl_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-statestr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-timespecops.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-timevalops.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-tsafememcmp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-tstotv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-tvtots.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-uglydate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-vi64ops.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-ymd2yd.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sfptostr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sockaddrtest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/socktoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ssl_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statestr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-libntp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_caljulian-caljulian.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_caljulian-run-caljulian.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_caljulian-test-libntp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_caltontp-caltontp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_caltontp-run-caltontp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_decodenetnum-decodenetnum.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_decodenetnum-run-decodenetnum.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_decodenetnum-sockaddrtest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_strtolfp-lfptest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_strtolfp-run-strtolfp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_strtolfp-strtolfp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timespecops.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timevalops.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsafememcmp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tstotv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tvtots.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uglydate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vi64ops.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ymd2yd.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-test_caljulian-caljulian.o: caljulian.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -MT test_caljulian-caljulian.o -MD -MP -MF $(DEPDIR)/test_caljulian-caljulian.Tpo -c -o test_caljulian-caljulian.o `test -f 'caljulian.c' || echo '$(srcdir)/'`caljulian.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caljulian-caljulian.Tpo $(DEPDIR)/test_caljulian-caljulian.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='caljulian.c' object='test_caljulian-caljulian.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -c -o test_caljulian-caljulian.o `test -f 'caljulian.c' || echo '$(srcdir)/'`caljulian.c
-
-test_caljulian-caljulian.obj: caljulian.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -MT test_caljulian-caljulian.obj -MD -MP -MF $(DEPDIR)/test_caljulian-caljulian.Tpo -c -o test_caljulian-caljulian.obj `if test -f 'caljulian.c'; then $(CYGPATH_W) 'caljulian.c'; else $(CYGPATH_W) '$(srcdir)/caljulian.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caljulian-caljulian.Tpo $(DEPDIR)/test_caljulian-caljulian.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='caljulian.c' object='test_caljulian-caljulian.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -c -o test_caljulian-caljulian.obj `if test -f 'caljulian.c'; then $(CYGPATH_W) 'caljulian.c'; else $(CYGPATH_W) '$(srcdir)/caljulian.c'; fi`
-
-test_caljulian-run-caljulian.o: run-caljulian.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -MT test_caljulian-run-caljulian.o -MD -MP -MF $(DEPDIR)/test_caljulian-run-caljulian.Tpo -c -o test_caljulian-run-caljulian.o `test -f 'run-caljulian.c' || echo '$(srcdir)/'`run-caljulian.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caljulian-run-caljulian.Tpo $(DEPDIR)/test_caljulian-run-caljulian.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-caljulian.c' object='test_caljulian-run-caljulian.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -c -o test_caljulian-run-caljulian.o `test -f 'run-caljulian.c' || echo '$(srcdir)/'`run-caljulian.c
-
-test_caljulian-run-caljulian.obj: run-caljulian.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -MT test_caljulian-run-caljulian.obj -MD -MP -MF $(DEPDIR)/test_caljulian-run-caljulian.Tpo -c -o test_caljulian-run-caljulian.obj `if test -f 'run-caljulian.c'; then $(CYGPATH_W) 'run-caljulian.c'; else $(CYGPATH_W) '$(srcdir)/run-caljulian.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caljulian-run-caljulian.Tpo $(DEPDIR)/test_caljulian-run-caljulian.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-caljulian.c' object='test_caljulian-run-caljulian.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -c -o test_caljulian-run-caljulian.obj `if test -f 'run-caljulian.c'; then $(CYGPATH_W) 'run-caljulian.c'; else $(CYGPATH_W) '$(srcdir)/run-caljulian.c'; fi`
-
-test_caljulian-test-libntp.o: test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -MT test_caljulian-test-libntp.o -MD -MP -MF $(DEPDIR)/test_caljulian-test-libntp.Tpo -c -o test_caljulian-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caljulian-test-libntp.Tpo $(DEPDIR)/test_caljulian-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_caljulian-test-libntp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -c -o test_caljulian-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c
-
-test_caljulian-test-libntp.obj: test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -MT test_caljulian-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_caljulian-test-libntp.Tpo -c -o test_caljulian-test-libntp.obj `if test -f 'test-libntp.c'; then $(CYGPATH_W) 'test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/test-libntp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caljulian-test-libntp.Tpo $(DEPDIR)/test_caljulian-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_caljulian-test-libntp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caljulian_CFLAGS) $(CFLAGS) -c -o test_caljulian-test-libntp.obj `if test -f 'test-libntp.c'; then $(CYGPATH_W) 'test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/test-libntp.c'; fi`
-
-test_caltontp-caltontp.o: caltontp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -MT test_caltontp-caltontp.o -MD -MP -MF $(DEPDIR)/test_caltontp-caltontp.Tpo -c -o test_caltontp-caltontp.o `test -f 'caltontp.c' || echo '$(srcdir)/'`caltontp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caltontp-caltontp.Tpo $(DEPDIR)/test_caltontp-caltontp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='caltontp.c' object='test_caltontp-caltontp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -c -o test_caltontp-caltontp.o `test -f 'caltontp.c' || echo '$(srcdir)/'`caltontp.c
-
-test_caltontp-caltontp.obj: caltontp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -MT test_caltontp-caltontp.obj -MD -MP -MF $(DEPDIR)/test_caltontp-caltontp.Tpo -c -o test_caltontp-caltontp.obj `if test -f 'caltontp.c'; then $(CYGPATH_W) 'caltontp.c'; else $(CYGPATH_W) '$(srcdir)/caltontp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caltontp-caltontp.Tpo $(DEPDIR)/test_caltontp-caltontp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='caltontp.c' object='test_caltontp-caltontp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -c -o test_caltontp-caltontp.obj `if test -f 'caltontp.c'; then $(CYGPATH_W) 'caltontp.c'; else $(CYGPATH_W) '$(srcdir)/caltontp.c'; fi`
-
-test_caltontp-run-caltontp.o: run-caltontp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -MT test_caltontp-run-caltontp.o -MD -MP -MF $(DEPDIR)/test_caltontp-run-caltontp.Tpo -c -o test_caltontp-run-caltontp.o `test -f 'run-caltontp.c' || echo '$(srcdir)/'`run-caltontp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caltontp-run-caltontp.Tpo $(DEPDIR)/test_caltontp-run-caltontp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-caltontp.c' object='test_caltontp-run-caltontp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -c -o test_caltontp-run-caltontp.o `test -f 'run-caltontp.c' || echo '$(srcdir)/'`run-caltontp.c
-
-test_caltontp-run-caltontp.obj: run-caltontp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -MT test_caltontp-run-caltontp.obj -MD -MP -MF $(DEPDIR)/test_caltontp-run-caltontp.Tpo -c -o test_caltontp-run-caltontp.obj `if test -f 'run-caltontp.c'; then $(CYGPATH_W) 'run-caltontp.c'; else $(CYGPATH_W) '$(srcdir)/run-caltontp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_caltontp-run-caltontp.Tpo $(DEPDIR)/test_caltontp-run-caltontp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-caltontp.c' object='test_caltontp-run-caltontp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_caltontp_CFLAGS) $(CFLAGS) -c -o test_caltontp-run-caltontp.obj `if test -f 'run-caltontp.c'; then $(CYGPATH_W) 'run-caltontp.c'; else $(CYGPATH_W) '$(srcdir)/run-caltontp.c'; fi`
-
-test_decodenetnum-decodenetnum.o: decodenetnum.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -MT test_decodenetnum-decodenetnum.o -MD -MP -MF $(DEPDIR)/test_decodenetnum-decodenetnum.Tpo -c -o test_decodenetnum-decodenetnum.o `test -f 'decodenetnum.c' || echo '$(srcdir)/'`decodenetnum.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_decodenetnum-decodenetnum.Tpo $(DEPDIR)/test_decodenetnum-decodenetnum.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='decodenetnum.c' object='test_decodenetnum-decodenetnum.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -c -o test_decodenetnum-decodenetnum.o `test -f 'decodenetnum.c' || echo '$(srcdir)/'`decodenetnum.c
-
-test_decodenetnum-decodenetnum.obj: decodenetnum.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -MT test_decodenetnum-decodenetnum.obj -MD -MP -MF $(DEPDIR)/test_decodenetnum-decodenetnum.Tpo -c -o test_decodenetnum-decodenetnum.obj `if test -f 'decodenetnum.c'; then $(CYGPATH_W) 'decodenetnum.c'; else $(CYGPATH_W) '$(srcdir)/decodenetnum.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_decodenetnum-decodenetnum.Tpo $(DEPDIR)/test_decodenetnum-decodenetnum.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='decodenetnum.c' object='test_decodenetnum-decodenetnum.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -c -o test_decodenetnum-decodenetnum.obj `if test -f 'decodenetnum.c'; then $(CYGPATH_W) 'decodenetnum.c'; else $(CYGPATH_W) '$(srcdir)/decodenetnum.c'; fi`
-
-test_decodenetnum-run-decodenetnum.o: run-decodenetnum.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -MT test_decodenetnum-run-decodenetnum.o -MD -MP -MF $(DEPDIR)/test_decodenetnum-run-decodenetnum.Tpo -c -o test_decodenetnum-run-decodenetnum.o `test -f 'run-decodenetnum.c' || echo '$(srcdir)/'`run-decodenetnum.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_decodenetnum-run-decodenetnum.Tpo $(DEPDIR)/test_decodenetnum-run-decodenetnum.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-decodenetnum.c' object='test_decodenetnum-run-decodenetnum.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -c -o test_decodenetnum-run-decodenetnum.o `test -f 'run-decodenetnum.c' || echo '$(srcdir)/'`run-decodenetnum.c
-
-test_decodenetnum-run-decodenetnum.obj: run-decodenetnum.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -MT test_decodenetnum-run-decodenetnum.obj -MD -MP -MF $(DEPDIR)/test_decodenetnum-run-decodenetnum.Tpo -c -o test_decodenetnum-run-decodenetnum.obj `if test -f 'run-decodenetnum.c'; then $(CYGPATH_W) 'run-decodenetnum.c'; else $(CYGPATH_W) '$(srcdir)/run-decodenetnum.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_decodenetnum-run-decodenetnum.Tpo $(DEPDIR)/test_decodenetnum-run-decodenetnum.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-decodenetnum.c' object='test_decodenetnum-run-decodenetnum.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -c -o test_decodenetnum-run-decodenetnum.obj `if test -f 'run-decodenetnum.c'; then $(CYGPATH_W) 'run-decodenetnum.c'; else $(CYGPATH_W) '$(srcdir)/run-decodenetnum.c'; fi`
-
-test_decodenetnum-sockaddrtest.o: sockaddrtest.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -MT test_decodenetnum-sockaddrtest.o -MD -MP -MF $(DEPDIR)/test_decodenetnum-sockaddrtest.Tpo -c -o test_decodenetnum-sockaddrtest.o `test -f 'sockaddrtest.c' || echo '$(srcdir)/'`sockaddrtest.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_decodenetnum-sockaddrtest.Tpo $(DEPDIR)/test_decodenetnum-sockaddrtest.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sockaddrtest.c' object='test_decodenetnum-sockaddrtest.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -c -o test_decodenetnum-sockaddrtest.o `test -f 'sockaddrtest.c' || echo '$(srcdir)/'`sockaddrtest.c
-
-test_decodenetnum-sockaddrtest.obj: sockaddrtest.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -MT test_decodenetnum-sockaddrtest.obj -MD -MP -MF $(DEPDIR)/test_decodenetnum-sockaddrtest.Tpo -c -o test_decodenetnum-sockaddrtest.obj `if test -f 'sockaddrtest.c'; then $(CYGPATH_W) 'sockaddrtest.c'; else $(CYGPATH_W) '$(srcdir)/sockaddrtest.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_decodenetnum-sockaddrtest.Tpo $(DEPDIR)/test_decodenetnum-sockaddrtest.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sockaddrtest.c' object='test_decodenetnum-sockaddrtest.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_decodenetnum_CFLAGS) $(CFLAGS) -c -o test_decodenetnum-sockaddrtest.obj `if test -f 'sockaddrtest.c'; then $(CYGPATH_W) 'sockaddrtest.c'; else $(CYGPATH_W) '$(srcdir)/sockaddrtest.c'; fi`
-
-test_strtolfp-strtolfp.o: strtolfp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -MT test_strtolfp-strtolfp.o -MD -MP -MF $(DEPDIR)/test_strtolfp-strtolfp.Tpo -c -o test_strtolfp-strtolfp.o `test -f 'strtolfp.c' || echo '$(srcdir)/'`strtolfp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_strtolfp-strtolfp.Tpo $(DEPDIR)/test_strtolfp-strtolfp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strtolfp.c' object='test_strtolfp-strtolfp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -c -o test_strtolfp-strtolfp.o `test -f 'strtolfp.c' || echo '$(srcdir)/'`strtolfp.c
-
-test_strtolfp-strtolfp.obj: strtolfp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -MT test_strtolfp-strtolfp.obj -MD -MP -MF $(DEPDIR)/test_strtolfp-strtolfp.Tpo -c -o test_strtolfp-strtolfp.obj `if test -f 'strtolfp.c'; then $(CYGPATH_W) 'strtolfp.c'; else $(CYGPATH_W) '$(srcdir)/strtolfp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_strtolfp-strtolfp.Tpo $(DEPDIR)/test_strtolfp-strtolfp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strtolfp.c' object='test_strtolfp-strtolfp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -c -o test_strtolfp-strtolfp.obj `if test -f 'strtolfp.c'; then $(CYGPATH_W) 'strtolfp.c'; else $(CYGPATH_W) '$(srcdir)/strtolfp.c'; fi`
-
-test_strtolfp-run-strtolfp.o: run-strtolfp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -MT test_strtolfp-run-strtolfp.o -MD -MP -MF $(DEPDIR)/test_strtolfp-run-strtolfp.Tpo -c -o test_strtolfp-run-strtolfp.o `test -f 'run-strtolfp.c' || echo '$(srcdir)/'`run-strtolfp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_strtolfp-run-strtolfp.Tpo $(DEPDIR)/test_strtolfp-run-strtolfp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-strtolfp.c' object='test_strtolfp-run-strtolfp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -c -o test_strtolfp-run-strtolfp.o `test -f 'run-strtolfp.c' || echo '$(srcdir)/'`run-strtolfp.c
-
-test_strtolfp-run-strtolfp.obj: run-strtolfp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -MT test_strtolfp-run-strtolfp.obj -MD -MP -MF $(DEPDIR)/test_strtolfp-run-strtolfp.Tpo -c -o test_strtolfp-run-strtolfp.obj `if test -f 'run-strtolfp.c'; then $(CYGPATH_W) 'run-strtolfp.c'; else $(CYGPATH_W) '$(srcdir)/run-strtolfp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_strtolfp-run-strtolfp.Tpo $(DEPDIR)/test_strtolfp-run-strtolfp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-strtolfp.c' object='test_strtolfp-run-strtolfp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -c -o test_strtolfp-run-strtolfp.obj `if test -f 'run-strtolfp.c'; then $(CYGPATH_W) 'run-strtolfp.c'; else $(CYGPATH_W) '$(srcdir)/run-strtolfp.c'; fi`
-
-test_strtolfp-lfptest.o: lfptest.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -MT test_strtolfp-lfptest.o -MD -MP -MF $(DEPDIR)/test_strtolfp-lfptest.Tpo -c -o test_strtolfp-lfptest.o `test -f 'lfptest.c' || echo '$(srcdir)/'`lfptest.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_strtolfp-lfptest.Tpo $(DEPDIR)/test_strtolfp-lfptest.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lfptest.c' object='test_strtolfp-lfptest.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -c -o test_strtolfp-lfptest.o `test -f 'lfptest.c' || echo '$(srcdir)/'`lfptest.c
-
-test_strtolfp-lfptest.obj: lfptest.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -MT test_strtolfp-lfptest.obj -MD -MP -MF $(DEPDIR)/test_strtolfp-lfptest.Tpo -c -o test_strtolfp-lfptest.obj `if test -f 'lfptest.c'; then $(CYGPATH_W) 'lfptest.c'; else $(CYGPATH_W) '$(srcdir)/lfptest.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_strtolfp-lfptest.Tpo $(DEPDIR)/test_strtolfp-lfptest.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lfptest.c' object='test_strtolfp-lfptest.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_strtolfp_CFLAGS) $(CFLAGS) -c -o test_strtolfp-lfptest.obj `if test -f 'lfptest.c'; then $(CYGPATH_W) 'lfptest.c'; else $(CYGPATH_W) '$(srcdir)/lfptest.c'; fi`
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- elif test -n "$$redo_logs"; then \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-test-a_md5encrypt.log: test-a_md5encrypt$(EXEEXT)
- @p='test-a_md5encrypt$(EXEEXT)'; \
- b='test-a_md5encrypt'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-atoint.log: test-atoint$(EXEEXT)
- @p='test-atoint$(EXEEXT)'; \
- b='test-atoint'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-atouint.log: test-atouint$(EXEEXT)
- @p='test-atouint$(EXEEXT)'; \
- b='test-atouint'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-authkeys.log: test-authkeys$(EXEEXT)
- @p='test-authkeys$(EXEEXT)'; \
- b='test-authkeys'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-buftvtots.log: test-buftvtots$(EXEEXT)
- @p='test-buftvtots$(EXEEXT)'; \
- b='test-buftvtots'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-calendar.log: test-calendar$(EXEEXT)
- @p='test-calendar$(EXEEXT)'; \
- b='test-calendar'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-caljulian.log: test-caljulian$(EXEEXT)
- @p='test-caljulian$(EXEEXT)'; \
- b='test-caljulian'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-caltontp.log: test-caltontp$(EXEEXT)
- @p='test-caltontp$(EXEEXT)'; \
- b='test-caltontp'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-calyearstart.log: test-calyearstart$(EXEEXT)
- @p='test-calyearstart$(EXEEXT)'; \
- b='test-calyearstart'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-clocktime.log: test-clocktime$(EXEEXT)
- @p='test-clocktime$(EXEEXT)'; \
- b='test-clocktime'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-decodenetnum.log: test-decodenetnum$(EXEEXT)
- @p='test-decodenetnum$(EXEEXT)'; \
- b='test-decodenetnum'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-hextoint.log: test-hextoint$(EXEEXT)
- @p='test-hextoint$(EXEEXT)'; \
- b='test-hextoint'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-hextolfp.log: test-hextolfp$(EXEEXT)
- @p='test-hextolfp$(EXEEXT)'; \
- b='test-hextolfp'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-humandate.log: test-humandate$(EXEEXT)
- @p='test-humandate$(EXEEXT)'; \
- b='test-humandate'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-lfpfunc.log: test-lfpfunc$(EXEEXT)
- @p='test-lfpfunc$(EXEEXT)'; \
- b='test-lfpfunc'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-lfptostr.log: test-lfptostr$(EXEEXT)
- @p='test-lfptostr$(EXEEXT)'; \
- b='test-lfptostr'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-modetoa.log: test-modetoa$(EXEEXT)
- @p='test-modetoa$(EXEEXT)'; \
- b='test-modetoa'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-msyslog.log: test-msyslog$(EXEEXT)
- @p='test-msyslog$(EXEEXT)'; \
- b='test-msyslog'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-netof.log: test-netof$(EXEEXT)
- @p='test-netof$(EXEEXT)'; \
- b='test-netof'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-numtoa.log: test-numtoa$(EXEEXT)
- @p='test-numtoa$(EXEEXT)'; \
- b='test-numtoa'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-numtohost.log: test-numtohost$(EXEEXT)
- @p='test-numtohost$(EXEEXT)'; \
- b='test-numtohost'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-octtoint.log: test-octtoint$(EXEEXT)
- @p='test-octtoint$(EXEEXT)'; \
- b='test-octtoint'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-prettydate.log: test-prettydate$(EXEEXT)
- @p='test-prettydate$(EXEEXT)'; \
- b='test-prettydate'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-recvbuff.log: test-recvbuff$(EXEEXT)
- @p='test-recvbuff$(EXEEXT)'; \
- b='test-recvbuff'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-refidsmear.log: test-refidsmear$(EXEEXT)
- @p='test-refidsmear$(EXEEXT)'; \
- b='test-refidsmear'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-refnumtoa.log: test-refnumtoa$(EXEEXT)
- @p='test-refnumtoa$(EXEEXT)'; \
- b='test-refnumtoa'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-sfptostr.log: test-sfptostr$(EXEEXT)
- @p='test-sfptostr$(EXEEXT)'; \
- b='test-sfptostr'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-socktoa.log: test-socktoa$(EXEEXT)
- @p='test-socktoa$(EXEEXT)'; \
- b='test-socktoa'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-ssl_init.log: test-ssl_init$(EXEEXT)
- @p='test-ssl_init$(EXEEXT)'; \
- b='test-ssl_init'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-statestr.log: test-statestr$(EXEEXT)
- @p='test-statestr$(EXEEXT)'; \
- b='test-statestr'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-strtolfp.log: test-strtolfp$(EXEEXT)
- @p='test-strtolfp$(EXEEXT)'; \
- b='test-strtolfp'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-timespecops.log: test-timespecops$(EXEEXT)
- @p='test-timespecops$(EXEEXT)'; \
- b='test-timespecops'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-timevalops.log: test-timevalops$(EXEEXT)
- @p='test-timevalops$(EXEEXT)'; \
- b='test-timevalops'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-tsafememcmp.log: test-tsafememcmp$(EXEEXT)
- @p='test-tsafememcmp$(EXEEXT)'; \
- b='test-tsafememcmp'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-tstotv.log: test-tstotv$(EXEEXT)
- @p='test-tstotv$(EXEEXT)'; \
- b='test-tstotv'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-tvtots.log: test-tvtots$(EXEEXT)
- @p='test-tvtots$(EXEEXT)'; \
- b='test-tvtots'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-uglydate.log: test-uglydate$(EXEEXT)
- @p='test-uglydate$(EXEEXT)'; \
- b='test-uglydate'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-vi64ops.log: test-vi64ops$(EXEEXT)
- @p='test-vi64ops$(EXEEXT)'; \
- b='test-vi64ops'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-ymd2yd.log: test-ymd2yd$(EXEEXT)
- @p='test-ymd2yd$(EXEEXT)'; \
- b='test-ymd2yd'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile $(HEADERS)
-installdirs:
-install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: all check check-am install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
- ctags ctags-am distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- recheck tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-$(srcdir)/run-a_md5encrypt.c: $(srcdir)/a_md5encrypt.c $(std_unity_list)
- $(run_unity) a_md5encrypt.c run-a_md5encrypt.c
-
-$(srcdir)/run-atoint.c: $(srcdir)/atoint.c $(std_unity_list)
- $(run_unity) atoint.c run-atoint.c
-
-$(srcdir)/run-atouint.c: $(srcdir)/atouint.c $(std_unity_list)
- $(run_unity) atouint.c run-atouint.c
-
-$(srcdir)/run-authkeys.c: $(srcdir)/authkeys.c $(std_unity_list)
- $(run_unity) authkeys.c run-authkeys.c
-
-$(srcdir)/run-buftvtots.c: $(srcdir)/buftvtots.c $(std_unity_list)
- $(run_unity) buftvtots.c run-buftvtots.c
-
-$(srcdir)/run-calendar.c: $(srcdir)/calendar.c $(std_unity_list)
- $(run_unity) calendar.c run-calendar.c
-
-$(srcdir)/run-caltontp.c: $(srcdir)/caltontp.c $(std_unity_list)
- $(run_unity) caltontp.c run-caltontp.c
-
-$(srcdir)/run-caljulian.c: $(srcdir)/caljulian.c $(std_unity_list)
- $(run_unity) caljulian.c run-caljulian.c
-
-$(srcdir)/run-calyearstart.c: $(srcdir)/calyearstart.c $(std_unity_list)
- $(run_unity) calyearstart.c run-calyearstart.c
-
-$(srcdir)/run-clocktime.c: $(srcdir)/clocktime.c $(std_unity_list)
- $(run_unity) clocktime.c run-clocktime.c
-
-$(srcdir)/run-decodenetnum.c: $(srcdir)/decodenetnum.c $(std_unity_list)
- $(run_unity) decodenetnum.c run-decodenetnum.c
-
-$(srcdir)/run-hextoint.c: $(srcdir)/hextoint.c $(std_unity_list)
- $(run_unity) hextoint.c run-hextoint.c
-
-$(srcdir)/run-hextolfp.c: $(srcdir)/hextolfp.c $(std_unity_list)
- $(run_unity) hextolfp.c run-hextolfp.c
-
-$(srcdir)/run-humandate.c: $(srcdir)/humandate.c $(std_unity_list)
- $(run_unity) humandate.c run-humandate.c
-
-$(srcdir)/run-lfpfunc.c: $(srcdir)/lfpfunc.c $(std_unity_list)
- $(run_unity) lfpfunc.c run-lfpfunc.c
-
-$(srcdir)/run-lfptostr.c: $(srcdir)/lfptostr.c $(std_unity_list)
- $(run_unity) lfptostr.c run-lfptostr.c
-
-$(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
- $(run_unity) modetoa.c run-modetoa.c
-
-$(srcdir)/run-msyslog.c: $(srcdir)/msyslog.c $(std_unity_list)
- $(run_unity) msyslog.c run-msyslog.c
-
-$(srcdir)/run-netof.c: $(srcdir)/netof.c $(std_unity_list)
- $(run_unity) netof.c run-netof.c
-
-$(srcdir)/run-numtoa.c: $(srcdir)/numtoa.c $(std_unity_list)
- $(run_unity) numtoa.c run-numtoa.c
-
-$(srcdir)/run-numtohost.c: $(srcdir)/numtohost.c $(std_unity_list)
- $(run_unity) numtohost.c run-numtohost.c
-
-$(srcdir)/run-octtoint.c: $(srcdir)/octtoint.c $(std_unity_list)
- $(run_unity) octtoint.c run-octtoint.c
-
-$(srcdir)/run-prettydate.c: $(srcdir)/prettydate.c $(std_unity_list)
- $(run_unity) prettydate.c run-prettydate.c
-
-$(srcdir)/run-recvbuff.c: $(srcdir)/recvbuff.c $(std_unity_list)
- $(run_unity) recvbuff.c run-recvbuff.c
-
-$(srcdir)/run-refidsmear.c: $(srcdir)/refidsmear.c $(std_unity_list)
- $(run_unity) refidsmear.c run-refidsmear.c
-
-$(srcdir)/run-refnumtoa.c: $(srcdir)/refnumtoa.c $(std_unity_list)
- $(run_unity) refnumtoa.c run-refnumtoa.c
-
-$(srcdir)/run-sfptostr.c: $(srcdir)/sfptostr.c $(std_unity_list)
- $(run_unity) sfptostr.c run-sfptostr.c
-
-$(srcdir)/run-socktoa.c: $(srcdir)/socktoa.c $(std_unity_list)
- $(run_unity) socktoa.c run-socktoa.c
-
-$(srcdir)/run-ssl_init.c: $(srcdir)/ssl_init.c $(std_unity_list)
- $(run_unity) ssl_init.c run-ssl_init.c
-
-$(srcdir)/run-statestr.c: $(srcdir)/statestr.c $(std_unity_list)
- $(run_unity) statestr.c run-statestr.c
-
-$(srcdir)/run-strtolfp.c: $(srcdir)/strtolfp.c $(std_unity_list)
- $(run_unity) strtolfp.c run-strtolfp.c
-
-$(srcdir)/run-timespecops.c: $(srcdir)/timespecops.c $(std_unity_list)
- $(run_unity) timespecops.c run-timespecops.c
-
-$(srcdir)/run-timevalops.c: $(srcdir)/timevalops.c $(std_unity_list)
- $(run_unity) timevalops.c run-timevalops.c
-
-$(srcdir)/run-tsafememcmp.c: $(srcdir)/tsafememcmp.c $(std_unity_list)
- $(run_unity) tsafememcmp.c run-tsafememcmp.c
-
-$(srcdir)/run-tstotv.c: $(srcdir)/tstotv.c $(std_unity_list)
- $(run_unity) tstotv.c run-tstotv.c
-
-$(srcdir)/run-tvtots.c: $(srcdir)/tvtots.c $(std_unity_list)
- $(run_unity) tvtots.c run-tvtots.c
-
-$(srcdir)/run-uglydate.c: $(srcdir)/uglydate.c $(std_unity_list)
- $(run_unity) uglydate.c run-uglydate.c
-
-$(srcdir)/run-vi64ops.c: $(srcdir)/vi64ops.c $(std_unity_list)
- $(run_unity) vi64ops.c run-vi64ops.c
-
-$(srcdir)/run-ymd2yd.c: $(srcdir)/ymd2yd.c $(std_unity_list)
- $(run_unity) ymd2yd.c run-ymd2yd.c
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
- @[ -f $@ ] || \
- cp $(top_srcdir)/deps-ver $@
- @[ -w $@ ] || \
- chmod ug+w $@
- @cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
- $(MAKE) $(AM_MAKEFLAGS) clean && \
- echo -n "Prior $(subdir)/$(DEPDIR) version " && \
- cat $@ && \
- rm -rf $(DEPDIR) && \
- mkdir $(DEPDIR) && \
- case "$(top_builddir)" in \
- .) \
- ./config.status Makefile depfiles \
- ;; \
- *) \
- cd "$(top_builddir)" && \
- ./config.status $(subdir)/Makefile depfiles && \
- cd $(subdir) \
- ;; \
- esac && \
- echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
- cat $(top_srcdir)/deps-ver \
- )
- cp $(top_srcdir)/deps-ver $@
-
-.deps-ver: $(top_srcdir)/deps-ver
- @[ ! -d $(DEPDIR) ] || $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/deps-ver
- @touch $@
-
-#
-# depsver.mf included in Makefile.am for directories with .deps
-#
-# When building in the same directory with sources that change over
-# time, such as when tracking using bk, the .deps files can become
-# stale with respect to moved, deleted, or superceded headers. Most
-# commonly, this would exhibit as make reporting a failure to make a
-# header file which is no longer in the location given. To address
-# this issue, we use a deps-ver file which is updated with each change
-# that breaks old .deps files. A copy of deps-ver is made into
-# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
-# with different contents than deps-ver, we make clean to ensure all
-# .o files built before the incompatible change are rebuilt along with
-# their updated .deps files, then remove $(DEPDIR) and recreate it as
-# empty stubs.
-#
-# It is normal when configured with --disable-dependency-tracking for
-# the DEPDIR to not have been created. For this reason, we use the
-# intermediate target .deps-ver, which invokes make recursively if
-# DEPDIR exists.
-#
-# If you modify depsver.mf, please make the changes to the master
-# copy, the one in sntp is copied by the bootstrap script from it.
-#
-# This comment block follows rather than leads the related code so that
-# it stays with it in the generated Makefile.in and Makefile.
-#
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/contrib/ntp/tests/libntp/a_md5encrypt.c b/contrib/ntp/tests/libntp/a_md5encrypt.c
deleted file mode 100644
index a87aa79..0000000
--- a/contrib/ntp/tests/libntp/a_md5encrypt.c
+++ /dev/null
@@ -1,115 +0,0 @@
-#include "config.h"
-#include "unity.h"
-
-#ifdef OPENSSL
-# include "openssl/err.h"
-# include "openssl/rand.h"
-# include "openssl/evp.h"
-#endif
-#include "ntp.h"
-#include "ntp_stdlib.h"
-
-u_long current_time = 4;
-
-
-/*
- * Example packet with MD5 hash calculated manually.
- */
-const int keytype = KEY_TYPE_MD5;
-const u_char *key = (const u_char*)"abcdefgh";
-const u_short keyLength = 8;
-const u_char *packet = (const u_char*)"ijklmnopqrstuvwx";
-#define packetLength 16
-#define keyIdLength 4
-#define digestLength 16
-#define totalLength (packetLength + keyIdLength + digestLength)
-union {
- u_char u8 [totalLength];
- uint32_t u32[1];
-} expectedPacket = {
- "ijklmnopqrstuvwx\0\0\0\0\x0c\x0e\x84\xcf\x0b\xb7\xa8\x68\x8e\x52\x38\xdb\xbc\x1c\x39\x53"
-};
-union {
- u_char u8 [totalLength];
- uint32_t u32[1];
-} invalidPacket = {
- "ijklmnopqrstuvwx\0\0\0\0\x0c\x0e\x84\xcf\x0b\xb7\xa8\x68\x8e\x52\x38\xdb\xbc\x1c\x39\x54"
-};
-
-
-void test_Encrypt(void);
-void test_DecryptValid(void);
-void test_DecryptInvalid(void);
-void test_IPv4AddressToRefId(void);
-void test_IPv6AddressToRefId(void);
-
-
-void
-test_Encrypt(void) {
- u_int32 *packetPtr;
- int length;
-
- packetPtr = emalloc_zero(totalLength * sizeof(*packetPtr));
- memcpy(packetPtr, packet, packetLength);
-
- cache_secretsize = keyLength;
-
- length = MD5authencrypt(keytype, key, packetPtr, packetLength);
-
- TEST_ASSERT_TRUE(MD5authdecrypt(keytype, key, packetPtr, packetLength, length));
-
- TEST_ASSERT_EQUAL(20, length);
- TEST_ASSERT_EQUAL_MEMORY(expectedPacket.u8, packetPtr, totalLength);
-
- free(packetPtr);
-}
-
-void
-test_DecryptValid(void) {
- cache_secretsize = keyLength;
- TEST_ASSERT_TRUE(MD5authdecrypt(keytype, key, expectedPacket.u32, packetLength, 20));
-}
-
-void
-test_DecryptInvalid(void) {
- cache_secretsize = keyLength;
- TEST_ASSERT_FALSE(MD5authdecrypt(keytype, key, invalidPacket.u32, packetLength, 20));
-}
-
-void
-test_IPv4AddressToRefId(void) {
- sockaddr_u addr;
- addr.sa4.sin_family = AF_INET;
- u_int32 address;
-
- addr.sa4.sin_port = htons(80);
-
- address = inet_addr("192.0.2.1");
- addr.sa4.sin_addr.s_addr = address;
-
- TEST_ASSERT_EQUAL(address, addr2refid(&addr));
-}
-
-void
-test_IPv6AddressToRefId(void) {
- const int expected = 0x75cffd52;
- const struct in6_addr address = { { {
- 0x20, 0x01, 0x0d, 0xb8,
- 0x85, 0xa3, 0x08, 0xd3,
- 0x13, 0x19, 0x8a, 0x2e,
- 0x03, 0x70, 0x73, 0x34
- } } };
- sockaddr_u addr;
-
- addr.sa6.sin6_family = AF_INET6;
-
- addr.sa6.sin6_addr = address;
-
-
-#if 0
- TEST_ASSERT_EQUAL(expected, addr2refid(&addr));
-#else
- (void)expected;
- TEST_IGNORE_MESSAGE("Skipping because of big endian problem?");
-#endif
-}
diff --git a/contrib/ntp/tests/libntp/atoint.c b/contrib/ntp/tests/libntp/atoint.c
deleted file mode 100644
index e640c36..0000000
--- a/contrib/ntp/tests/libntp/atoint.c
+++ /dev/null
@@ -1,60 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "unity.h"
-
-void test_RegularPositive(void);
-void test_RegularNegative(void);
-void test_PositiveOverflowBoundary(void);
-void test_NegativeOverflowBoundary(void);
-void test_PositiveOverflowBig(void);
-void test_IllegalCharacter(void);
-
-
-
-void test_RegularPositive(void) {
- const char *str = "17";
- long val;
-
- TEST_ASSERT_TRUE(atoint(str, &val));
- TEST_ASSERT_EQUAL(17, val);
-}
-
-void test_RegularNegative(void) {
- const char *str = "-20";
- long val;
-
- TEST_ASSERT_TRUE(atoint(str, &val));
- TEST_ASSERT_EQUAL(-20, val);
-}
-
-void test_PositiveOverflowBoundary(void) {
- const char *str = "2147483648";
- long val;
-
- TEST_ASSERT_FALSE(atoint(str, &val));
-}
-
-void test_NegativeOverflowBoundary(void) {
- const char *str = "-2147483649";
- long val;
-
- TEST_ASSERT_FALSE(atoint(str, &val));
-}
-
-void test_PositiveOverflowBig(void) {
- const char *str = "2300000000";
- long val;
-
- TEST_ASSERT_FALSE(atoint(str, &val));
-}
-
-void test_IllegalCharacter(void) {
- const char *str = "4500l";
- long val;
-
- TEST_ASSERT_FALSE(atoint(str, &val));
-}
-
-
diff --git a/contrib/ntp/tests/libntp/atouint.c b/contrib/ntp/tests/libntp/atouint.c
deleted file mode 100644
index 460bf1c..0000000
--- a/contrib/ntp/tests/libntp/atouint.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-void test_RegularPositive(void);
-void test_PositiveOverflowBoundary(void);
-void test_PositiveOverflowBig(void);
-void test_Negative(void);
-void test_IllegalChar(void);
-
-
-
-void test_RegularPositive(void) {
- const char *str = "305";
- u_long actual;
-
- TEST_ASSERT_TRUE(atouint(str, &actual));
- TEST_ASSERT_EQUAL(305, actual);
-}
-
-void test_PositiveOverflowBoundary(void) {
- const char *str = "4294967296";
- u_long actual;
-
- TEST_ASSERT_FALSE(atouint(str, &actual));
-}
-
-void test_PositiveOverflowBig(void) {
- const char *str = "8000000000";
- u_long actual;
-
- TEST_ASSERT_FALSE(atouint(str, &actual));
-}
-
-void test_Negative(void) {
- const char *str = "-1";
- u_long actual;
-
- TEST_ASSERT_FALSE(atouint(str, &actual));
-}
-
-void test_IllegalChar(void) {
- const char *str = "50c3";
- u_long actual;
-
- TEST_ASSERT_FALSE(atouint(str, &actual));
-}
diff --git a/contrib/ntp/tests/libntp/authkeys.c b/contrib/ntp/tests/libntp/authkeys.c
deleted file mode 100644
index fd11ef6..0000000
--- a/contrib/ntp/tests/libntp/authkeys.c
+++ /dev/null
@@ -1,198 +0,0 @@
-/* This file contains test for both libntp/authkeys.c and libntp/authusekey.c */
-
-#include "config.h"
-
-#include "ntp.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-#include "unity.h"
-
-#ifdef OPENSSL
-# include "openssl/err.h"
-# include "openssl/rand.h"
-# include "openssl/evp.h"
-#endif
-#include <limits.h>
-
-u_long current_time = 4;
-int counter = 0;
-
-void setUp(void);
-void tearDown(void);
-void AddTrustedKey(keyid_t keyno);
-void AddUntrustedKey(keyid_t keyno);
-void test_AddTrustedKeys(void);
-void test_AddUntrustedKey(void);
-void test_HaveKeyCorrect(void);
-void test_HaveKeyIncorrect(void);
-void test_AddWithAuthUseKey(void);
-void test_EmptyKey(void);
-void test_auth_log2(void);
-
-
-void
-setUp(void)
-{
- if (counter == 0) {
- counter++;
- init_auth(); // causes segfault if called more than once
- }
- /*
- * init_auth() is called by tests_main.cpp earlier. It
- * does not initialize global variables like
- * authnumkeys, so let's reset them to zero here.
- */
- authnumkeys = 0;
-
- /*
- * Especially, empty the key cache!
- */
- cache_keyid = 0;
- cache_type = 0;
- cache_flags = 0;
- cache_secret = NULL;
- cache_secretsize = 0;
-
- return;
-}
-
-void
-tearDown(void)
-{
- return;
-}
-
-static const int KEYTYPE = KEY_TYPE_MD5;
-
-void
-AddTrustedKey(keyid_t keyno)
-{
- /*
- * We need to add a MD5-key in addition to setting the
- * trust, because authhavekey() requires type != 0.
- */
- MD5auth_setkey(keyno, KEYTYPE, NULL, 0, NULL);
-
- authtrust(keyno, TRUE);
-
- return;
-}
-
-void
-AddUntrustedKey(keyid_t keyno)
-{
- authtrust(keyno, FALSE);
-
- return;
-}
-
-void
-test_AddTrustedKeys(void)
-{
- const keyid_t KEYNO1 = 5;
- const keyid_t KEYNO2 = 8;
-
- AddTrustedKey(KEYNO1);
- AddTrustedKey(KEYNO2);
-
- TEST_ASSERT_TRUE(authistrusted(KEYNO1));
- TEST_ASSERT_TRUE(authistrusted(KEYNO2));
-
- return;
-}
-
-void
-test_AddUntrustedKey(void)
-{
- const keyid_t KEYNO = 3;
-
- AddUntrustedKey(KEYNO);
-
- TEST_ASSERT_FALSE(authistrusted(KEYNO));
-
- return;
-}
-
-void
-test_HaveKeyCorrect(void)
-{
- const keyid_t KEYNO = 3;
-
- AddTrustedKey(KEYNO);
-
- TEST_ASSERT_TRUE(auth_havekey(KEYNO));
- TEST_ASSERT_TRUE(authhavekey(KEYNO));
-
- return;
-}
-
-void
-test_HaveKeyIncorrect(void)
-{
- const keyid_t KEYNO = 2;
-
- TEST_ASSERT_FALSE(auth_havekey(KEYNO));
- TEST_ASSERT_FALSE(authhavekey(KEYNO));
-
- return;
-}
-
-void
-test_AddWithAuthUseKey(void)
-{
- const keyid_t KEYNO = 5;
- const char* KEY = "52a";
-
- TEST_ASSERT_TRUE(authusekey(KEYNO, KEYTYPE, (const u_char*)KEY));
-
- return;
-}
-
-void
-test_EmptyKey(void)
-{
- const keyid_t KEYNO = 3;
- const char* KEY = "";
-
-
- TEST_ASSERT_FALSE(authusekey(KEYNO, KEYTYPE, (const u_char*)KEY));
-
- return;
-}
-
-/* test the implementation of 'auth_log2' -- use a local copy of the code */
-
-static u_short
-auth_log2(
- size_t x)
-{
- int s;
- int r = 0;
- size_t m = ~(size_t)0;
-
- for (s = sizeof(size_t) / 2 * CHAR_BIT; s != 0; s >>= 1) {
- m <<= s;
- if (x & m)
- r += s;
- else
- x <<= s;
- }
- return (u_short)r;
-}
-
-void
-test_auth_log2(void)
-{
- int l2;
- size_t tv;
-
- TEST_ASSERT_EQUAL_INT(0, auth_log2(0));
- TEST_ASSERT_EQUAL_INT(0, auth_log2(1));
- for (l2 = 1; l2 < sizeof(size_t)*CHAR_BIT; ++l2) {
- tv = (size_t)1 << l2;
- TEST_ASSERT_EQUAL_INT(l2, auth_log2( tv ));
- TEST_ASSERT_EQUAL_INT(l2, auth_log2( tv + 1 ));
- TEST_ASSERT_EQUAL_INT(l2, auth_log2(2*tv - 1));
- }
-}
diff --git a/contrib/ntp/tests/libntp/buftvtots.c b/contrib/ntp/tests/libntp/buftvtots.c
deleted file mode 100644
index b6b81a2..0000000
--- a/contrib/ntp/tests/libntp/buftvtots.c
+++ /dev/null
@@ -1,97 +0,0 @@
-#include "config.h"
-#include "ntp_types.h"
-#include "ntp_stdlib.h"
-
-#include "lfptest.h"
-
-#include "ntp_unixtime.h"
-
-#include "unity.h"
-
-/* Required for Solaris. */
-#include <math.h>
-
-void test_ZeroBuffer(void);
-void test_IntegerAndFractionalBuffer(void);
-void test_IllegalMicroseconds(void);
-void test_AlwaysFalseOnWindows(void);
-
-
-void
-test_ZeroBuffer(void)
-{
-#ifndef SYS_WINNT
- const struct timeval input = {0, 0};
- const l_fp expected = {{0 + JAN_1970}, 0};
-
- l_fp actual;
-
- TEST_ASSERT_TRUE(buftvtots((const char*)(&input), &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-#else
- TEST_IGNORE_MESSAGE("Test only for Windows, skipping...");
-#endif
-
- return;
-}
-
-
-void
-test_IntegerAndFractionalBuffer(void)
-{
-#ifndef SYS_WINNT
- const struct timeval input = {5, 500000}; /* 5.5 */
- const l_fp expected = {{5 + JAN_1970}, HALF};
- double expectedDouble, actualDouble;
- l_fp actual;
-
- TEST_ASSERT_TRUE(buftvtots((const char*)(&input), &actual));
-
- /* Compare the fractional part with an absolute error given. */
- TEST_ASSERT_EQUAL(expected.l_ui, actual.l_ui);
-
- M_LFPTOD(0, expected.l_uf, expectedDouble);
- M_LFPTOD(0, actual.l_uf, actualDouble);
-
- /* The error should be less than 0.5 us */
- TEST_ASSERT_DOUBLE_WITHIN(0.0000005, expectedDouble, actualDouble);
-#else
- TEST_IGNORE_MESSAGE("Test only for Windows, skipping...");
-#endif
-
- return;
-}
-
-void
-test_IllegalMicroseconds(void)
-{
-#ifndef SYS_WINNT
- const struct timeval input = {0, 1100000}; /* > 999 999 microseconds. */
-
- l_fp actual;
-
- TEST_ASSERT_FALSE(buftvtots((const char*)(&input), &actual));
-#else
- TEST_IGNORE_MESSAGE("Test only for Windows, skipping...");
-#endif
-
- return;
-}
-
-
-void
-test_AlwaysFalseOnWindows(void)
-{
-#ifdef SYS_WINNT
- /*
- * Under Windows, buftvtots will just return
- * 0 (false).
- */
- l_fp actual;
- TEST_ASSERT_FALSE(buftvtots("", &actual));
-#else
- TEST_IGNORE_MESSAGE("Non-Windows test, skipping...");
-#endif
-
- return;
-}
diff --git a/contrib/ntp/tests/libntp/calendar.c b/contrib/ntp/tests/libntp/calendar.c
deleted file mode 100644
index b631565..0000000
--- a/contrib/ntp/tests/libntp/calendar.c
+++ /dev/null
@@ -1,737 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h" /* test fail without this include, for some reason */
-#include "ntp_calendar.h"
-#include "ntp_unixtime.h"
-#include "unity.h"
-
-#include <string.h>
-
-static int leapdays(int year);
-
-void setUp(void);
-int isGT(int first, int second);
-int leapdays(int year);
-char * CalendarFromCalToString(const struct calendar *cal);
-char * CalendarFromIsoToString(const struct isodate *iso);
-int IsEqualCal(const struct calendar *expected, const struct calendar *actual);
-int IsEqualIso(const struct isodate *expected, const struct isodate *actual);
-char * DateFromCalToString(const struct calendar *cal);
-char * DateFromIsoToString(const struct isodate *iso);
-int IsEqualDateCal(const struct calendar *expected, const struct calendar *actual);
-int IsEqualDateIso(const struct isodate *expected, const struct isodate *actual);
-
-void test_DaySplitMerge(void);
-void test_SplitYearDays1(void);
-void test_SplitYearDays2(void);
-void test_RataDie1(void);
-void test_LeapYears1(void);
-void test_LeapYears2(void);
-void test_RoundTripDate(void);
-void test_RoundTripYearStart(void);
-void test_RoundTripMonthStart(void);
-void test_RoundTripWeekStart(void);
-void test_RoundTripDayStart(void);
-void test_IsoCalYearsToWeeks(void);
-void test_IsoCalWeeksToYearStart(void);
-void test_IsoCalWeeksToYearEnd(void);
-void test_DaySecToDate(void);
-
-void test_NtpToNtp(void);
-void test_NtpToTime(void);
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-/*
- * ---------------------------------------------------------------------
- * test support stuff
- * ---------------------------------------------------------------------
- */
-int
-isGT(int first, int second)
-{
- if(first > second) {
- return TRUE;
- } else {
- return FALSE;
- }
-}
-
-int
-leapdays(int year)
-{
- if (year % 400 == 0)
- return 1;
- if (year % 100 == 0)
- return 0;
- if (year % 4 == 0)
- return 1;
- return 0;
-}
-
-char *
-CalendarFromCalToString(
- const struct calendar *cal)
-{
- char * str = malloc(sizeof (char) * 100);
- snprintf(str, 100, "%u-%02u-%02u (%u) %02u:%02u:%02u",
- cal->year, (u_int)cal->month, (u_int)cal->monthday,
- cal->yearday,
- (u_int)cal->hour, (u_int)cal->minute, (u_int)cal->second);
- str[99] = '\0'; /* paranoia rulez! */
- return str;
-}
-
-char *
-CalendarFromIsoToString(
- const struct isodate *iso)
-{
- char * str = emalloc (sizeof (char) * 100);
- snprintf(str, 100, "%u-W%02u-%02u %02u:%02u:%02u",
- iso->year, (u_int)iso->week, (u_int)iso->weekday,
- (u_int)iso->hour, (u_int)iso->minute, (u_int)iso->second);
- str[99] = '\0'; /* paranoia rulez! */
- return str;
-}
-
-int
-IsEqualCal(
- const struct calendar *expected,
- const struct calendar *actual)
-{
- if (expected->year == actual->year &&
- (!expected->yearday || expected->yearday == actual->yearday) &&
- expected->month == actual->month &&
- expected->monthday == actual->monthday &&
- expected->hour == actual->hour &&
- expected->minute == actual->minute &&
- expected->second == actual->second) {
- return TRUE;
- } else {
- char *p_exp = CalendarFromCalToString(expected);
- char *p_act = CalendarFromCalToString(actual);
-
- printf("expected: %s but was %s", p_exp, p_act);
-
- free(p_exp);
- free(p_act);
-
- return FALSE;
- }
-}
-
-int
-IsEqualIso(
- const struct isodate *expected,
- const struct isodate *actual)
-{
- if (expected->year == actual->year &&
- expected->week == actual->week &&
- expected->weekday == actual->weekday &&
- expected->hour == actual->hour &&
- expected->minute == actual->minute &&
- expected->second == actual->second) {
- return TRUE;
- } else {
- printf("expected: %s but was %s",
- CalendarFromIsoToString(expected),
- CalendarFromIsoToString(actual));
- return FALSE;
- }
-}
-
-char *
-DateFromCalToString(
- const struct calendar *cal)
-{
-
- char * str = emalloc (sizeof (char) * 100);
- snprintf(str, 100, "%u-%02u-%02u (%u)",
- cal->year, (u_int)cal->month, (u_int)cal->monthday,
- cal->yearday);
- str[99] = '\0'; /* paranoia rulez! */
- return str;
-}
-
-char *
-DateFromIsoToString(
- const struct isodate *iso)
-{
-
- char * str = emalloc (sizeof (char) * 100);
- snprintf(str, 100, "%u-W%02u-%02u",
- iso->year, (u_int)iso->week, (u_int)iso->weekday);
- str[99] = '\0'; /* paranoia rulez! */
- return str;
-}
-
-int/*BOOL*/
-IsEqualDateCal(
- const struct calendar *expected,
- const struct calendar *actual)
-{
- if (expected->year == actual->year &&
- (!expected->yearday || expected->yearday == actual->yearday) &&
- expected->month == actual->month &&
- expected->monthday == actual->monthday) {
- return TRUE;
- } else {
- printf("expected: %s but was %s",
- DateFromCalToString(expected),
- DateFromCalToString(actual));
- return FALSE;
- }
-}
-
-int/*BOOL*/
-IsEqualDateIso(
- const struct isodate *expected,
- const struct isodate *actual)
-{
- if (expected->year == actual->year &&
- expected->week == actual->week &&
- expected->weekday == actual->weekday) {
- return TRUE;
- } else {
- printf("expected: %s but was %s",
- DateFromIsoToString(expected),
- DateFromIsoToString(actual));
- return FALSE;
- }
-}
-
-
-/*
- * ---------------------------------------------------------------------
- * test cases
- * ---------------------------------------------------------------------
- */
-
-/* days before month, with a full-year pad at the upper end */
-static const u_short real_month_table[2][13] = {
- /* -*- table for regular years -*- */
- { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
- /* -*- table for leap years -*- */
- { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 }
-};
-
-/* days in month, with one month wrap-around at both ends */
-static const u_short real_month_days[2][14] = {
- /* -*- table for regular years -*- */
- { 31, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31 },
- /* -*- table for leap years -*- */
- { 31, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31 }
-};
-
-/* test the day/sec join & split ops, making sure that 32bit
- * intermediate results would definitely overflow and the hi DWORD of
- * the 'vint64' is definitely needed.
- */
-void
-test_DaySplitMerge(void)
-{
- int32 day,sec;
-
- for (day = -1000000; day <= 1000000; day += 100) {
- for (sec = -100000; sec <= 186400; sec += 10000) {
- vint64 merge;
- ntpcal_split split;
- int32 eday;
- int32 esec;
-
- merge = ntpcal_dayjoin(day, sec);
- split = ntpcal_daysplit(&merge);
- eday = day;
- esec = sec;
-
- while (esec >= 86400) {
- eday += 1;
- esec -= 86400;
- }
- while (esec < 0) {
- eday -= 1;
- esec += 86400;
- }
-
- TEST_ASSERT_EQUAL(eday, split.hi);
- TEST_ASSERT_EQUAL(esec, split.lo);
- }
- }
-
- return;
-}
-
-void
-test_SplitYearDays1(void)
-{
- int32 eyd;
-
- for (eyd = -1; eyd <= 365; eyd++) {
- ntpcal_split split = ntpcal_split_yeardays(eyd, 0);
- if (split.lo >= 0 && split.hi >= 0) {
- TEST_ASSERT_TRUE(isGT(12,split.hi));
- TEST_ASSERT_TRUE(isGT(real_month_days[0][split.hi+1], split.lo));
- int32 tyd = real_month_table[0][split.hi] + split.lo;
- TEST_ASSERT_EQUAL(eyd, tyd);
- } else
- TEST_ASSERT_TRUE(eyd < 0 || eyd > 364);
- }
-
- return;
-}
-
-void
-test_SplitYearDays2(void)
-{
- int32 eyd;
-
- for (eyd = -1; eyd <= 366; eyd++) {
- ntpcal_split split = ntpcal_split_yeardays(eyd, 1);
- if (split.lo >= 0 && split.hi >= 0) {
- /* basic checks do not work on compunds :( */
- /* would like: TEST_ASSERT_TRUE(12 > split.hi); */
- TEST_ASSERT_TRUE(isGT(12,split.hi));
- TEST_ASSERT_TRUE(isGT(real_month_days[1][split.hi+1], split.lo));
- int32 tyd = real_month_table[1][split.hi] + split.lo;
- TEST_ASSERT_EQUAL(eyd, tyd);
- } else
- TEST_ASSERT_TRUE(eyd < 0 || eyd > 365);
- }
-
- return;
-}
-
-void
-test_RataDie1(void)
-{
- int32 testDate = 1; /* 0001-01-01 (proleptic date) */
- struct calendar expected = { 1, 1, 1, 1 };
- struct calendar actual;
-
- ntpcal_rd_to_date(&actual, testDate);
- TEST_ASSERT_TRUE(IsEqualDateCal(&expected, &actual));
-
- return;
-}
-
-/* check last day of february for first 10000 years */
-void
-test_LeapYears1(void)
-{
- struct calendar dateIn, dateOut;
-
- for (dateIn.year = 1; dateIn.year < 10000; ++dateIn.year) {
- dateIn.month = 2;
- dateIn.monthday = 28 + leapdays(dateIn.year);
- dateIn.yearday = 31 + dateIn.monthday;
-
- ntpcal_rd_to_date(&dateOut, ntpcal_date_to_rd(&dateIn));
-
- TEST_ASSERT_TRUE(IsEqualDateCal(&dateIn, &dateOut));
- }
-
- return;
-}
-
-/* check first day of march for first 10000 years */
-void
-test_LeapYears2(void)
-{
- struct calendar dateIn, dateOut;
-
- for (dateIn.year = 1; dateIn.year < 10000; ++dateIn.year) {
- dateIn.month = 3;
- dateIn.monthday = 1;
- dateIn.yearday = 60 + leapdays(dateIn.year);
-
- ntpcal_rd_to_date(&dateOut, ntpcal_date_to_rd(&dateIn));
- TEST_ASSERT_TRUE(IsEqualDateCal(&dateIn, &dateOut));
- }
-
- return;
-}
-
-/* Full roundtrip from 1601-01-01 to 2400-12-31
- * checks sequence of rata die numbers and validates date output
- * (since the input is all nominal days of the calendar in that range
- * and the result of the inverse calculation must match the input no
- * invalid output can occur.)
- */
-void
-test_RoundTripDate(void)
-{
- struct calendar truDate, expDate = { 1600, 0, 12, 31 };;
- int leaps;
- int32 truRdn, expRdn = ntpcal_date_to_rd(&expDate);
-
- while (expDate.year < 2400) {
- expDate.year++;
- expDate.month = 0;
- expDate.yearday = 0;
- leaps = leapdays(expDate.year);
- while (expDate.month < 12) {
- expDate.month++;
- expDate.monthday = 0;
- while (expDate.monthday < real_month_days[leaps][expDate.month]) {
- expDate.monthday++;
- expDate.yearday++;
- expRdn++;
-
- truRdn = ntpcal_date_to_rd(&expDate);
- TEST_ASSERT_EQUAL(expRdn, truRdn);
-
- ntpcal_rd_to_date(&truDate, truRdn);
- TEST_ASSERT_TRUE(IsEqualDateCal(&expDate, &truDate));
- }
- }
- }
-
- return;
-}
-
-/* Roundtrip testing on calyearstart */
-void
-test_RoundTripYearStart(void)
-{
- static const time_t pivot = 0;
- u_int32 ntp, expys, truys;
- struct calendar date;
-
- for (ntp = 0; ntp < 0xFFFFFFFFu - 30000000u; ntp += 30000000u) {
- truys = calyearstart(ntp, &pivot);
- ntpcal_ntp_to_date(&date, ntp, &pivot);
- date.month = date.monthday = 1;
- date.hour = date.minute = date.second = 0;
- expys = ntpcal_date_to_ntp(&date);
- TEST_ASSERT_EQUAL(expys, truys);
- }
-
- return;
-}
-
-/* Roundtrip testing on calmonthstart */
-void
-test_RoundTripMonthStart(void)
-{
- static const time_t pivot = 0;
- u_int32 ntp, expms, trums;
- struct calendar date;
-
- for (ntp = 0; ntp < 0xFFFFFFFFu - 2000000u; ntp += 2000000u) {
- trums = calmonthstart(ntp, &pivot);
- ntpcal_ntp_to_date(&date, ntp, &pivot);
- date.monthday = 1;
- date.hour = date.minute = date.second = 0;
- expms = ntpcal_date_to_ntp(&date);
- TEST_ASSERT_EQUAL(expms, trums);
- }
-
- return;
-}
-
-/* Roundtrip testing on calweekstart */
-void
-test_RoundTripWeekStart(void)
-{
- static const time_t pivot = 0;
- u_int32 ntp, expws, truws;
- struct isodate date;
-
- for (ntp = 0; ntp < 0xFFFFFFFFu - 600000u; ntp += 600000u) {
- truws = calweekstart(ntp, &pivot);
- isocal_ntp_to_date(&date, ntp, &pivot);
- date.hour = date.minute = date.second = 0;
- date.weekday = 1;
- expws = isocal_date_to_ntp(&date);
- TEST_ASSERT_EQUAL(expws, truws);
- }
-
- return;
-}
-
-/* Roundtrip testing on caldaystart */
-void
-test_RoundTripDayStart(void)
-{
- static const time_t pivot = 0;
- u_int32 ntp, expds, truds;
- struct calendar date;
-
- for (ntp = 0; ntp < 0xFFFFFFFFu - 80000u; ntp += 80000u) {
- truds = caldaystart(ntp, &pivot);
- ntpcal_ntp_to_date(&date, ntp, &pivot);
- date.hour = date.minute = date.second = 0;
- expds = ntpcal_date_to_ntp(&date);
- TEST_ASSERT_EQUAL(expds, truds);
- }
-
- return;
-}
-
-/* ---------------------------------------------------------------------
- * ISO8601 week calendar internals
- *
- * The ISO8601 week calendar implementation is simple in the terms of
- * the math involved, but the implementation of the calculations must
- * take care of a few things like overflow, floor division, and sign
- * corrections.
- *
- * Most of the functions are straight forward, but converting from years
- * to weeks and from weeks to years warrants some extra tests. These use
- * an independent reference implementation of the conversion from years
- * to weeks.
- * ---------------------------------------------------------------------
- */
-
-/* helper / reference implementation for the first week of year in the
- * ISO8601 week calendar. This is based on the reference definition of
- * the ISO week calendar start: The Monday closest to January,1st of the
- * corresponding year in the Gregorian calendar.
- */
-static int32_t
-refimpl_WeeksInIsoYears(
- int32_t years)
-{
- int32_t days, weeks;
-
- days = ntpcal_weekday_close(
- ntpcal_days_in_years(years) + 1,
- CAL_MONDAY) - 1;
- /* the weekday functions operate on RDN, while we want elapsed
- * units here -- we have to add / sub 1 in the midlle / at the
- * end of the operation that gets us the first day of the ISO
- * week calendar day.
- */
- weeks = days / 7;
- days = days % 7;
- TEST_ASSERT_EQUAL(0, days); /* paranoia check... */
-
- return weeks;
-}
-
-/* The next tests loop over 5000yrs, but should still be very fast. If
- * they are not, the calendar needs a better implementation...
- */
-void
-test_IsoCalYearsToWeeks(void)
-{
- int32_t years;
- int32_t wref, wcal;
-
- for (years = -1000; years < 4000; ++years) {
- /* get number of weeks before years (reference) */
- wref = refimpl_WeeksInIsoYears(years);
- /* get number of weeks before years (object-under-test) */
- wcal = isocal_weeks_in_years(years);
- TEST_ASSERT_EQUAL(wref, wcal);
- }
-
- return;
-}
-
-void
-test_IsoCalWeeksToYearStart(void)
-{
- int32_t years;
- int32_t wref;
- ntpcal_split ysplit;
-
- for (years = -1000; years < 4000; ++years) {
- /* get number of weeks before years (reference) */
- wref = refimpl_WeeksInIsoYears(years);
- /* reverse split */
- ysplit = isocal_split_eraweeks(wref);
- /* check invariants: same year, week 0 */
- TEST_ASSERT_EQUAL(years, ysplit.hi);
- TEST_ASSERT_EQUAL(0, ysplit.lo);
- }
-
- return;
-}
-
-void
-test_IsoCalWeeksToYearEnd(void)
-{
- int32_t years;
- int32_t wref;
- ntpcal_split ysplit;
-
- for (years = -1000; years < 4000; ++years) {
- /* get last week of previous year */
- wref = refimpl_WeeksInIsoYears(years) - 1;
- /* reverse split */
- ysplit = isocal_split_eraweeks(wref);
- /* check invariants: previous year, week 51 or 52 */
- TEST_ASSERT_EQUAL(years-1, ysplit.hi);
- TEST_ASSERT(ysplit.lo == 51 || ysplit.lo == 52);
- }
-
- return;
-}
-
-void
-test_DaySecToDate(void)
-{
- struct calendar cal;
- int32_t days;
-
- days = ntpcal_daysec_to_date(&cal, -86400);
- TEST_ASSERT_MESSAGE((days==-1 && cal.hour==0 && cal.minute==0 && cal.second==0),
- "failed for -86400");
-
- days = ntpcal_daysec_to_date(&cal, -86399);
- TEST_ASSERT_MESSAGE((days==-1 && cal.hour==0 && cal.minute==0 && cal.second==1),
- "failed for -86399");
-
- days = ntpcal_daysec_to_date(&cal, -1);
- TEST_ASSERT_MESSAGE((days==-1 && cal.hour==23 && cal.minute==59 && cal.second==59),
- "failed for -1");
-
- days = ntpcal_daysec_to_date(&cal, 0);
- TEST_ASSERT_MESSAGE((days==0 && cal.hour==0 && cal.minute==0 && cal.second==0),
- "failed for 0");
-
- days = ntpcal_daysec_to_date(&cal, 1);
- TEST_ASSERT_MESSAGE((days==0 && cal.hour==0 && cal.minute==0 && cal.second==1),
- "failed for 1");
-
- days = ntpcal_daysec_to_date(&cal, 86399);
- TEST_ASSERT_MESSAGE((days==0 && cal.hour==23 && cal.minute==59 && cal.second==59),
- "failed for 86399");
-
- days = ntpcal_daysec_to_date(&cal, 86400);
- TEST_ASSERT_MESSAGE((days==1 && cal.hour==0 && cal.minute==0 && cal.second==0),
- "failed for 86400");
-
- return;
-}
-
-/* --------------------------------------------------------------------
- * unfolding of (truncated) NTP time stamps to full 64bit values.
- *
- * Note: These tests need a 64bit time_t to be useful.
- */
-
-void
-test_NtpToNtp(void)
-{
-# if SIZEOF_TIME_T <= 4
-
- TEST_IGNORE_MESSAGE("test only useful for sizeof(time_t) > 4, skipped");
-
-# else
-
- static const uint32_t ntp_vals[6] = {
- UINT32_C(0x00000000),
- UINT32_C(0x00000001),
- UINT32_C(0x7FFFFFFF),
- UINT32_C(0x80000000),
- UINT32_C(0x80000001),
- UINT32_C(0xFFFFFFFF)
- };
-
- static char lbuf[128];
- vint64 hold;
- time_t pivot, texp, diff;
- int loops, iloop;
-
- pivot = 0;
- for (loops = 0; loops < 16; ++loops) {
- for (iloop = 0; iloop < 6; ++iloop) {
- hold = ntpcal_ntp_to_ntp(
- ntp_vals[iloop], &pivot);
- texp = vint64_to_time(&hold);
-
- /* constraint 1: texp must be in the
- * (right-open) intervall [p-(2^31), p+(2^31)[,
- * but the pivot 'p' must be taken in full NTP
- * time scale!
- */
- diff = texp - (pivot + JAN_1970);
- snprintf(lbuf, sizeof(lbuf),
- "bounds check: piv=%lld exp=%lld dif=%lld",
- (long long)pivot,
- (long long)texp,
- (long long)diff);
- TEST_ASSERT_MESSAGE((diff >= INT32_MIN) && (diff <= INT32_MAX),
- lbuf);
-
- /* constraint 2: low word must be equal to
- * input
- */
- snprintf(lbuf, sizeof(lbuf),
- "low check: ntp(in)=$%08lu ntp(out[0:31])=$%08lu",
- (unsigned long)ntp_vals[iloop],
- (unsigned long)hold.D_s.lo);
- TEST_ASSERT_EQUAL_MESSAGE(ntp_vals[iloop], hold.D_s.lo, lbuf);
- }
- pivot += 0x20000000;
- }
-# endif
-}
-
-void
-test_NtpToTime(void)
-{
-# if SIZEOF_TIME_T <= 4
-
- TEST_IGNORE_MESSAGE("test only useful for sizeof(time_t) > 4, skipped");
-
-# else
-
- static const uint32_t ntp_vals[6] = {
- UINT32_C(0x00000000),
- UINT32_C(0x00000001),
- UINT32_C(0x7FFFFFFF),
- UINT32_C(0x80000000),
- UINT32_C(0x80000001),
- UINT32_C(0xFFFFFFFF)
- };
-
- static char lbuf[128];
- vint64 hold;
- time_t pivot, texp, diff;
- uint32_t back;
- int loops, iloop;
-
- pivot = 0;
- for (loops = 0; loops < 16; ++loops) {
- for (iloop = 0; iloop < 6; ++iloop) {
- hold = ntpcal_ntp_to_time(
- ntp_vals[iloop], &pivot);
- texp = vint64_to_time(&hold);
-
- /* constraint 1: texp must be in the
- * (right-open) intervall [p-(2^31), p+(2^31)[
- */
- diff = texp - pivot;
- snprintf(lbuf, sizeof(lbuf),
- "bounds check: piv=%lld exp=%lld dif=%lld",
- (long long)pivot,
- (long long)texp,
- (long long)diff);
- TEST_ASSERT_MESSAGE((diff >= INT32_MIN) && (diff <= INT32_MAX),
- lbuf);
-
- /* constraint 2: conversion from full time back
- * to truncated NTP time must yield same result
- * as input.
- */
- back = (uint32_t)texp + JAN_1970;
- snprintf(lbuf, sizeof(lbuf),
- "modulo check: ntp(in)=$%08lu ntp(out)=$%08lu",
- (unsigned long)ntp_vals[iloop],
- (unsigned long)back);
- TEST_ASSERT_EQUAL_MESSAGE(ntp_vals[iloop], back, lbuf);
- }
- pivot += 0x20000000;
- }
-# endif
-}
diff --git a/contrib/ntp/tests/libntp/caljulian.c b/contrib/ntp/tests/libntp/caljulian.c
deleted file mode 100644
index b25f8ac..0000000
--- a/contrib/ntp/tests/libntp/caljulian.c
+++ /dev/null
@@ -1,153 +0,0 @@
-#include "config.h"
-
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-#include "test-libntp.h"
-
-#include <string.h>
-
-
-char * CalendarToString(const struct calendar cal);
-int IsEqual(const struct calendar expected, const struct calendar actual);
-void setUp(void);
-void tearDown(void);
-void test_RegularTime(void);
-void test_LeapYear(void);
-void test_uLongBoundary(void);
-void test_uLongWrapped(void);
-
-
-char *
-CalendarToString(const struct calendar cal)
-{
- char * str = emalloc (sizeof (char) * 100);
- char buffer[100] ="";
-
- *str = '\0';
- snprintf(buffer, 100, "%u", cal.year);
- strcat(str, buffer);
- strcat(str, "-");
- snprintf(buffer, 100, "%u", (u_int)cal.month);
- strcat(str, buffer);
- strcat(str, "-");
- snprintf(buffer, 100, "%u", (u_int)cal.monthday);
- strcat(str, buffer);
- strcat(str, " (");
- snprintf(buffer, 100, "%u", (u_int) cal.yearday);
- strcat(str, buffer);
- strcat(str, ") ");
- snprintf(buffer, 100, "%u", (u_int)cal.hour);
- strcat(str, buffer);
- strcat(str, ":");
- snprintf(buffer, 100, "%u", (u_int)cal.minute);
- strcat(str, buffer);
- strcat(str, ":");
- snprintf(buffer, 100, "%u", (u_int)cal.second);
- strcat(str, buffer);
- return str;
-}
-
-int // technically boolean
-IsEqual(const struct calendar expected, const struct calendar actual)
-{
- if ( expected.year == actual.year
- && ( expected.yearday == actual.yearday
- || ( expected.month == actual.month
- && expected.monthday == actual.monthday))
- && expected.hour == actual.hour
- && expected.minute == actual.minute
- && expected.second == actual.second) {
- return TRUE;
- } else {
- char *p_exp, *p_act;
-
- p_exp = CalendarToString(expected);
- p_act = CalendarToString(actual);
- printf("expected: %s but was %s", p_exp, p_act);
- free(p_exp);
- free(p_act);
- return FALSE;
- }
-}
-
-
-void
-setUp()
-{
- ntpcal_set_timefunc(timefunc);
- settime(1970, 1, 1, 0, 0, 0);
- init_lib();
-
- return;
-}
-
-void
-tearDown()
-{
- ntpcal_set_timefunc(NULL);
-
- return;
-}
-
-
-void
-test_RegularTime(void)
-{
- u_long testDate = 3485080800UL; // 2010-06-09 14:00:00
- struct calendar expected = {2010,160,6,9,14,0,0};
-
- struct calendar actual;
-
- caljulian(testDate, &actual);
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-
- return;
-}
-
-void
-test_LeapYear(void)
-{
- u_long input = 3549902400UL; // 2012-06-28 20:00:00Z
- struct calendar expected = {2012, 179, 6, 28, 20, 0, 0};
-
- struct calendar actual;
-
- caljulian(input, &actual);
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-
- return;
-}
-
-void
-test_uLongBoundary(void)
-{
- u_long enc_time = 4294967295UL; // 2036-02-07 6:28:15
- struct calendar expected = {2036,0,2,7,6,28,15};
-
- struct calendar actual;
-
- caljulian(enc_time, &actual);
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-
- return;
-}
-
-void
-test_uLongWrapped(void)
-{
- u_long enc_time = 0;
- struct calendar expected = {2036,0,2,7,6,28,16};
-
- struct calendar actual;
-
- caljulian(enc_time, &actual);
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-
- return;
-}
diff --git a/contrib/ntp/tests/libntp/caltontp.c b/contrib/ntp/tests/libntp/caltontp.c
deleted file mode 100644
index 34173d2..0000000
--- a/contrib/ntp/tests/libntp/caltontp.c
+++ /dev/null
@@ -1,53 +0,0 @@
-#include "config.h"
-#include "ntp_calendar.h"
-#include "unity.h"
-
-void test_DateGivenMonthDay(void);
-void test_DateGivenYearDay(void);
-void test_DateLeapYear(void);
-void test_WraparoundDateIn2036(void);
-
-void
-test_DateGivenMonthDay(void) {
- // 2010-06-24 12:50:00
- struct calendar input = {2010, 0, 6, 24, 12, 50, 0};
-
- u_long expected = 3486372600UL; // This is the timestamp above.
-
- TEST_ASSERT_EQUAL_UINT(expected, caltontp(&input));
-}
-
-void
-test_DateGivenYearDay(void) {
- // 2010-06-24 12:50:00
- // This is the 175th day of 2010.
- struct calendar input = {2010, 175, 0, 0, 12, 50, 0};
-
- u_long expected = 3486372600UL; // This is the timestamp above.
-
- TEST_ASSERT_EQUAL_UINT(expected, caltontp(&input));
-}
-
-void
-test_DateLeapYear(void) {
- // 2012-06-24 12:00:00
- // This is the 176th day of 2012 (since 2012 is a leap year).
- struct calendar inputYd = {2012, 176, 0, 0, 12, 00, 00};
- struct calendar inputMd = {2012, 0, 6, 24, 12, 00, 00};
-
- u_long expected = 3549528000UL;
-
- TEST_ASSERT_EQUAL_UINT(expected, caltontp(&inputYd));
- TEST_ASSERT_EQUAL_UINT(expected, caltontp(&inputMd));
-}
-
-void
-test_WraparoundDateIn2036(void) {
- // 2036-02-07 06:28:16
- // This is (one) wrapping boundary where we go from ULONG_MAX to 0.
- struct calendar input = {2036, 0, 2, 7, 6, 28, 16};
-
- u_long expected = 0UL;
-
- TEST_ASSERT_EQUAL_UINT(expected, caltontp(&input));
-}
diff --git a/contrib/ntp/tests/libntp/calyearstart.c b/contrib/ntp/tests/libntp/calyearstart.c
deleted file mode 100644
index 271ea12..0000000
--- a/contrib/ntp/tests/libntp/calyearstart.c
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "unity.h"
-
-#include "test-libntp.h"
-
-void setUp(void);
-void tearDown(void);
-void test_NoWrapInDateRange(void);
-void test_NoWrapInDateRangeLeapYear(void);
-void test_WrapInDateRange(void);
-
-void setUp(void)
-{
- ntpcal_set_timefunc(timefunc);
- settime(1970, 1, 1, 0, 0, 0);
-}
-
-void tearDown(void)
-{
- ntpcal_set_timefunc(NULL);
-}
-
-
-void test_NoWrapInDateRange(void) {
- const u_int32 input = 3486372600UL; // 2010-06-24 12:50:00.
- const u_int32 expected = 3471292800UL; // 2010-01-01 00:00:00
-
- TEST_ASSERT_EQUAL(expected, calyearstart(input, &nowtime));
- TEST_ASSERT_EQUAL(expected, calyearstart(input, NULL));
-}
-
-void test_NoWrapInDateRangeLeapYear(void) {
- const u_int32 input = 3549528000UL; // 2012-06-24 12:00:00
- const u_int32 expected = 3534364800UL; // 2012-01-01 00:00:00
-
- TEST_ASSERT_EQUAL(expected, calyearstart(input, &nowtime));
- TEST_ASSERT_EQUAL(expected, calyearstart(input, NULL));
-}
-
-void test_WrapInDateRange(void) {
- const u_int32 input = 19904UL; // 2036-02-07 12:00:00
- const u_int32 expected = 4291747200UL; // 2036-01-01 00:00:00
-
- TEST_ASSERT_EQUAL(expected, calyearstart(input, &nowtime));
- TEST_ASSERT_EQUAL(expected, calyearstart(input, NULL));
-}
diff --git a/contrib/ntp/tests/libntp/clocktime.c b/contrib/ntp/tests/libntp/clocktime.c
deleted file mode 100644
index ed2d4b2..0000000
--- a/contrib/ntp/tests/libntp/clocktime.c
+++ /dev/null
@@ -1,246 +0,0 @@
-#include "config.h"
-
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-#include "test-libntp.h"
-
-void setUp(void);
-void tearDown(void);
-void test_CurrentYear(void);
-void test_CurrentYearFuzz(void);
-void test_TimeZoneOffset(void);
-void test_WrongYearStart(void);
-void test_PreviousYear(void);
-void test_NextYear(void);
-void test_NoReasonableConversion(void);
-int isLE(u_int32 diff,u_int32 actual);
-void test_AlwaysInLimit(void);
-
-
-/* ---------------------------------------------------------------------
- * test fixture
- *
- * The clocktimeTest uses the NTP calendar feature to use a mockup
- * function for getting the current system time, so the tests are not
- * dependent on the actual system time.
- */
-
-void
-setUp()
-{
- ntpcal_set_timefunc(timefunc);
- settime(2000, 1, 1, 0, 0, 0);
-
- return;
-}
-
-void
-tearDown()
-{
- ntpcal_set_timefunc(NULL);
-
- return;
-}
-
-/* ---------------------------------------------------------------------
- * test cases
- */
-
-void
-test_CurrentYear(void)
-{
- /* Timestamp: 2010-06-24 12:50:00Z */
- const u_int32 timestamp = 3486372600UL;
- const u_int32 expected = timestamp; /* exactly the same. */
-
- const int yday=175, hour=12, minute=50, second=0, tzoff=0;
-
- u_long yearstart = 0;
- u_int32 actual;
-
- TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff,
- timestamp, &yearstart, &actual));
- TEST_ASSERT_EQUAL(expected, actual);
-
- return;
-}
-
-void
-test_CurrentYearFuzz(void)
-{
- /*
- * Timestamp (rec_ui) is: 2010-06-24 12:50:00
- * Time sent into function is 12:00:00.
- *
- * Since the fuzz is rather small, we should get a NTP
- * timestamp for the 12:00:00 time.
- */
-
- const u_int32 timestamp = 3486372600UL; /* 2010-06-24 12:50:00Z */
- const u_int32 expected = 3486369600UL; /* 2010-06-24 12:00:00Z */
-
- const int yday=175, hour=12, minute=0, second=0, tzoff=0;
-
- u_long yearstart=0;
- u_int32 actual;
-
- TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff,
- timestamp, &yearstart, &actual));
- TEST_ASSERT_EQUAL(expected, actual);
-
- return;
-}
-
-void
-test_TimeZoneOffset(void)
-{
- /*
- * Timestamp (rec_ui) is: 2010-06-24 12:00:00 +0800
- * (which is 2010-06-24 04:00:00Z)
- *
- * Time sent into function is 04:00:00 +0800
- */
- const u_int32 timestamp = 3486369600UL;
- const u_int32 expected = timestamp;
-
- const int yday=175, hour=4, minute=0, second=0, tzoff=8;
-
- u_long yearstart=0;
- u_int32 actual;
-
- TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp,
- &yearstart, &actual));
- TEST_ASSERT_EQUAL(expected, actual);
-}
-
-void
-test_WrongYearStart(void)
-{
- /*
- * Timestamp (rec_ui) is: 2010-01-02 11:00:00Z
- * Time sent into function is 11:00:00.
- * Yearstart sent into function is the yearstart of 2009!
- */
- const u_int32 timestamp = 3471418800UL;
- const u_int32 expected = timestamp;
-
- const int yday=2, hour=11, minute=0, second=0, tzoff=0;
-
- u_long yearstart = 302024100UL; /* Yearstart of 2009. */
- u_int32 actual;
-
- TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp,
- &yearstart, &actual));
- TEST_ASSERT_EQUAL(expected, actual);
-}
-
-void
-test_PreviousYear(void)
-{
- /*
- * Timestamp is: 2010-01-01 01:00:00Z
- * Time sent into function is 23:00:00
- * (which is meant to be 2009-12-31 23:00:00Z)
- */
- const u_int32 timestamp = 3471296400UL;
- const u_int32 expected = 3471289200UL;
-
- const int yday=365, hour=23, minute=0, second=0, tzoff=0;
-
- u_long yearstart = 0;
- u_int32 actual;
-
- TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp,
- &yearstart, &actual));
- TEST_ASSERT_EQUAL(expected, actual);
-}
-
-void
-test_NextYear(void)
-{
- /*
- * Timestamp is: 2009-12-31 23:00:00Z
- * Time sent into function is 01:00:00
- * (which is meant to be 2010-01-01 01:00:00Z)
- */
- const u_int32 timestamp = 3471289200UL;
- const u_int32 expected = 3471296400UL;
-
- const int yday=1, hour=1, minute=0, second=0, tzoff=0;
- u_long yearstart = 0;
- u_int32 actual;
-
- TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff,
- timestamp, &yearstart, &actual));
- TEST_ASSERT_EQUAL(expected, actual);
-
- return;
-}
-
-void
-test_NoReasonableConversion(void)
-{
- /* Timestamp is: 2010-01-02 11:00:00Z */
- const u_int32 timestamp = 3471418800UL;
-
- const int yday=100, hour=12, minute=0, second=0, tzoff=0;
- u_long yearstart = 0;
- u_int32 actual;
-
- TEST_ASSERT_FALSE(clocktime(yday, hour, minute, second, tzoff,
- timestamp, &yearstart, &actual));
-
- return;
-}
-
-
-int/*BOOL*/
-isLE(u_int32 diff,u_int32 actual)
-{
-
- if (diff <= actual) {
- return TRUE;
- }
- else return FALSE;
-}
-
-
-void
-test_AlwaysInLimit(void)
-{
- /* Timestamp is: 2010-01-02 11:00:00Z */
- const u_int32 timestamp = 3471418800UL;
- const u_short prime_incs[] = { 127, 151, 163, 179 };
- int cyc;
- int yday;
- u_char whichprime;
- u_short ydayinc;
- int hour;
- int minute;
- u_long yearstart;
- u_int32 actual;
- u_int32 diff;
-
- yearstart = 0;
- for (cyc = 0; cyc < 5; cyc++) {
- settime(1900 + cyc * 65, 1, 1, 0, 0, 0);
- for (yday = -26000; yday < 26000; yday += ydayinc) {
- whichprime = abs(yday) % COUNTOF(prime_incs);
- ydayinc = prime_incs[whichprime];
- for (hour = -204; hour < 204; hour += 2) {
- for (minute = -60; minute < 60; minute++) {
- clocktime(yday, hour, minute, 30, 0,
- timestamp, &yearstart,
- &actual);
- diff = actual - timestamp;
- if (diff >= 0x80000000UL)
- diff = ~diff + 1;
- TEST_ASSERT_TRUE(isLE(diff, (183u * SECSPERDAY)));
- }
- }
- }
- }
- return;
-}
diff --git a/contrib/ntp/tests/libntp/decodenetnum.c b/contrib/ntp/tests/libntp/decodenetnum.c
deleted file mode 100644
index 64980fc..0000000
--- a/contrib/ntp/tests/libntp/decodenetnum.c
+++ /dev/null
@@ -1,150 +0,0 @@
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "sockaddrtest.h"
-
-#include "unity.h"
-
-void setUp(void);
-extern void test_IPv4AddressOnly(void);
-extern void test_IPv4AddressWithPort(void);
-extern void test_IPv6AddressOnly(void);
-extern void test_IPv6AddressWithPort(void);
-extern void test_IllegalAddress(void);
-extern void test_IllegalCharInPort(void);
-
-/*
- * NOTE: The IPv6 specific tests are reduced to stubs when IPv6 is
- * disabled.
- *
- * ISC_PLATFORM_HAVEIPV6 checks if system has IPV6 capabilies. WANTIPV6
- * ISC_PLATFORM_WANTIPV6 can be changed with build --disable-ipv6.
- *
- * If we want IPv6 but don't have it, the tests should fail, I think.
- */
-void
-setUp(void)
-{
- init_lib();
-}
-
-
-void
-test_IPv4AddressOnly(void)
-{
- const char *str = "192.0.2.1";
- sockaddr_u actual;
-
- sockaddr_u expected;
- expected.sa4.sin_family = AF_INET;
- expected.sa4.sin_addr.s_addr = inet_addr("192.0.2.1");
- SET_PORT(&expected, NTP_PORT);
-
- TEST_ASSERT_TRUE(decodenetnum(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-void
-test_IPv4AddressWithPort(void)
-{
- const char *str = "192.0.2.2:2000";
- sockaddr_u actual;
-
- sockaddr_u expected;
- expected.sa4.sin_family = AF_INET;
- expected.sa4.sin_addr.s_addr = inet_addr("192.0.2.2");
- SET_PORT(&expected, 2000);
-
- TEST_ASSERT_TRUE(decodenetnum(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-
-void
-test_IPv6AddressOnly(void)
-{
-#ifdef ISC_PLATFORM_WANTIPV6
-
- const struct in6_addr address = {
- 0x20, 0x01, 0x0d, 0xb8,
- 0x85, 0xa3, 0x08, 0xd3,
- 0x13, 0x19, 0x8a, 0x2e,
- 0x03, 0x70, 0x73, 0x34
- };
-
- const char *str = "2001:0db8:85a3:08d3:1319:8a2e:0370:7334";
- sockaddr_u actual;
-
- sockaddr_u expected;
- expected.sa6.sin6_family = AF_INET6;
- expected.sa6.sin6_addr = address;
- SET_PORT(&expected, NTP_PORT);
-
- TEST_ASSERT_TRUE(decodenetnum(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-
-#else
-
- TEST_IGNORE_MESSAGE("IPV6 disabled in build, skipping.");
-
-#endif /* ISC_PLATFORM_HAVEIPV6 */
-}
-
-
-void
-test_IPv6AddressWithPort(void)
-{
-#ifdef ISC_PLATFORM_WANTIPV6
-
- const struct in6_addr address = {
- 0x20, 0x01, 0x0d, 0xb8,
- 0x85, 0xa3, 0x08, 0xd3,
- 0x13, 0x19, 0x8a, 0x2e,
- 0x03, 0x70, 0x73, 0x34
- };
-
- const char *str = "[2001:0db8:85a3:08d3:1319:8a2e:0370:7334]:3000";
- sockaddr_u actual;
-
- sockaddr_u expected;
- expected.sa6.sin6_family = AF_INET6;
- expected.sa6.sin6_addr = address;
- SET_PORT(&expected, 3000);
-
- TEST_ASSERT_TRUE(decodenetnum(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-
-#else
-
- TEST_IGNORE_MESSAGE("IPV6 disabled in build, skipping.");
-
-#endif /* ISC_PLATFORM_HAVEIPV6 */
-}
-
-
-void
-test_IllegalAddress(void)
-{
- const char *str = "192.0.2.270:2000";
- sockaddr_u actual;
-
- TEST_ASSERT_FALSE(decodenetnum(str, &actual));
-}
-
-
-void
-test_IllegalCharInPort(void)
-{
- /* An illegal port does not make the decodenetnum fail, but instead
- * makes it use the standard port.
- */
- const char *str = "192.0.2.1:a700";
- sockaddr_u actual;
-
- sockaddr_u expected;
- expected.sa4.sin_family = AF_INET;
- expected.sa4.sin_addr.s_addr = inet_addr("192.0.2.1");
- SET_PORT(&expected, NTP_PORT);
-
- TEST_ASSERT_TRUE(decodenetnum(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
diff --git a/contrib/ntp/tests/libntp/hextoint.c b/contrib/ntp/tests/libntp/hextoint.c
deleted file mode 100644
index 443a1b8..0000000
--- a/contrib/ntp/tests/libntp/hextoint.c
+++ /dev/null
@@ -1,53 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-void test_SingleDigit(void);
-void test_MultipleDigits(void);
-void test_MaxUnsigned(void);
-void test_Overflow(void);
-void test_IllegalChar(void);
-
-
-void test_SingleDigit(void) {
- const char *str = "a"; // 10 decimal
- u_long actual;
-
- TEST_ASSERT_TRUE(hextoint(str, &actual));
- TEST_ASSERT_EQUAL(10, actual);
-}
-
-void test_MultipleDigits(void) {
- const char *str = "8F3"; // 2291 decimal
- u_long actual;
-
- TEST_ASSERT_TRUE(hextoint(str, &actual));
- TEST_ASSERT_EQUAL(2291, actual);
-}
-
-void test_MaxUnsigned(void) {
- const char *str = "ffffffff"; // 4294967295 decimal
- u_long actual;
-
- TEST_ASSERT_TRUE(hextoint(str, &actual));
- TEST_ASSERT_EQUAL(4294967295UL, actual);
-}
-
-void test_Overflow(void) {
- const char *str = "100000000"; // Overflow by 1
- u_long actual;
-
- TEST_ASSERT_FALSE(hextoint(str, &actual));
-}
-
-void test_IllegalChar(void) {
- const char *str = "5gb"; // Illegal character g
- u_long actual;
-
- TEST_ASSERT_FALSE(hextoint(str, &actual));
-}
-
diff --git a/contrib/ntp/tests/libntp/hextolfp.c b/contrib/ntp/tests/libntp/hextolfp.c
deleted file mode 100644
index bb650a5..0000000
--- a/contrib/ntp/tests/libntp/hextolfp.c
+++ /dev/null
@@ -1,75 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-#include "unity.h"
-#include "lfptest.h"
-
-void test_PositiveInteger(void);
-void test_NegativeInteger(void);
-void test_PositiveFraction(void);
-void test_NegativeFraction(void);
-void test_IllegalNumberOfInteger(void);
-void test_IllegalChar(void);
-
-
-void
-test_PositiveInteger(void) {
- const char *str = "00001000.00000000";
- l_fp actual;
-
- l_fp expected = {{4096}, 0}; /* 16^3, no fraction part. */
-
- TEST_ASSERT_TRUE(hextolfp(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-void
-test_NegativeInteger(void) {
- const char *str = "ffffffff.00000000"; /* -1 decimal */
- l_fp actual;
-
- l_fp expected = {{-1}, 0};
-
- TEST_ASSERT_TRUE(hextolfp(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-void
-test_PositiveFraction(void) {
- const char *str = "00002000.80000000"; /* 8196.5 decimal */
- l_fp actual;
-
- l_fp expected = {{8192}, HALF};
-
- TEST_ASSERT_TRUE(hextolfp(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-void
-test_NegativeFraction(void) {
- const char *str = "ffffffff.40000000"; /* -1 + 0.25 decimal */
- l_fp actual;
-
- l_fp expected = {{-1}, QUARTER}; /* -1 + 0.25 */
-
- TEST_ASSERT_TRUE(hextolfp(str, &actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-void
-test_IllegalNumberOfInteger(void) {
- const char *str = "1000000.00000000"; /* Missing one digit in integral part. */
- l_fp actual;
-
- TEST_ASSERT_FALSE(hextolfp(str, &actual));
-}
-
-void
-test_IllegalChar(void) {
- const char *str = "10000000.0000h000"; /* Illegal character h. */
- l_fp actual;
-
- TEST_ASSERT_FALSE(hextolfp(str, &actual));
-}
diff --git a/contrib/ntp/tests/libntp/humandate.c b/contrib/ntp/tests/libntp/humandate.c
deleted file mode 100644
index de3c751..0000000
--- a/contrib/ntp/tests/libntp/humandate.c
+++ /dev/null
@@ -1,56 +0,0 @@
-#include "config.h"
-
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_RegularTime(void);
-void test_CurrentTime(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_RegularTime(void)
-{
- time_t sample = 1276601278;
- char expected[15];
- struct tm* tm;
-
- tm = localtime(&sample);
- TEST_ASSERT_TRUE(tm != NULL);
-
- snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec);
-
- TEST_ASSERT_EQUAL_STRING(expected, humantime(sample));
-
- return;
-}
-
-void
-test_CurrentTime(void)
-{
- time_t sample;
- char expected[15];
- struct tm* tm;
-
- time(&sample);
-
- tm = localtime(&sample);
- TEST_ASSERT_TRUE(tm != NULL);
-
- snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec);
-
- TEST_ASSERT_EQUAL_STRING(expected, humantime(sample));
-
- return;
-}
diff --git a/contrib/ntp/tests/libntp/lfpfunc.c b/contrib/ntp/tests/libntp/lfpfunc.c
deleted file mode 100644
index 859bb74..0000000
--- a/contrib/ntp/tests/libntp/lfpfunc.c
+++ /dev/null
@@ -1,545 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-#include <float.h>
-#include <math.h>
-
-
-/*
- replaced: TEST_ASSERT_EQUAL_MEMORY(&a, &b, sizeof(a))
- with: TEST_ASSERT_EQUAL_l_fp(a, b).
- It's safer this way, because structs can be compared even if they
- aren't initiated with memset (due to padding bytes).
-*/
-#define TEST_ASSERT_EQUAL_l_fp(a, b) { \
- TEST_ASSERT_EQUAL_MESSAGE(a.l_i, b.l_i, "Field l_i"); \
- TEST_ASSERT_EQUAL_UINT_MESSAGE(a.l_uf, b.l_uf, "Field l_uf"); \
-}
-
-
-typedef struct {
- uint32_t h, l;
-} lfp_hl;
-
-
-int l_fp_scmp(const l_fp first, const l_fp second);
-int l_fp_ucmp(const l_fp first, l_fp second);
-l_fp l_fp_init(int32 i, u_int32 f);
-l_fp l_fp_add(const l_fp first, const l_fp second);
-l_fp l_fp_subtract(const l_fp first, const l_fp second);
-l_fp l_fp_negate(const l_fp first);
-l_fp l_fp_abs(const l_fp first);
-int l_fp_signum(const l_fp first);
-double l_fp_convert_to_double(const l_fp first);
-l_fp l_fp_init_from_double( double rhs);
-void l_fp_swap(l_fp * first, l_fp *second);
-bool l_isgt(const l_fp first, const l_fp second);
-bool l_isgtu(const l_fp first, const l_fp second);
-bool l_ishis(const l_fp first, const l_fp second);
-bool l_isgeq(const l_fp first, const l_fp second);
-bool l_isequ(const l_fp first, const l_fp second);
-double eps(double d);
-
-
-void test_AdditionLR(void);
-void test_AdditionRL(void);
-void test_SubtractionLR(void);
-void test_SubtractionRL(void);
-void test_Negation(void);
-void test_Absolute(void);
-void test_FDF_RoundTrip(void);
-void test_SignedRelOps(void);
-void test_UnsignedRelOps(void);
-
-
-static int cmp_work(u_int32 a[3], u_int32 b[3]);
-
-//----------------------------------------------------------------------
-// reference comparision
-// This is implementad as a full signed MP-subtract in 3 limbs, where
-// the operands are zero or sign extended before the subtraction is
-// executed.
-//----------------------------------------------------------------------
-
-int
-l_fp_scmp(const l_fp first, const l_fp second)
-{
- u_int32 a[3], b[3];
-
- const l_fp op1 = first;
- const l_fp op2 = second;
-
- a[0] = op1.l_uf; a[1] = op1.l_ui; a[2] = 0;
- b[0] = op2.l_uf; b[1] = op2.l_ui; b[2] = 0;
-
- a[2] -= (op1.l_i < 0);
- b[2] -= (op2.l_i < 0);
-
- return cmp_work(a,b);
-}
-
-int
-l_fp_ucmp(const l_fp first, l_fp second)
-{
- u_int32 a[3], b[3];
- const l_fp op1 = first;
- const l_fp op2 = second;
-
- a[0] = op1.l_uf; a[1] = op1.l_ui; a[2] = 0;
- b[0] = op2.l_uf; b[1] = op2.l_ui; b[2] = 0;
-
- return cmp_work(a,b);
-}
-
-// maybe rename it to lf_cmp_work
-int
-cmp_work(u_int32 a[3], u_int32 b[3])
-{
- u_int32 cy, idx, tmp;
- for (cy = idx = 0; idx < 3; ++idx) {
- tmp = a[idx]; cy = (a[idx] -= cy ) > tmp;
- tmp = a[idx]; cy |= (a[idx] -= b[idx]) > tmp;
- }
- if (a[2])
- return -1;
- return a[0] || a[1];
-}
-
-
-//----------------------------------------------------------------------
-// imlementation of the LFP stuff
-// This should be easy enough...
-//----------------------------------------------------------------------
-
-l_fp
-l_fp_init(int32 i, u_int32 f)
-{
- l_fp temp;
- temp.l_i = i;
- temp.l_uf = f;
-
- return temp;
-}
-
-l_fp
-l_fp_add(const l_fp first, const l_fp second)
-{
- l_fp temp = first;
- L_ADD(&temp, &second);
-
- return temp;
-}
-
-l_fp
-l_fp_subtract(const l_fp first, const l_fp second)
-{
- l_fp temp = first;
- L_SUB(&temp, &second);
-
- return temp;
-}
-
-l_fp
-l_fp_negate(const l_fp first)
-{
- l_fp temp = first;
- L_NEG(&temp);
-
- return temp;
-}
-
-l_fp
-l_fp_abs(const l_fp first)
-{
- l_fp temp = first;
- if (L_ISNEG(&temp))
- L_NEG(&temp);
- return temp;
-}
-
-int
-l_fp_signum(const l_fp first)
-{
- if (first.l_ui & 0x80000000u)
- return -1;
- return (first.l_ui || first.l_uf);
-}
-
-double
-l_fp_convert_to_double(const l_fp first)
-{
- double res;
- LFPTOD(&first, res);
- return res;
-}
-
-l_fp
-l_fp_init_from_double( double rhs)
-{
- l_fp temp;
- DTOLFP(rhs, &temp);
- return temp;
-}
-
-void
-l_fp_swap(l_fp * first, l_fp *second)
-{
- l_fp temp = *second;
-
- *second = *first;
- *first = temp;
-
- return;
-}
-
-//----------------------------------------------------------------------
-// testing the relational macros works better with proper predicate
-// formatting functions; it slows down the tests a bit, but makes for
-// readable failure messages.
-//----------------------------------------------------------------------
-
-
-bool
-l_isgt (const l_fp first, const l_fp second)
-{
-
- return L_ISGT(&first, &second);
-}
-
-bool
-l_isgtu(const l_fp first, const l_fp second)
-{
-
- return L_ISGTU(&first, &second);
-}
-
-bool
-l_ishis(const l_fp first, const l_fp second)
-{
-
- return L_ISHIS(&first, &second);
-}
-
-bool
-l_isgeq(const l_fp first, const l_fp second)
-{
-
- return L_ISGEQ(&first, &second);
-}
-
-bool
-l_isequ(const l_fp first, const l_fp second)
-{
-
- return L_ISEQU(&first, &second);
-}
-
-
-//----------------------------------------------------------------------
-// test data table for add/sub and compare
-//----------------------------------------------------------------------
-
-
-static const lfp_hl addsub_tab[][3] = {
- // trivial idendity:
- {{0 ,0 }, { 0,0 }, { 0,0}},
- // with carry from fraction and sign change:
- {{-1,0x80000000}, { 0,0x80000000}, { 0,0}},
- // without carry from fraction
- {{ 1,0x40000000}, { 1,0x40000000}, { 2,0x80000000}},
- // with carry from fraction:
- {{ 1,0xC0000000}, { 1,0xC0000000}, { 3,0x80000000}},
- // with carry from fraction and sign change:
- {{0x7FFFFFFF, 0x7FFFFFFF}, {0x7FFFFFFF,0x7FFFFFFF}, {0xFFFFFFFE,0xFFFFFFFE}},
- // two tests w/o carry (used for l_fp<-->double):
- {{0x55555555,0xAAAAAAAA}, {0x11111111,0x11111111}, {0x66666666,0xBBBBBBBB}},
- {{0x55555555,0x55555555}, {0x11111111,0x11111111}, {0x66666666,0x66666666}},
- // wide-range test, triggers compare trouble
- {{0x80000000,0x00000001}, {0xFFFFFFFF,0xFFFFFFFE}, {0x7FFFFFFF,0xFFFFFFFF}}
-};
-static const size_t addsub_cnt = (sizeof(addsub_tab)/sizeof(addsub_tab[0]));
-static const size_t addsub_tot = (sizeof(addsub_tab)/sizeof(addsub_tab[0][0]));
-
-
-
-//----------------------------------------------------------------------
-// epsilon estimation for the precision of a conversion double --> l_fp
-//
-// The error estimation limit is as follows:
-// * The 'l_fp' fixed point fraction has 32 bits precision, so we allow
-// for the LSB to toggle by clamping the epsilon to be at least 2^(-31)
-//
-// * The double mantissa has a precsion 54 bits, so the other minimum is
-// dval * (2^(-53))
-//
-// The maximum of those two boundaries is used for the check.
-//
-// Note: once there are more than 54 bits between the highest and lowest
-// '1'-bit of the l_fp value, the roundtrip *will* create truncation
-// errors. This is an inherent property caused by the 54-bit mantissa of
-// the 'double' type.
-double
-eps(double d)
-{
-
- return fmax(ldexp(1.0, -31), ldexp(fabs(d), -53));
-}
-
-//----------------------------------------------------------------------
-// test addition
-//----------------------------------------------------------------------
-void
-test_AdditionLR(void)
-{
- size_t idx = 0;
-
- for (idx = 0; idx < addsub_cnt; ++idx) {
- l_fp op1 = l_fp_init(addsub_tab[idx][0].h, addsub_tab[idx][0].l);
- l_fp op2 = l_fp_init(addsub_tab[idx][1].h, addsub_tab[idx][1].l);
- l_fp e_res = l_fp_init(addsub_tab[idx][2].h, addsub_tab[idx][2].l);
- l_fp res = l_fp_add(op1, op2);
-
- TEST_ASSERT_EQUAL_l_fp(e_res, res);
- }
- return;
-}
-
-void
-test_AdditionRL(void)
-{
- size_t idx = 0;
-
- for (idx = 0; idx < addsub_cnt; ++idx) {
- l_fp op2 = l_fp_init(addsub_tab[idx][0].h, addsub_tab[idx][0].l);
- l_fp op1 = l_fp_init(addsub_tab[idx][1].h, addsub_tab[idx][1].l);
- l_fp e_res = l_fp_init(addsub_tab[idx][2].h, addsub_tab[idx][2].l);
- l_fp res = l_fp_add(op1, op2);
-
- TEST_ASSERT_EQUAL_l_fp(e_res, res);
- }
- return;
-}
-
-
-//----------------------------------------------------------------------
-// test subtraction
-//----------------------------------------------------------------------
-void
-test_SubtractionLR(void)
-{
- size_t idx = 0;
-
- for (idx = 0; idx < addsub_cnt; ++idx) {
- l_fp op2 = l_fp_init(addsub_tab[idx][0].h, addsub_tab[idx][0].l);
- l_fp e_res = l_fp_init(addsub_tab[idx][1].h, addsub_tab[idx][1].l);
- l_fp op1 = l_fp_init(addsub_tab[idx][2].h, addsub_tab[idx][2].l);
- l_fp res = l_fp_subtract(op1, op2);
-
- TEST_ASSERT_EQUAL_l_fp(e_res, res);
- }
- return;
-}
-
-void
-test_SubtractionRL(void)
-{
- size_t idx = 0;
-
- for (idx = 0; idx < addsub_cnt; ++idx) {
- l_fp e_res = l_fp_init(addsub_tab[idx][0].h, addsub_tab[idx][0].l);
- l_fp op2 = l_fp_init(addsub_tab[idx][1].h, addsub_tab[idx][1].l);
- l_fp op1 = l_fp_init(addsub_tab[idx][2].h, addsub_tab[idx][2].l);
- l_fp res = l_fp_subtract(op1, op2);
-
- TEST_ASSERT_EQUAL_l_fp(e_res, res);
- }
- return;
-}
-
-//----------------------------------------------------------------------
-// test negation
-//----------------------------------------------------------------------
-
-void
-test_Negation(void)
-{
- size_t idx = 0;
-
- for (idx = 0; idx < addsub_cnt; ++idx) {
- l_fp op1 = l_fp_init(addsub_tab[idx][0].h, addsub_tab[idx][0].l);
- l_fp op2 = l_fp_negate(op1);
- l_fp sum = l_fp_add(op1, op2);
-
- l_fp zero = l_fp_init(0, 0);
-
- TEST_ASSERT_EQUAL_l_fp(zero, sum);
- }
- return;
-}
-
-
-
-//----------------------------------------------------------------------
-// test absolute value
-//----------------------------------------------------------------------
-void
-test_Absolute(void)
-{
- size_t idx = 0;
-
- for (idx = 0; idx < addsub_cnt; ++idx) {
- l_fp op1 = l_fp_init(addsub_tab[idx][0].h, addsub_tab[idx][0].l);
- l_fp op2 = l_fp_abs(op1);
-
- TEST_ASSERT_TRUE(l_fp_signum(op2) >= 0);
-
- if (l_fp_signum(op1) >= 0)
- op1 = l_fp_subtract(op1, op2);
- else
- op1 = l_fp_add(op1, op2);
-
- l_fp zero = l_fp_init(0, 0);
-
- TEST_ASSERT_EQUAL_l_fp(zero, op1);
- }
-
- // There is one special case we have to check: the minimum
- // value cannot be negated, or, to be more precise, the
- // negation reproduces the original pattern.
- l_fp minVal = l_fp_init(0x80000000, 0x00000000);
- l_fp minAbs = l_fp_abs(minVal);
- TEST_ASSERT_EQUAL(-1, l_fp_signum(minVal));
-
- TEST_ASSERT_EQUAL_l_fp(minVal, minAbs);
-
- return;
-}
-
-
-//----------------------------------------------------------------------
-// fp -> double -> fp rountrip test
-//----------------------------------------------------------------------
-void
-test_FDF_RoundTrip(void)
-{
- size_t idx = 0;
-
- // since a l_fp has 64 bits in it's mantissa and a double has
- // only 54 bits available (including the hidden '1') we have to
- // make a few concessions on the roundtrip precision. The 'eps()'
- // function makes an educated guess about the avilable precision
- // and checks the difference in the two 'l_fp' values against
- // that limit.
-
- for (idx = 0; idx < addsub_cnt; ++idx) {
- l_fp op1 = l_fp_init(addsub_tab[idx][0].h, addsub_tab[idx][0].l);
- double op2 = l_fp_convert_to_double(op1);
- l_fp op3 = l_fp_init_from_double(op2);
-
- l_fp temp = l_fp_subtract(op1, op3);
- double d = l_fp_convert_to_double(temp);
- TEST_ASSERT_DOUBLE_WITHIN(eps(op2), 0.0, fabs(d));
- }
-
- return;
-}
-
-
-//----------------------------------------------------------------------
-// test the compare stuff
-//
-// This uses the local compare and checks if the operations using the
-// macros in 'ntp_fp.h' produce mathing results.
-// ----------------------------------------------------------------------
-void
-test_SignedRelOps(void)
-{
- const lfp_hl * tv = (&addsub_tab[0][0]);
- size_t lc ;
-
- for (lc = addsub_tot - 1; lc; --lc, ++tv) {
- l_fp op1 = l_fp_init(tv[0].h, tv[0].l);
- l_fp op2 = l_fp_init(tv[1].h, tv[1].l);
- int cmp = l_fp_scmp(op1, op2);
-
- switch (cmp) {
- case -1:
- //printf("op1:%d %d, op2:%d %d\n",op1.l_uf,op1.l_ui,op2.l_uf,op2.l_ui);
- l_fp_swap(&op1, &op2);
- //printf("op1:%d %d, op2:%d %d\n",op1.l_uf,op1.l_ui,op2.l_uf,op2.l_ui);
- case 1:
- TEST_ASSERT_TRUE (l_isgt(op1, op2));
- TEST_ASSERT_FALSE(l_isgt(op2, op1));
-
- TEST_ASSERT_TRUE (l_isgeq(op1, op2));
- TEST_ASSERT_FALSE(l_isgeq(op2, op1));
-
- TEST_ASSERT_FALSE(l_isequ(op1, op2));
- TEST_ASSERT_FALSE(l_isequ(op2, op1));
- break;
- case 0:
- TEST_ASSERT_FALSE(l_isgt(op1, op2));
- TEST_ASSERT_FALSE(l_isgt(op2, op1));
-
- TEST_ASSERT_TRUE (l_isgeq(op1, op2));
- TEST_ASSERT_TRUE (l_isgeq(op2, op1));
-
- TEST_ASSERT_TRUE (l_isequ(op1, op2));
- TEST_ASSERT_TRUE (l_isequ(op2, op1));
- break;
- default:
- TEST_FAIL_MESSAGE("unexpected UCMP result: ");
- }
- }
-
- return;
-}
-
-void
-test_UnsignedRelOps(void)
-{
- const lfp_hl * tv =(&addsub_tab[0][0]);
- size_t lc;
-
- for (lc = addsub_tot - 1; lc; --lc, ++tv) {
- l_fp op1 = l_fp_init(tv[0].h, tv[0].l);
- l_fp op2 = l_fp_init(tv[1].h, tv[1].l);
- int cmp = l_fp_ucmp(op1, op2);
-
- switch (cmp) {
- case -1:
- //printf("op1:%d %d, op2:%d %d\n",op1.l_uf,op1.l_ui,op2.l_uf,op2.l_ui);
- l_fp_swap(&op1, &op2);
- //printf("op1:%d %d, op2:%d %d\n",op1.l_uf,op1.l_ui,op2.l_uf,op2.l_ui);
- case 1:
- TEST_ASSERT_TRUE (l_isgtu(op1, op2));
- TEST_ASSERT_FALSE(l_isgtu(op2, op1));
-
- TEST_ASSERT_TRUE (l_ishis(op1, op2));
- TEST_ASSERT_FALSE(l_ishis(op2, op1));
- break;
- case 0:
- TEST_ASSERT_FALSE(l_isgtu(op1, op2));
- TEST_ASSERT_FALSE(l_isgtu(op2, op1));
-
- TEST_ASSERT_TRUE (l_ishis(op1, op2));
- TEST_ASSERT_TRUE (l_ishis(op2, op1));
- break;
- default:
- TEST_FAIL_MESSAGE("unexpected UCMP result: ");
- }
- }
-
- return;
-}
-
-/*
-*/
-
-//----------------------------------------------------------------------
-// that's all folks... but feel free to add things!
-//----------------------------------------------------------------------
diff --git a/contrib/ntp/tests/libntp/lfptest.c b/contrib/ntp/tests/libntp/lfptest.c
deleted file mode 100644
index 7b4dccf..0000000
--- a/contrib/ntp/tests/libntp/lfptest.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "config.h"
-#include "ntp_fp.h"
-#include "lfptest.h"
-
-int IsEqual(const l_fp expected, const l_fp actual) {
- if (L_ISEQU(&expected, &actual)) {
- return TRUE;
- } else {
- return FALSE;
- }
-}
diff --git a/contrib/ntp/tests/libntp/lfptest.h b/contrib/ntp/tests/libntp/lfptest.h
deleted file mode 100644
index 30a85f5..0000000
--- a/contrib/ntp/tests/libntp/lfptest.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef NTP_TESTS_LFPTEST_H
-#define NTP_TESTS_LFPTEST_H
-
-#include "config.h"
-#include "ntp_fp.h"
-
-
-static const int32 HALF = -2147483647L - 1L;
-static const int32 HALF_PROMILLE_UP = 2147484; // slightly more than 0.0005
-static const int32 HALF_PROMILLE_DOWN = 2147483; // slightly less than 0.0005
-static const int32 QUARTER = 1073741824L;
-static const int32 QUARTER_PROMILLE_APPRX = 1073742L;
-
-int IsEqual(const l_fp expected, const l_fp actual);
-
-#endif
diff --git a/contrib/ntp/tests/libntp/lfptostr.c b/contrib/ntp/tests/libntp/lfptostr.c
deleted file mode 100644
index ed32853..0000000
--- a/contrib/ntp/tests/libntp/lfptostr.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * This file contains test for both mfptoa and mfptoms (which uses dolfptoa),
- * since all these functions are very similar. It also tests ulfptoa, which is
- * a macro.
- */
-
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-static const int LFP_MAX_PRECISION = 10;
-static const int LFP_MAX_PRECISION_MS = 7;
-
-static const int ONE_FOURTH = 1073741824; /* (1 << 30) */
-static const int HALF = (1 << 31);
-static const int THREE_FOURTH = -1073741824;
-static const int HALF_PROMILLE_UP = 2147484; /* slightly more than 0.0005 */
-static const int HALF_PROMILLE_DOWN = 2147483; /* slightly less than 0.0005 */
-
-
-void setUp(void);
-void test_PositiveInteger(void);
-void test_NegativeInteger(void);
-void test_PositiveIntegerWithFraction(void);
-void test_NegativeIntegerWithFraction(void);
-void test_RoundingDownToInteger(void);
-void test_RoundingMiddleToInteger(void);
-void test_RoundingUpToInteger(void);
-void test_SingleDecimal(void);
-void test_MillisecondsRoundingUp(void);
-void test_MillisecondsRoundingDown(void);
-void test_UnsignedInteger(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_PositiveInteger(void) {
- l_fp test = {{200}, 0}; /* exact 200.0000000000 */
-
- TEST_ASSERT_EQUAL_STRING("200.0000000000", mfptoa(test.l_ui, test.l_uf, LFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("200000.0000000", mfptoms(test.l_ui, test.l_uf, LFP_MAX_PRECISION_MS));
-}
-
-void
-test_NegativeInteger(void) {
- l_fp test = {{-100}, 0}; /* -100 */
-
- TEST_ASSERT_EQUAL_STRING("-100.0000000000", lfptoa(&test, LFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("-100000.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS));
-}
-
-void
-test_PositiveIntegerWithFraction(void) {
- l_fp test = {{200}, ONE_FOURTH}; /* 200.25 */
-
- TEST_ASSERT_EQUAL_STRING("200.2500000000", lfptoa(&test, LFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("200250.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS));
-}
-
-void
-test_NegativeIntegerWithFraction(void) {
- l_fp test = {{-100}, ONE_FOURTH}; /* -99.75 */
-
- TEST_ASSERT_EQUAL_STRING("-99.7500000000", lfptoa(&test, LFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("-99750.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS));
-}
-
-void
-test_RoundingDownToInteger(void) {
- l_fp test = {{10}, ONE_FOURTH}; /* 10.25 */
-
- TEST_ASSERT_EQUAL_STRING("10", lfptoa(&test, 0));
- TEST_ASSERT_EQUAL_STRING("10250", lfptoms(&test, 0));
-}
-
-void
-test_RoundingMiddleToInteger(void) {
- l_fp test = {{10}, HALF}; /* 10.5 */
-
- TEST_ASSERT_EQUAL_STRING("11", lfptoa(&test, 0));
- TEST_ASSERT_EQUAL_STRING("10500", lfptoms(&test, 0));
-}
-
-void
-test_RoundingUpToInteger(void) {
- l_fp test = {{5}, THREE_FOURTH}; /* 5.75 */
-
- TEST_ASSERT_EQUAL_STRING("6", lfptoa(&test, 0));
- TEST_ASSERT_EQUAL_STRING("5750", lfptoms(&test, 0));
-}
-
-void
-test_SingleDecimal(void) {
- l_fp test = {{8}, ONE_FOURTH}; /* 8.25 */
-
- TEST_ASSERT_EQUAL_STRING("8.3", lfptoa(&test, 1));
- TEST_ASSERT_EQUAL_STRING("8250.0", lfptoms(&test, 1));
-}
-
-void
-test_MillisecondsRoundingUp(void) {
- l_fp test = {{1}, HALF_PROMILLE_UP}; /* slightly more than 1.0005 */
-
- TEST_ASSERT_EQUAL_STRING("1.0", lfptoa(&test, 1));
-
- TEST_ASSERT_EQUAL_STRING("1000.5", lfptoms(&test, 1));
- TEST_ASSERT_EQUAL_STRING("1001", lfptoms(&test, 0));
-}
-
-void
-test_MillisecondsRoundingDown(void) {
- l_fp test = {{1}, HALF_PROMILLE_DOWN}; /* slightly less than 1.0005 */
-
- TEST_ASSERT_EQUAL_STRING("1.0", lfptoa(&test, 1));
-
- TEST_ASSERT_EQUAL_STRING("1000.5", lfptoms(&test, 1));
- TEST_ASSERT_EQUAL_STRING("1000", lfptoms(&test, 0));
-}
-
-void test_UnsignedInteger(void) {
- l_fp test = {{3000000000UL}, 0};
-
- TEST_ASSERT_EQUAL_STRING("3000000000.0", ulfptoa(&test, 1));
-}
diff --git a/contrib/ntp/tests/libntp/modetoa.c b/contrib/ntp/tests/libntp/modetoa.c
deleted file mode 100644
index 03b384c..0000000
--- a/contrib/ntp/tests/libntp/modetoa.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_KnownMode(void);
-void test_UnknownMode(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_KnownMode(void) {
- const int MODE = 3; // Should be "client"
-
- TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE));
-}
-
-void
-test_UnknownMode(void) {
- const int MODE = 100;
-
- TEST_ASSERT_EQUAL_STRING("mode#100", modetoa(MODE));
-}
diff --git a/contrib/ntp/tests/libntp/msyslog.c b/contrib/ntp/tests/libntp/msyslog.c
deleted file mode 100644
index 987c814..0000000
--- a/contrib/ntp/tests/libntp/msyslog.c
+++ /dev/null
@@ -1,164 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-
-#ifndef VSNPRINTF_PERCENT_M
-// format_errmsg() is normally private to msyslog.c
-void format_errmsg(char *, size_t, const char *, int);
-#endif
-
-
-void setUp(void);
-void test_msnprintf(void);
-void test_msnprintfLiteralPercentm(void);
-void test_msnprintfBackslashLiteralPercentm(void);
-void test_msnprintfBackslashPercent(void);
-void test_msnprintfHangingPercent(void);
-void test_format_errmsgHangingPercent(void);
-void test_msnprintfNullTarget(void);
-void test_msnprintfTruncate(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_msnprintf(void) {
-#define FMT_PREFIX "msyslog.cpp ENOENT: "
- char exp_buf[512];
- char act_buf[512];
- int exp_cnt;
- int act_cnt;
-
- exp_cnt = snprintf(exp_buf, sizeof(exp_buf), FMT_PREFIX "%s",
- strerror(ENOENT));
- errno = ENOENT;
- act_cnt = msnprintf(act_buf, sizeof(act_buf), FMT_PREFIX "%m");
-
- TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
- TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf);
-}
-
-void
-test_msnprintfLiteralPercentm(void)
-{
- char exp_buf[32];
- char act_buf[32];
- int exp_cnt;
- int act_cnt;
-
- exp_cnt = snprintf(exp_buf, sizeof(exp_buf), "%%m");
- errno = ENOENT;
- act_cnt = msnprintf(act_buf, sizeof(act_buf), "%%m");
-
- TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
- TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf);
-}
-
-void
-test_msnprintfBackslashLiteralPercentm(void) {
- char exp_buf[32];
- char act_buf[32];
- int exp_cnt;
- int act_cnt;
-
- exp_cnt = snprintf(exp_buf, sizeof(exp_buf), "\%%m");
- errno = ENOENT;
- act_cnt = msnprintf(act_buf, sizeof(act_buf), "\%%m");
-
- TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
- TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf);
-}
-
-void
-test_msnprintfBackslashPercent(void) {
- char exp_buf[32];
- char act_buf[32];
- int exp_cnt;
- int act_cnt;
-
- exp_cnt = snprintf(exp_buf, sizeof(exp_buf), "\%s",
- strerror(ENOENT));
- errno = ENOENT;
- act_cnt = msnprintf(act_buf, sizeof(act_buf), "\%m");
-
- TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
- TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf);
-}
-
-void
-test_msnprintfHangingPercent(void) {
- static char fmt[] = "percent then nul term then non-nul %\0oops!";
- char exp_buf[64];
- char act_buf[64];
- int exp_cnt;
- int act_cnt;
-
- ZERO(exp_buf);
- ZERO(act_buf);
- exp_cnt = snprintf(exp_buf, sizeof(exp_buf), "%s", fmt);
- act_cnt = msnprintf(act_buf, sizeof(act_buf), "%s", fmt);
-
- TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
- TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf);
- TEST_ASSERT_EQUAL_STRING("", act_buf + 1 + strlen(act_buf));
-}
-
-void
-test_format_errmsgHangingPercent(void) {
-#ifndef VSNPRINTF_PERCENT_M
- static char fmt[] = "percent then nul term then non-nul %\0oops!";
- char act_buf[64];
-
- ZERO(act_buf);
- format_errmsg(act_buf, sizeof(act_buf), fmt, ENOENT);
-
- TEST_ASSERT_EQUAL_STRING(fmt, act_buf);
- TEST_ASSERT_EQUAL_STRING("", act_buf + 1 + strlen(act_buf));
-#else
- TEST_IGNORE_MESSAGE("VSNPRINTF_PERCENT_M is defined")
-#endif
-}
-
-void
-test_msnprintfNullTarget(void) {
- int exp_cnt;
- int act_cnt;
-
- exp_cnt = snprintf(NULL, 0, "%d", 123);
- errno = ENOENT;
- act_cnt = msnprintf(NULL, 0, "%d", 123);
-
- TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
-}
-
-void
-test_msnprintfTruncate(void) {
- char undist[] = "undisturbed";
- char exp_buf[512];
- char act_buf[512];
- int exp_cnt;
- int act_cnt;
-
- memcpy(exp_buf + 3, undist, sizeof(undist));
- memcpy(act_buf + 3, undist, sizeof(undist));
- exp_cnt = snprintf(exp_buf, 3, "%s", strerror(ENOENT));
- errno = ENOENT;
- act_cnt = msnprintf(act_buf, 3, "%m");
-
- TEST_ASSERT_EQUAL('\0', exp_buf[2]);
- TEST_ASSERT_EQUAL('\0', act_buf[2]);
- TEST_ASSERT_TRUE(act_cnt > 0);
- TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
- TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf);
- TEST_ASSERT_EQUAL_STRING(exp_buf + 3, undist);
- TEST_ASSERT_EQUAL_STRING(act_buf + 3, undist);
-}
diff --git a/contrib/ntp/tests/libntp/netof.c b/contrib/ntp/tests/libntp/netof.c
deleted file mode 100644
index 59dd709..0000000
--- a/contrib/ntp/tests/libntp/netof.c
+++ /dev/null
@@ -1,107 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-#include "unity.h"
-
-#include "sockaddrtest.h"
-
-
-void setUp(void);
-void test_ClassBAddress(void);
-void test_ClassCAddress(void);
-void test_ClassAAddress(void);
-void test_IPv6Address(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_ClassBAddress(void)
-{
- sockaddr_u input = CreateSockaddr4("172.16.2.1", NTP_PORT);
- sockaddr_u expected = CreateSockaddr4("172.16.0.0", NTP_PORT);
-
- sockaddr_u* actual = netof(&input);
-
- TEST_ASSERT_TRUE(actual != NULL);
- TEST_ASSERT_TRUE(IsEqual(expected, *actual));
-
- return;
-}
-
-void
-test_ClassCAddress(void)
-{
- sockaddr_u input = CreateSockaddr4("192.0.2.255", NTP_PORT);
- sockaddr_u expected = CreateSockaddr4("192.0.2.0", NTP_PORT);
-
- sockaddr_u* actual = netof(&input);
-
- TEST_ASSERT_TRUE(actual != NULL);
- TEST_ASSERT_TRUE(IsEqual(expected, *actual));
-
- return;
-}
-
-
-void
-test_ClassAAddress(void)
-{
- /* Class A addresses are assumed to be classless,
- * thus the same address should be returned.
- */
- sockaddr_u input = CreateSockaddr4("10.20.30.40", NTP_PORT);
- sockaddr_u expected = CreateSockaddr4("10.20.30.40", NTP_PORT);
-
- sockaddr_u* actual = netof(&input);
-
- TEST_ASSERT_TRUE(actual != NULL);
- TEST_ASSERT_TRUE(IsEqual(expected, *actual));
-
- return;
-}
-
-void
-test_IPv6Address(void)
-{
- /* IPv6 addresses are assumed to have 64-bit host- and 64-bit network parts. */
- const struct in6_addr input_address = { { {
- 0x20, 0x01, 0x0d, 0xb8,
- 0x85, 0xa3, 0x08, 0xd3,
- 0x13, 0x19, 0x8a, 0x2e,
- 0x03, 0x70, 0x73, 0x34
- } } }; // 2001:0db8:85a3:08d3:1319:8a2e:0370:7334
-
- const struct in6_addr expected_address = { { {
- 0x20, 0x01, 0x0d, 0xb8,
- 0x85, 0xa3, 0x08, 0xd3,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00
- } } }; // 2001:0db8:85a3:08d3:0000:0000:0000:0000
-
- sockaddr_u input;
- input.sa6.sin6_family = AF_INET6;
- input.sa6.sin6_addr = input_address;
- SET_PORT(&input, 3000);
-
- sockaddr_u expected;
- expected.sa6.sin6_family = AF_INET6;
- expected.sa6.sin6_addr = expected_address;
- SET_PORT(&expected, 3000);
-
- sockaddr_u* actual = netof(&input);
-
- TEST_ASSERT_TRUE(actual != NULL);
- TEST_ASSERT_TRUE(IsEqual(expected, *actual));
-
- return;
-}
diff --git a/contrib/ntp/tests/libntp/numtoa.c b/contrib/ntp/tests/libntp/numtoa.c
deleted file mode 100644
index 42638b6..0000000
--- a/contrib/ntp/tests/libntp/numtoa.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_Address(void);
-void test_Netmask(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_Address(void) {
- const u_int32 input = htonl(3221225472UL + 512UL + 1UL); // 192.0.2.1
-
- TEST_ASSERT_EQUAL_STRING("192.0.2.1", numtoa(input));
-}
-
-void
-test_Netmask(void) {
- // 255.255.255.0
- const u_int32 hostOrder = 255UL*256UL*256UL*256UL + 255UL*256UL*256UL + 255UL*256UL;
- const u_int32 input = htonl(hostOrder);
-
- TEST_ASSERT_EQUAL_STRING("255.255.255.0", numtoa(input));
-}
diff --git a/contrib/ntp/tests/libntp/numtohost.c b/contrib/ntp/tests/libntp/numtohost.c
deleted file mode 100644
index 1c095eb..0000000
--- a/contrib/ntp/tests/libntp/numtohost.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_LoopbackNetNonResolve(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_LoopbackNetNonResolve(void) {
- /* A loopback address in 127.0.0.0/8 is chosen, and
- * numtohost() should not try to resolve it unless
- * it is 127.0.0.1
- */
-
- const u_int32 input = 127*256*256*256 + 1*256 + 1; // 127.0.1.1
-
- TEST_ASSERT_EQUAL_STRING("127.0.1.1", numtohost(htonl(input)));
-}
diff --git a/contrib/ntp/tests/libntp/octtoint.c b/contrib/ntp/tests/libntp/octtoint.c
deleted file mode 100644
index 83a1c99..0000000
--- a/contrib/ntp/tests/libntp/octtoint.c
+++ /dev/null
@@ -1,96 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-
-
-void test_SingleDigit(void);
-void test_MultipleDigits(void);
-void test_Zero(void);
-void test_MaximumUnsigned32bit(void);
-void test_Overflow(void);
-void test_IllegalCharacter(void);
-void test_IllegalDigit(void);
-
-
-void
-test_SingleDigit(void)
-{
- const char* str = "5";
- u_long actual;
-
- TEST_ASSERT_TRUE(octtoint(str, &actual));
- TEST_ASSERT_EQUAL(5, actual);
-
- return;
-}
-
-void
-test_MultipleDigits(void)
-{
- const char* str = "271";
- u_long actual;
-
- TEST_ASSERT_TRUE(octtoint(str, &actual));
- TEST_ASSERT_EQUAL(185, actual);
-
- return;
-}
-
-void
-test_Zero(void)
-{
- const char* str = "0";
- u_long actual;
-
- TEST_ASSERT_TRUE(octtoint(str, &actual));
- TEST_ASSERT_EQUAL(0, actual);
-
- return;
-}
-
-void
-test_MaximumUnsigned32bit(void)
-{
- const char* str = "37777777777";
- u_long actual;
-
- TEST_ASSERT_TRUE(octtoint(str, &actual));
- TEST_ASSERT_EQUAL(4294967295UL, actual);
-
- return;
-}
-
-void
-test_Overflow(void)
-{
- const char* str = "40000000000";
- u_long actual;
-
- TEST_ASSERT_FALSE(octtoint(str, &actual));
-
- return;
-}
-
-void
-test_IllegalCharacter(void)
-{
- const char* str = "5ac2";
- u_long actual;
-
- TEST_ASSERT_FALSE(octtoint(str, &actual));
-
- return;
-}
-
-void
-test_IllegalDigit(void)
-{
- const char* str = "5283";
- u_long actual;
-
- TEST_ASSERT_FALSE(octtoint(str, &actual));
-
- return;
-}
diff --git a/contrib/ntp/tests/libntp/prettydate.c b/contrib/ntp/tests/libntp/prettydate.c
deleted file mode 100644
index c940e2a..0000000
--- a/contrib/ntp/tests/libntp/prettydate.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_ConstantDate(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_ConstantDate(void) {
- const u_int32 HALF = 2147483648UL;
-
- l_fp e_time = {{3485080800UL}, HALF}; /* 2010-06-09 14:00:00.5 */
-
- TEST_ASSERT_EQUAL_STRING("cfba1ce0.80000000 Wed, Jun 9 2010 14:00:00.500",
- gmprettydate(&e_time));
- return;
-}
diff --git a/contrib/ntp/tests/libntp/recvbuff.c b/contrib/ntp/tests/libntp/recvbuff.c
deleted file mode 100644
index 6c089bb..0000000
--- a/contrib/ntp/tests/libntp/recvbuff.c
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "config.h"
-
-#include "recvbuff.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_Initialization(void);
-void test_GetAndFree(void);
-void test_GetAndFill(void);
-
-void
-setUp(void)
-{
- init_recvbuff(RECV_INIT);
- init_lib();
-
- return;
-}
-
-void
-test_Initialization(void) {
- TEST_ASSERT_EQUAL_UINT(RECV_INIT, free_recvbuffs());
- TEST_ASSERT_EQUAL_UINT(0, full_recvbuffs());
- TEST_ASSERT_FALSE(has_full_recv_buffer());
- TEST_ASSERT_NULL(get_full_recv_buffer());
-}
-
-void
-test_GetAndFree(void) {
- u_long initial = free_recvbuffs();
- recvbuf_t* buf = get_free_recv_buffer();
-
- TEST_ASSERT_EQUAL_UINT(initial-1, free_recvbuffs());
- freerecvbuf(buf);
- TEST_ASSERT_EQUAL_UINT(initial, free_recvbuffs());
-}
-
-
-void
-test_GetAndFill(void) {
- // int initial = free_recvbuffs();
- recvbuf_t* buf = get_free_recv_buffer();
-
- add_full_recv_buffer(buf);
- TEST_ASSERT_EQUAL_UINT(1, full_recvbuffs());
- TEST_ASSERT_TRUE(has_full_recv_buffer());
- TEST_ASSERT_EQUAL_PTR(buf, get_full_recv_buffer());
-}
diff --git a/contrib/ntp/tests/libntp/refidsmear.c b/contrib/ntp/tests/libntp/refidsmear.c
deleted file mode 100644
index da1ebff..0000000
--- a/contrib/ntp/tests/libntp/refidsmear.c
+++ /dev/null
@@ -1,151 +0,0 @@
-#include "config.h"
-
-#include <ntp.h>
-#include <ntp_fp.h>
-#include <refidsmear.h>
-
-//#include "ntp_stdlib.h"
-//#include "ntp_calendar.h"
-
-#include "unity.h"
-
-#include <stdio.h>
-
-/*
- * we want to test a refid format of:
- * 254.x.y.x
- *
- * where x.y.z are 24 bits containing 2 (signed) integer bits
- * and 22 fractional bits.
- *
- * we want functions to convert to/from this format, with unit tests.
- *
- * Interesting test cases include:
- * 254.0.0.0
- * 254.0.0.1
- * 254.127.255.255
- * 254.128.0.0
- * 254.255.255.255
- */
-
-
-void setUp(void);
-void rtol(uint32_t r, char *es);
-void rtoltor(uint32_t er, char *es);
-void ltor(l_fp l, char *er);
-void test_refidsmear(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-void
-rtol(uint32_t r, char *es)
-{
- l_fp l;
- char *as;
- char msg[100];
-
- TEST_ASSERT_NOT_NULL(es);
-
- snprintf(msg, 100, "rtol was called with r=%#.8x, es=%s", r, es);
-
- l = convertRefIDToLFP(htonl(r));
- as = lfptoa(&l, 8);
-
- //printf("refid %#x, smear %s\n", r, as);
-
- TEST_ASSERT_NOT_NULL_MESSAGE(as, msg);
- TEST_ASSERT_EQUAL_STRING_MESSAGE(es, as, msg);
-
- return;
-}
-
-
-void
-rtoltor(uint32_t er, char *es)
-{
- l_fp l;
- char *as;
- uint32_t ar;
- char msg[100];
-
- TEST_ASSERT_NOT_NULL(es);
-
- snprintf(msg, 100, "rtoltor was called with er=%#.8x, es=%s", er, es);
-
- l = convertRefIDToLFP(htonl(er));
- as = lfptoa(&l, 8);
-
- ar = convertLFPToRefID(l);
-
- //printf("smear %s, refid %#.8x\n", lfptoa(&l, 8), ntohl(ar));
-
- TEST_ASSERT_NOT_NULL_MESSAGE(as, msg);
- TEST_ASSERT_EQUAL_STRING_MESSAGE(es, as, msg);
- TEST_ASSERT_EQUAL_UINT_MESSAGE(er, ntohl(ar), msg);
-
- return;
-}
-
-
-void
-ltor(l_fp l, char *er)
-{
- uint32_t r;
-
- printf("ltor: ");
-
- r = convertLFPToRefID(l);
- printf("smear %s, refid %#.8x\n", lfptoa(&l, 8), ntohl(r));
-
- return;
-}
-
-
-void test_refidsmear(void)
-{
-
- rtol(0xfe800000, "-2.00000000");
- rtol(0xfe800001, "-1.99999976");
- rtol(0xfe8ffffe, "-1.75000048");
- rtol(0xfe8fffff, "-1.75000024");
- rtol(0xfef00000, "-0.25000000");
- rtol(0xfef00001, "-0.24999976");
- rtol(0xfefffffe, "-0.00000048");
- rtol(0xfeffffff, "-0.00000024");
-
- rtol(0xfe000000, "0.00000000");
- rtol(0xfe000001, "0.00000024");
- rtol(0xfe6ffffe, "1.74999952");
- rtol(0xfe6fffff, "1.74999976");
- rtol(0xfe700000, "1.75000000");
- rtol(0xfe700001, "1.75000024");
- rtol(0xfe7ffffe, "1.99999952");
- rtol(0xfe7fffff, "1.99999976");
-
- rtoltor(0xfe800000, "-2.00000000");
- rtoltor(0xfe800001, "-1.99999976");
- rtoltor(0xfe8ffffe, "-1.75000048");
- rtoltor(0xfe8fffff, "-1.75000024");
- rtoltor(0xfef00000, "-0.25000000");
- rtoltor(0xfef00001, "-0.24999976");
- rtoltor(0xfefffffe, "-0.00000048");
- rtoltor(0xfeffffff, "-0.00000024");
-
- rtoltor(0xfe000000, "0.00000000");
- rtoltor(0xfe000001, "0.00000024");
- rtoltor(0xfe6ffffe, "1.74999952");
- rtoltor(0xfe6fffff, "1.74999976");
- rtoltor(0xfe700000, "1.75000000");
- rtoltor(0xfe700001, "1.75000024");
- rtoltor(0xfe7ffffe, "1.99999952");
- rtoltor(0xfe7fffff, "1.99999976");
-
- return;
-}
diff --git a/contrib/ntp/tests/libntp/refnumtoa.c b/contrib/ntp/tests/libntp/refnumtoa.c
deleted file mode 100644
index 9db5fb1..0000000
--- a/contrib/ntp/tests/libntp/refnumtoa.c
+++ /dev/null
@@ -1,76 +0,0 @@
-#include "config.h"
-
-#include "ntp_net.h"
-#include "ntp_refclock.h"
-
-#include "unity.h"
-
-
-/* Might need to be updated if a new refclock gets this id. */
-static const int UNUSED_REFCLOCK_ID = 250;
-
-void setUp(void);
-void test_LocalClock(void);
-void test_UnknownId(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_LocalClock(void) {
-#ifdef REFCLOCK /* clockname() is useless otherwise */
- /* We test with a refclock address of type LOCALCLOCK.
- * with id 8
- */
- u_int32 addr = REFCLOCK_ADDR;
- addr |= REFCLK_LOCALCLOCK << 8;
- addr |= 0x8;
-
- sockaddr_u address;
- address.sa4.sin_family = AF_INET;
- address.sa4.sin_addr.s_addr = htonl(addr);
-
- char stringStart[100]= "";
-
- strcat(stringStart, clockname(REFCLK_LOCALCLOCK));
- strcat(stringStart, "(8)");
-
- char * expected = stringStart;
-
- TEST_ASSERT_EQUAL_STRING(expected, refnumtoa(&address));
-#else
- TEST_IGNORE_MESSAGE("REFCLOCK NOT DEFINED, SKIPPING TEST");
-#endif /* REFCLOCK */
-}
-
-void
-test_UnknownId(void) {
-#ifdef REFCLOCK /* refnumtoa() is useless otherwise */
- /* We test with a currently unused refclock ID */
- u_int32 addr = REFCLOCK_ADDR;
- addr |= UNUSED_REFCLOCK_ID << 8;
- addr |= 0x4;
-
- sockaddr_u address;
- address.sa4.sin_family = AF_INET;
- address.sa4.sin_addr.s_addr = htonl(addr);
-
- char stringStart[100]= "REFCLK(";
- char value[100] ;
- snprintf(value, sizeof(value), "%d", UNUSED_REFCLOCK_ID);
- strcat(stringStart,value);
- strcat(stringStart,",4)");
- char * expected = stringStart;
-
- TEST_ASSERT_EQUAL_STRING(expected, refnumtoa(&address));
-#else
- TEST_IGNORE_MESSAGE("REFCLOCK NOT DEFINED, SKIPPING TEST");
-#endif /* REFCLOCK */
-}
diff --git a/contrib/ntp/tests/libntp/run-a_md5encrypt.c b/contrib/ntp/tests/libntp/run-a_md5encrypt.c
deleted file mode 100644
index a4bfa36..0000000
--- a/contrib/ntp/tests/libntp/run-a_md5encrypt.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp.h"
-#include "ntp_stdlib.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_Encrypt(void);
-extern void test_DecryptValid(void);
-extern void test_DecryptInvalid(void);
-extern void test_IPv4AddressToRefId(void);
-extern void test_IPv6AddressToRefId(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("a_md5encrypt.c");
- RUN_TEST(test_Encrypt, 40);
- RUN_TEST(test_DecryptValid, 41);
- RUN_TEST(test_DecryptInvalid, 42);
- RUN_TEST(test_IPv4AddressToRefId, 43);
- RUN_TEST(test_IPv6AddressToRefId, 44);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-atoint.c b/contrib/ntp/tests/libntp/run-atoint.c
deleted file mode 100644
index e8405fd..0000000
--- a/contrib/ntp/tests/libntp/run-atoint.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_RegularPositive(void);
-extern void test_RegularNegative(void);
-extern void test_PositiveOverflowBoundary(void);
-extern void test_NegativeOverflowBoundary(void);
-extern void test_PositiveOverflowBig(void);
-extern void test_IllegalCharacter(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("atoint.c");
- RUN_TEST(test_RegularPositive, 7);
- RUN_TEST(test_RegularNegative, 8);
- RUN_TEST(test_PositiveOverflowBoundary, 9);
- RUN_TEST(test_NegativeOverflowBoundary, 10);
- RUN_TEST(test_PositiveOverflowBig, 11);
- RUN_TEST(test_IllegalCharacter, 12);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-atouint.c b/contrib/ntp/tests/libntp/run-atouint.c
deleted file mode 100644
index b7c1732..0000000
--- a/contrib/ntp/tests/libntp/run-atouint.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "ntp_fp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_RegularPositive(void);
-extern void test_PositiveOverflowBoundary(void);
-extern void test_PositiveOverflowBig(void);
-extern void test_Negative(void);
-extern void test_IllegalChar(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("atouint.c");
- RUN_TEST(test_RegularPositive, 9);
- RUN_TEST(test_PositiveOverflowBoundary, 10);
- RUN_TEST(test_PositiveOverflowBig, 11);
- RUN_TEST(test_Negative, 12);
- RUN_TEST(test_IllegalChar, 13);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-authkeys.c b/contrib/ntp/tests/libntp/run-authkeys.c
deleted file mode 100644
index cc91876..0000000
--- a/contrib/ntp/tests/libntp/run-authkeys.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include <limits.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_AddTrustedKeys(void);
-extern void test_AddUntrustedKey(void);
-extern void test_HaveKeyCorrect(void);
-extern void test_HaveKeyIncorrect(void);
-extern void test_AddWithAuthUseKey(void);
-extern void test_EmptyKey(void);
-extern void test_auth_log2(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("authkeys.c");
- RUN_TEST(test_AddTrustedKeys, 25);
- RUN_TEST(test_AddUntrustedKey, 26);
- RUN_TEST(test_HaveKeyCorrect, 27);
- RUN_TEST(test_HaveKeyIncorrect, 28);
- RUN_TEST(test_AddWithAuthUseKey, 29);
- RUN_TEST(test_EmptyKey, 30);
- RUN_TEST(test_auth_log2, 31);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-buftvtots.c b/contrib/ntp/tests/libntp/run-buftvtots.c
deleted file mode 100644
index 82a1969..0000000
--- a/contrib/ntp/tests/libntp/run-buftvtots.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_types.h"
-#include "ntp_stdlib.h"
-#include "lfptest.h"
-#include "ntp_unixtime.h"
-#include <math.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_ZeroBuffer(void);
-extern void test_IntegerAndFractionalBuffer(void);
-extern void test_IllegalMicroseconds(void);
-extern void test_AlwaysFalseOnWindows(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("buftvtots.c");
- RUN_TEST(test_ZeroBuffer, 14);
- RUN_TEST(test_IntegerAndFractionalBuffer, 15);
- RUN_TEST(test_IllegalMicroseconds, 16);
- RUN_TEST(test_AlwaysFalseOnWindows, 17);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-calendar.c b/contrib/ntp/tests/libntp/run-calendar.c
deleted file mode 100644
index 82309bd..0000000
--- a/contrib/ntp/tests/libntp/run-calendar.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "ntp_unixtime.h"
-#include <string.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_DaySplitMerge(void);
-extern void test_SplitYearDays1(void);
-extern void test_SplitYearDays2(void);
-extern void test_RataDie1(void);
-extern void test_LeapYears1(void);
-extern void test_LeapYears2(void);
-extern void test_RoundTripDate(void);
-extern void test_RoundTripYearStart(void);
-extern void test_RoundTripMonthStart(void);
-extern void test_RoundTripWeekStart(void);
-extern void test_RoundTripDayStart(void);
-extern void test_IsoCalYearsToWeeks(void);
-extern void test_IsoCalWeeksToYearStart(void);
-extern void test_IsoCalWeeksToYearEnd(void);
-extern void test_DaySecToDate(void);
-extern void test_NtpToNtp(void);
-extern void test_NtpToTime(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("calendar.c");
- RUN_TEST(test_DaySplitMerge, 24);
- RUN_TEST(test_SplitYearDays1, 25);
- RUN_TEST(test_SplitYearDays2, 26);
- RUN_TEST(test_RataDie1, 27);
- RUN_TEST(test_LeapYears1, 28);
- RUN_TEST(test_LeapYears2, 29);
- RUN_TEST(test_RoundTripDate, 30);
- RUN_TEST(test_RoundTripYearStart, 31);
- RUN_TEST(test_RoundTripMonthStart, 32);
- RUN_TEST(test_RoundTripWeekStart, 33);
- RUN_TEST(test_RoundTripDayStart, 34);
- RUN_TEST(test_IsoCalYearsToWeeks, 35);
- RUN_TEST(test_IsoCalWeeksToYearStart, 36);
- RUN_TEST(test_IsoCalWeeksToYearEnd, 37);
- RUN_TEST(test_DaySecToDate, 38);
- RUN_TEST(test_NtpToNtp, 40);
- RUN_TEST(test_NtpToTime, 41);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-caljulian.c b/contrib/ntp/tests/libntp/run-caljulian.c
deleted file mode 100644
index a11389c..0000000
--- a/contrib/ntp/tests/libntp/run-caljulian.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-#include "test-libntp.h"
-#include <string.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_RegularTime(void);
-extern void test_LeapYear(void);
-extern void test_uLongBoundary(void);
-extern void test_uLongWrapped(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("caljulian.c");
- RUN_TEST(test_RegularTime, 16);
- RUN_TEST(test_LeapYear, 17);
- RUN_TEST(test_uLongBoundary, 18);
- RUN_TEST(test_uLongWrapped, 19);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-caltontp.c b/contrib/ntp/tests/libntp/run-caltontp.c
deleted file mode 100644
index c80e0a4..0000000
--- a/contrib/ntp/tests/libntp/run-caltontp.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_calendar.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(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("caltontp.c");
- RUN_TEST(test_DateGivenMonthDay, 5);
- RUN_TEST(test_DateGivenYearDay, 6);
- RUN_TEST(test_DateLeapYear, 7);
- RUN_TEST(test_WraparoundDateIn2036, 8);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-calyearstart.c b/contrib/ntp/tests/libntp/run-calyearstart.c
deleted file mode 100644
index 374e9d5..0000000
--- a/contrib/ntp/tests/libntp/run-calyearstart.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "test-libntp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_NoWrapInDateRange(void);
-extern void test_NoWrapInDateRangeLeapYear(void);
-extern void test_WrapInDateRange(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("calyearstart.c");
- RUN_TEST(test_NoWrapInDateRange, 11);
- RUN_TEST(test_NoWrapInDateRangeLeapYear, 12);
- RUN_TEST(test_WrapInDateRange, 13);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-clocktime.c b/contrib/ntp/tests/libntp/run-clocktime.c
deleted file mode 100644
index 8d19831..0000000
--- a/contrib/ntp/tests/libntp/run-clocktime.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 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>
-#include "config.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);
-extern void test_CurrentYear(void);
-extern void test_CurrentYearFuzz(void);
-extern void test_TimeZoneOffset(void);
-extern void test_WrongYearStart(void);
-extern void test_PreviousYear(void);
-extern void test_NextYear(void);
-extern void test_NoReasonableConversion(void);
-extern void test_AlwaysInLimit(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("clocktime.c");
- RUN_TEST(test_CurrentYear, 11);
- RUN_TEST(test_CurrentYearFuzz, 12);
- RUN_TEST(test_TimeZoneOffset, 13);
- RUN_TEST(test_WrongYearStart, 14);
- RUN_TEST(test_PreviousYear, 15);
- RUN_TEST(test_NextYear, 16);
- RUN_TEST(test_NoReasonableConversion, 17);
- RUN_TEST(test_AlwaysInLimit, 19);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-decodenetnum.c b/contrib/ntp/tests/libntp/run-decodenetnum.c
deleted file mode 100644
index d41f93e..0000000
--- a/contrib/ntp/tests/libntp/run-decodenetnum.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "sockaddrtest.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_IPv4AddressOnly(void);
-extern void test_IPv4AddressWithPort(void);
-extern void test_IPv6AddressOnly(void);
-extern void test_IPv6AddressWithPort(void);
-extern void test_IllegalAddress(void);
-extern void test_IllegalCharInPort(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("decodenetnum.c");
- RUN_TEST(test_IPv4AddressOnly, 8);
- RUN_TEST(test_IPv4AddressWithPort, 9);
- RUN_TEST(test_IPv6AddressOnly, 10);
- RUN_TEST(test_IPv6AddressWithPort, 11);
- RUN_TEST(test_IllegalAddress, 12);
- RUN_TEST(test_IllegalCharInPort, 13);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-hextoint.c b/contrib/ntp/tests/libntp/run-hextoint.c
deleted file mode 100644
index 66cc57d..0000000
--- a/contrib/ntp/tests/libntp/run-hextoint.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "ntp_fp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_SingleDigit(void);
-extern void test_MultipleDigits(void);
-extern void test_MaxUnsigned(void);
-extern void test_Overflow(void);
-extern void test_IllegalChar(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("hextoint.c");
- RUN_TEST(test_SingleDigit, 9);
- RUN_TEST(test_MultipleDigits, 10);
- RUN_TEST(test_MaxUnsigned, 11);
- RUN_TEST(test_Overflow, 12);
- RUN_TEST(test_IllegalChar, 13);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-hextolfp.c b/contrib/ntp/tests/libntp/run-hextolfp.c
deleted file mode 100644
index e894c3b..0000000
--- a/contrib/ntp/tests/libntp/run-hextolfp.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "lfptest.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_PositiveInteger(void);
-extern void test_NegativeInteger(void);
-extern void test_PositiveFraction(void);
-extern void test_NegativeFraction(void);
-extern void test_IllegalNumberOfInteger(void);
-extern void test_IllegalChar(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("hextolfp.c");
- RUN_TEST(test_PositiveInteger, 9);
- RUN_TEST(test_NegativeInteger, 10);
- RUN_TEST(test_PositiveFraction, 11);
- RUN_TEST(test_NegativeFraction, 12);
- RUN_TEST(test_IllegalNumberOfInteger, 13);
- RUN_TEST(test_IllegalChar, 14);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-humandate.c b/contrib/ntp/tests/libntp/run-humandate.c
deleted file mode 100644
index 690895f..0000000
--- a/contrib/ntp/tests/libntp/run-humandate.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_RegularTime(void);
-extern void test_CurrentTime(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("humandate.c");
- RUN_TEST(test_RegularTime, 9);
- RUN_TEST(test_CurrentTime, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-lfpfunc.c b/contrib/ntp/tests/libntp/run-lfpfunc.c
deleted file mode 100644
index 5c7f658..0000000
--- a/contrib/ntp/tests/libntp/run-lfpfunc.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-#include <float.h>
-#include <math.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_AdditionLR(void);
-extern void test_AdditionRL(void);
-extern void test_SubtractionLR(void);
-extern void test_SubtractionRL(void);
-extern void test_Negation(void);
-extern void test_Absolute(void);
-extern void test_FDF_RoundTrip(void);
-extern void test_SignedRelOps(void);
-extern void test_UnsignedRelOps(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("lfpfunc.c");
- RUN_TEST(test_AdditionLR, 48);
- RUN_TEST(test_AdditionRL, 49);
- RUN_TEST(test_SubtractionLR, 50);
- RUN_TEST(test_SubtractionRL, 51);
- RUN_TEST(test_Negation, 52);
- RUN_TEST(test_Absolute, 53);
- RUN_TEST(test_FDF_RoundTrip, 54);
- RUN_TEST(test_SignedRelOps, 55);
- RUN_TEST(test_UnsignedRelOps, 56);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-lfptostr.c b/contrib/ntp/tests/libntp/run-lfptostr.c
deleted file mode 100644
index fbdeb7a..0000000
--- a/contrib/ntp/tests/libntp/run-lfptostr.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_PositiveInteger(void);
-extern void test_NegativeInteger(void);
-extern void test_PositiveIntegerWithFraction(void);
-extern void test_NegativeIntegerWithFraction(void);
-extern void test_RoundingDownToInteger(void);
-extern void test_RoundingMiddleToInteger(void);
-extern void test_RoundingUpToInteger(void);
-extern void test_SingleDecimal(void);
-extern void test_MillisecondsRoundingUp(void);
-extern void test_MillisecondsRoundingDown(void);
-extern void test_UnsignedInteger(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("lfptostr.c");
- RUN_TEST(test_PositiveInteger, 24);
- RUN_TEST(test_NegativeInteger, 25);
- RUN_TEST(test_PositiveIntegerWithFraction, 26);
- RUN_TEST(test_NegativeIntegerWithFraction, 27);
- RUN_TEST(test_RoundingDownToInteger, 28);
- RUN_TEST(test_RoundingMiddleToInteger, 29);
- RUN_TEST(test_RoundingUpToInteger, 30);
- RUN_TEST(test_SingleDecimal, 31);
- RUN_TEST(test_MillisecondsRoundingUp, 32);
- RUN_TEST(test_MillisecondsRoundingDown, 33);
- RUN_TEST(test_UnsignedInteger, 34);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-modetoa.c b/contrib/ntp/tests/libntp/run-modetoa.c
deleted file mode 100644
index 0c1558e..0000000
--- a/contrib/ntp/tests/libntp/run-modetoa.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_KnownMode(void);
-extern void test_UnknownMode(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("modetoa.c");
- RUN_TEST(test_KnownMode, 8);
- RUN_TEST(test_UnknownMode, 9);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-msyslog.c b/contrib/ntp/tests/libntp/run-msyslog.c
deleted file mode 100644
index ff264f8..0000000
--- a/contrib/ntp/tests/libntp/run-msyslog.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.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(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("msyslog.c");
- RUN_TEST(test_msnprintf, 14);
- RUN_TEST(test_msnprintfLiteralPercentm, 15);
- RUN_TEST(test_msnprintfBackslashLiteralPercentm, 16);
- RUN_TEST(test_msnprintfBackslashPercent, 17);
- RUN_TEST(test_msnprintfHangingPercent, 18);
- RUN_TEST(test_format_errmsgHangingPercent, 19);
- RUN_TEST(test_msnprintfNullTarget, 20);
- RUN_TEST(test_msnprintfTruncate, 21);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-netof.c b/contrib/ntp/tests/libntp/run-netof.c
deleted file mode 100644
index 9301b84..0000000
--- a/contrib/ntp/tests/libntp/run-netof.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "sockaddrtest.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_ClassBAddress(void);
-extern void test_ClassCAddress(void);
-extern void test_ClassAAddress(void);
-extern void test_IPv6Address(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("netof.c");
- RUN_TEST(test_ClassBAddress, 12);
- RUN_TEST(test_ClassCAddress, 13);
- RUN_TEST(test_ClassAAddress, 14);
- RUN_TEST(test_IPv6Address, 15);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-numtoa.c b/contrib/ntp/tests/libntp/run-numtoa.c
deleted file mode 100644
index f3368a7..0000000
--- a/contrib/ntp/tests/libntp/run-numtoa.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_Address(void);
-extern void test_Netmask(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("numtoa.c");
- RUN_TEST(test_Address, 9);
- RUN_TEST(test_Netmask, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-numtohost.c b/contrib/ntp/tests/libntp/run-numtohost.c
deleted file mode 100644
index 49b5264..0000000
--- a/contrib/ntp/tests/libntp/run-numtohost.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_LoopbackNetNonResolve(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("numtohost.c");
- RUN_TEST(test_LoopbackNetNonResolve, 9);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-octtoint.c b/contrib/ntp/tests/libntp/run-octtoint.c
deleted file mode 100644
index 9d29904..0000000
--- a/contrib/ntp/tests/libntp/run-octtoint.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_SingleDigit(void);
-extern void test_MultipleDigits(void);
-extern void test_Zero(void);
-extern void test_MaximumUnsigned32bit(void);
-extern void test_Overflow(void);
-extern void test_IllegalCharacter(void);
-extern void test_IllegalDigit(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("octtoint.c");
- RUN_TEST(test_SingleDigit, 8);
- RUN_TEST(test_MultipleDigits, 9);
- RUN_TEST(test_Zero, 10);
- RUN_TEST(test_MaximumUnsigned32bit, 11);
- RUN_TEST(test_Overflow, 12);
- RUN_TEST(test_IllegalCharacter, 13);
- RUN_TEST(test_IllegalDigit, 14);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-prettydate.c b/contrib/ntp/tests/libntp/run-prettydate.c
deleted file mode 100644
index e034cc2..0000000
--- a/contrib/ntp/tests/libntp/run-prettydate.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "ntp_fp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_ConstantDate(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("prettydate.c");
- RUN_TEST(test_ConstantDate, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-recvbuff.c b/contrib/ntp/tests/libntp/run-recvbuff.c
deleted file mode 100644
index b8a3796..0000000
--- a/contrib/ntp/tests/libntp/run-recvbuff.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* 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>
-#include "config.h"
-#include "recvbuff.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(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("recvbuff.c");
- RUN_TEST(test_Initialization, 8);
- RUN_TEST(test_GetAndFree, 9);
- RUN_TEST(test_GetAndFill, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-refidsmear.c b/contrib/ntp/tests/libntp/run-refidsmear.c
deleted file mode 100644
index 465690f..0000000
--- a/contrib/ntp/tests/libntp/run-refidsmear.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* 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>
-#include "config.h"
-#include <ntp.h>
-#include <ntp_fp.h>
-#include <refidsmear.h>
-#include <stdio.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_refidsmear(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("refidsmear.c");
- RUN_TEST(test_refidsmear, 36);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-refnumtoa.c b/contrib/ntp/tests/libntp/run-refnumtoa.c
deleted file mode 100644
index d829580..0000000
--- a/contrib/ntp/tests/libntp/run-refnumtoa.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_net.h"
-#include "ntp_refclock.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_LocalClock(void);
-extern void test_UnknownId(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("refnumtoa.c");
- RUN_TEST(test_LocalClock, 13);
- RUN_TEST(test_UnknownId, 14);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-sfptostr.c b/contrib/ntp/tests/libntp/run-sfptostr.c
deleted file mode 100644
index 1dba912..0000000
--- a/contrib/ntp/tests/libntp/run-sfptostr.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_fp.h"
-#include "ntp_stdlib.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_PositiveInteger(void);
-extern void test_NegativeInteger(void);
-extern void test_PositiveIntegerPositiveFraction(void);
-extern void test_NegativeIntegerNegativeFraction(void);
-extern void test_PositiveIntegerNegativeFraction(void);
-extern void test_NegativeIntegerPositiveFraction(void);
-extern void test_SingleDecimalInteger(void);
-extern void test_SingleDecimalRounding(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("sfptostr.c");
- RUN_TEST(test_PositiveInteger, 13);
- RUN_TEST(test_NegativeInteger, 14);
- RUN_TEST(test_PositiveIntegerPositiveFraction, 15);
- RUN_TEST(test_NegativeIntegerNegativeFraction, 16);
- RUN_TEST(test_PositiveIntegerNegativeFraction, 17);
- RUN_TEST(test_NegativeIntegerPositiveFraction, 18);
- RUN_TEST(test_SingleDecimalInteger, 19);
- RUN_TEST(test_SingleDecimalRounding, 20);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-socktoa.c b/contrib/ntp/tests/libntp/run-socktoa.c
deleted file mode 100644
index bde07ed..0000000
--- a/contrib/ntp/tests/libntp/run-socktoa.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "sockaddrtest.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_IPv4AddressWithPort(void);
-extern void test_IPv6AddressWithPort(void);
-extern void test_IgnoreIPv6Fields(void);
-extern void test_ScopedIPv6AddressWithPort(void);
-extern void test_HashEqual(void);
-extern void test_HashNotEqual(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("socktoa.c");
- RUN_TEST(test_IPv4AddressWithPort, 11);
- RUN_TEST(test_IPv6AddressWithPort, 12);
- RUN_TEST(test_IgnoreIPv6Fields, 13);
- RUN_TEST(test_ScopedIPv6AddressWithPort, 14);
- RUN_TEST(test_HashEqual, 15);
- RUN_TEST(test_HashNotEqual, 16);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-ssl_init.c b/contrib/ntp/tests/libntp/run-ssl_init.c
deleted file mode 100644
index cef9a36..0000000
--- a/contrib/ntp/tests/libntp/run-ssl_init.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_MD5KeyTypeWithoutDigestLength(void);
-extern void test_MD5KeyTypeWithDigestLength(void);
-extern void test_SHA1KeyTypeWithDigestLength(void);
-extern void test_MD5KeyName(void);
-extern void test_SHA1KeyName(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("ssl_init.c");
- RUN_TEST(test_MD5KeyTypeWithoutDigestLength, 17);
- RUN_TEST(test_MD5KeyTypeWithDigestLength, 18);
- RUN_TEST(test_SHA1KeyTypeWithDigestLength, 19);
- RUN_TEST(test_MD5KeyName, 20);
- RUN_TEST(test_SHA1KeyName, 21);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-statestr.c b/contrib/ntp/tests/libntp/run-statestr.c
deleted file mode 100644
index f0f9386..0000000
--- a/contrib/ntp/tests/libntp/run-statestr.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp.h"
-#include "ntp_control.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_PeerRestart(void);
-extern void test_SysUnspecified(void);
-extern void test_ClockCodeExists(void);
-extern void test_ClockCodeUnknown(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("statestr.c");
- RUN_TEST(test_PeerRestart, 10);
- RUN_TEST(test_SysUnspecified, 11);
- RUN_TEST(test_ClockCodeExists, 12);
- RUN_TEST(test_ClockCodeUnknown, 13);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-strtolfp.c b/contrib/ntp/tests/libntp/run-strtolfp.c
deleted file mode 100644
index 404f57f..0000000
--- a/contrib/ntp/tests/libntp/run-strtolfp.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-#include "lfptest.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_PositiveInteger(void);
-extern void test_NegativeInteger(void);
-extern void test_PositiveFraction(void);
-extern void test_NegativeFraction(void);
-extern void test_PositiveMsFraction(void);
-extern void test_NegativeMsFraction(void);
-extern void test_InvalidChars(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("strtolfp.c");
- RUN_TEST(test_PositiveInteger, 12);
- RUN_TEST(test_NegativeInteger, 13);
- RUN_TEST(test_PositiveFraction, 14);
- RUN_TEST(test_NegativeFraction, 15);
- RUN_TEST(test_PositiveMsFraction, 16);
- RUN_TEST(test_NegativeMsFraction, 17);
- RUN_TEST(test_InvalidChars, 18);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-timespecops.c b/contrib/ntp/tests/libntp/run-timespecops.c
deleted file mode 100644
index badc84a..0000000
--- a/contrib/ntp/tests/libntp/run-timespecops.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_types.h"
-#include "ntp_fp.h"
-#include "timespecops.h"
-#include <math.h>
-#include <string.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_Helpers1(void);
-extern void test_Normalise(void);
-extern void test_SignNoFrac(void);
-extern void test_SignWithFrac(void);
-extern void test_CmpFracEQ(void);
-extern void test_CmpFracGT(void);
-extern void test_CmpFracLT(void);
-extern void test_AddFullNorm(void);
-extern void test_AddFullOflow1(void);
-extern void test_AddNsecNorm(void);
-extern void test_AddNsecOflow1(void);
-extern void test_SubFullNorm(void);
-extern void test_SubFullOflow(void);
-extern void test_SubNsecNorm(void);
-extern void test_SubNsecOflow(void);
-extern void test_Neg(void);
-extern void test_AbsNoFrac(void);
-extern void test_AbsWithFrac(void);
-extern void test_Helpers2(void);
-extern void test_ToLFPbittest(void);
-extern void test_ToLFPrelPos(void);
-extern void test_ToLFPrelNeg(void);
-extern void test_ToLFPabs(void);
-extern void test_FromLFPbittest(void);
-extern void test_FromLFPrelPos(void);
-extern void test_FromLFPrelNeg(void);
-extern void test_LFProundtrip(void);
-extern void test_ToString(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("timespecops.c");
- RUN_TEST(test_Helpers1, 37);
- RUN_TEST(test_Normalise, 38);
- RUN_TEST(test_SignNoFrac, 39);
- RUN_TEST(test_SignWithFrac, 40);
- RUN_TEST(test_CmpFracEQ, 41);
- RUN_TEST(test_CmpFracGT, 42);
- RUN_TEST(test_CmpFracLT, 43);
- RUN_TEST(test_AddFullNorm, 44);
- RUN_TEST(test_AddFullOflow1, 45);
- RUN_TEST(test_AddNsecNorm, 46);
- RUN_TEST(test_AddNsecOflow1, 47);
- RUN_TEST(test_SubFullNorm, 48);
- RUN_TEST(test_SubFullOflow, 49);
- RUN_TEST(test_SubNsecNorm, 50);
- RUN_TEST(test_SubNsecOflow, 51);
- RUN_TEST(test_Neg, 52);
- RUN_TEST(test_AbsNoFrac, 53);
- RUN_TEST(test_AbsWithFrac, 54);
- RUN_TEST(test_Helpers2, 55);
- RUN_TEST(test_ToLFPbittest, 56);
- RUN_TEST(test_ToLFPrelPos, 57);
- RUN_TEST(test_ToLFPrelNeg, 58);
- RUN_TEST(test_ToLFPabs, 59);
- RUN_TEST(test_FromLFPbittest, 60);
- RUN_TEST(test_FromLFPrelPos, 61);
- RUN_TEST(test_FromLFPrelNeg, 62);
- RUN_TEST(test_LFProundtrip, 63);
- RUN_TEST(test_ToString, 64);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-timevalops.c b/contrib/ntp/tests/libntp/run-timevalops.c
deleted file mode 100644
index 69fead5..0000000
--- a/contrib/ntp/tests/libntp/run-timevalops.c
+++ /dev/null
@@ -1,110 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_types.h"
-#include "ntp_fp.h"
-#include "timevalops.h"
-#include <math.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_Helpers1(void);
-extern void test_Normalise(void);
-extern void test_SignNoFrac(void);
-extern void test_SignWithFrac(void);
-extern void test_CmpFracEQ(void);
-extern void test_CmpFracGT(void);
-extern void test_CmpFracLT(void);
-extern void test_AddFullNorm(void);
-extern void test_AddFullOflow1(void);
-extern void test_AddUsecNorm(void);
-extern void test_AddUsecOflow1(void);
-extern void test_SubFullNorm(void);
-extern void test_SubFullOflow(void);
-extern void test_SubUsecNorm(void);
-extern void test_SubUsecOflow(void);
-extern void test_Neg(void);
-extern void test_AbsNoFrac(void);
-extern void test_AbsWithFrac(void);
-extern void test_Helpers2(void);
-extern void test_ToLFPbittest(void);
-extern void test_ToLFPrelPos(void);
-extern void test_ToLFPrelNeg(void);
-extern void test_ToLFPabs(void);
-extern void test_FromLFPbittest(void);
-extern void test_FromLFPrelPos(void);
-extern void test_FromLFPrelNeg(void);
-extern void test_LFProundtrip(void);
-extern void test_ToString(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("timevalops.c");
- RUN_TEST(test_Helpers1, 37);
- RUN_TEST(test_Normalise, 38);
- RUN_TEST(test_SignNoFrac, 39);
- RUN_TEST(test_SignWithFrac, 40);
- RUN_TEST(test_CmpFracEQ, 41);
- RUN_TEST(test_CmpFracGT, 42);
- RUN_TEST(test_CmpFracLT, 43);
- RUN_TEST(test_AddFullNorm, 44);
- RUN_TEST(test_AddFullOflow1, 45);
- RUN_TEST(test_AddUsecNorm, 46);
- RUN_TEST(test_AddUsecOflow1, 47);
- RUN_TEST(test_SubFullNorm, 48);
- RUN_TEST(test_SubFullOflow, 49);
- RUN_TEST(test_SubUsecNorm, 50);
- RUN_TEST(test_SubUsecOflow, 51);
- RUN_TEST(test_Neg, 52);
- RUN_TEST(test_AbsNoFrac, 53);
- RUN_TEST(test_AbsWithFrac, 54);
- RUN_TEST(test_Helpers2, 55);
- RUN_TEST(test_ToLFPbittest, 56);
- RUN_TEST(test_ToLFPrelPos, 57);
- RUN_TEST(test_ToLFPrelNeg, 58);
- RUN_TEST(test_ToLFPabs, 59);
- RUN_TEST(test_FromLFPbittest, 60);
- RUN_TEST(test_FromLFPrelPos, 61);
- RUN_TEST(test_FromLFPrelNeg, 62);
- RUN_TEST(test_LFProundtrip, 63);
- RUN_TEST(test_ToString, 64);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-tsafememcmp.c b/contrib/ntp/tests/libntp/run-tsafememcmp.c
deleted file mode 100644
index 1bcfc9c..0000000
--- a/contrib/ntp/tests/libntp/run-tsafememcmp.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "isc/string.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_Empty(void);
-extern void test_Equal(void);
-extern void test_FirstByte(void);
-extern void test_LastByte(void);
-extern void test_MiddleByte(void);
-extern void test_MiddleByteUpLo(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("tsafememcmp.c");
- RUN_TEST(test_Empty, 10);
- RUN_TEST(test_Equal, 11);
- RUN_TEST(test_FirstByte, 12);
- RUN_TEST(test_LastByte, 13);
- RUN_TEST(test_MiddleByte, 14);
- RUN_TEST(test_MiddleByteUpLo, 15);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-tstotv.c b/contrib/ntp/tests/libntp/run-tstotv.c
deleted file mode 100644
index c060f77..0000000
--- a/contrib/ntp/tests/libntp/run-tstotv.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_fp.h"
-#include "timevalops.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(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("tstotv.c");
- RUN_TEST(test_Seconds, 8);
- RUN_TEST(test_MicrosecondsExact, 9);
- RUN_TEST(test_MicrosecondsRounding, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-tvtots.c b/contrib/ntp/tests/libntp/run-tvtots.c
deleted file mode 100644
index 3ed734e..0000000
--- a/contrib/ntp/tests/libntp/run-tvtots.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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>
-#include "config.h"
-#include "lfptest.h"
-#include "timevalops.h"
-#include <math.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_Seconds(void);
-extern void test_MicrosecondsRounded(void);
-extern void test_MicrosecondsExact(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("tvtots.c");
- RUN_TEST(test_Seconds, 10);
- RUN_TEST(test_MicrosecondsRounded, 11);
- RUN_TEST(test_MicrosecondsExact, 12);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-uglydate.c b/contrib/ntp/tests/libntp/run-uglydate.c
deleted file mode 100644
index 5667b70..0000000
--- a/contrib/ntp/tests/libntp/run-uglydate.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_ConstantDateTime(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("uglydate.c");
- RUN_TEST(test_ConstantDateTime, 9);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-vi64ops.c b/contrib/ntp/tests/libntp/run-vi64ops.c
deleted file mode 100644
index 599a4b7..0000000
--- a/contrib/ntp/tests/libntp/run-vi64ops.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-#include "vint64ops.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_ParseVUI64_pos(void);
-extern void test_ParseVUI64_neg(void);
-extern void test_ParseVUI64_case(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("vi64ops.c");
- RUN_TEST(test_ParseVUI64_pos, 10);
- RUN_TEST(test_ParseVUI64_neg, 11);
- RUN_TEST(test_ParseVUI64_case, 12);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/run-ymd2yd.c b/contrib/ntp/tests/libntp/run-ymd2yd.c
deleted file mode 100644
index 4669ce9..0000000
--- a/contrib/ntp/tests/libntp/run-ymd2yd.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_stdlib.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_NonLeapYearFebruary(void);
-extern void test_NonLeapYearJune(void);
-extern void test_LeapYearFebruary(void);
-extern void test_LeapYearDecember(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("ymd2yd.c");
- RUN_TEST(test_NonLeapYearFebruary, 7);
- RUN_TEST(test_NonLeapYearJune, 8);
- RUN_TEST(test_LeapYearFebruary, 9);
- RUN_TEST(test_LeapYearDecember, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/libntp/sfptostr.c b/contrib/ntp/tests/libntp/sfptostr.c
deleted file mode 100644
index c781c03..0000000
--- a/contrib/ntp/tests/libntp/sfptostr.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * This file contains test for both fptoa and fptoms (which uses dofptoa),
- * since all these functions are very similar.
- */
-#include "config.h"
-#include "ntp_fp.h"
-#include "ntp_stdlib.h"
-#include "unity.h"
-
-#define SFP_MAX_PRECISION 6
-
-void setUp(void);
-void test_PositiveInteger(void);
-void test_NegativeInteger(void);
-void test_PositiveIntegerPositiveFraction(void);
-void test_NegativeIntegerNegativeFraction(void);
-void test_PositiveIntegerNegativeFraction(void);
-void test_NegativeIntegerPositiveFraction(void);
-void test_SingleDecimalInteger(void);
-void test_SingleDecimalRounding(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void test_PositiveInteger(void)
-{
- s_fp test = 300 << 16; // exact 300.000000
-
- TEST_ASSERT_EQUAL_STRING("300.000000", fptoa(test, SFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("300000.000", fptoms(test, SFP_MAX_PRECISION));
-}
-
-void test_NegativeInteger(void)
-{
- s_fp test = -(200 << 16); // exact -200.000000
-
- TEST_ASSERT_EQUAL_STRING("-200.000000", fptoa(test, SFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("-200000.000", fptoms(test, SFP_MAX_PRECISION));
-}
-
-void test_PositiveIntegerPositiveFraction(void)
-{
- s_fp test = (300 << 16) + (1 << 15); // 300 + 0.5
-
- TEST_ASSERT_EQUAL_STRING("300.500000", fptoa(test, SFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("300500.000", fptoms(test, SFP_MAX_PRECISION));
-}
-
-void test_NegativeIntegerNegativeFraction(void)
-{
- s_fp test = -(200 << 16) - (1 << 15); // -200 - 0.5
-
- TEST_ASSERT_EQUAL_STRING("-200.500000", fptoa(test, SFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("-200500.000", fptoms(test, SFP_MAX_PRECISION));
-}
-
-void test_PositiveIntegerNegativeFraction(void)
-{
- s_fp test = (300 << 16) - (1 << 14); // 300 - 0.25
-
- TEST_ASSERT_EQUAL_STRING("299.750000", fptoa(test, SFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("299750.000", fptoms(test, SFP_MAX_PRECISION));
-}
-
-void test_NegativeIntegerPositiveFraction(void)
-{
- s_fp test = -(200 << 16) + (1 << 14)*3; // -200 + 0.75
-
- TEST_ASSERT_EQUAL_STRING("-199.250000", fptoa(test, SFP_MAX_PRECISION));
- TEST_ASSERT_EQUAL_STRING("-199250.000", fptoms(test, SFP_MAX_PRECISION));
-}
-
-void test_SingleDecimalInteger(void)
-{
- s_fp test = 300 << 16; // 300
-
- TEST_ASSERT_EQUAL_STRING("300.0", fptoa(test, 1));
- TEST_ASSERT_EQUAL_STRING("300000.0", fptoms(test, 1));
-}
-
-void test_SingleDecimalRounding(void)
-{
- s_fp test = (2 << 16) + (1 << 14)*3; // 2 + 0.25*3 = 2.75
-
- TEST_ASSERT_EQUAL_STRING("2.8", fptoa(test, 1));
- TEST_ASSERT_EQUAL_STRING("2750.0", fptoms(test, 1));
-}
diff --git a/contrib/ntp/tests/libntp/sockaddrtest.c b/contrib/ntp/tests/libntp/sockaddrtest.c
deleted file mode 100644
index bd893bd..0000000
--- a/contrib/ntp/tests/libntp/sockaddrtest.c
+++ /dev/null
@@ -1,51 +0,0 @@
-
-#include "config.h"
-#include "ntp.h"
-#include "ntp_stdlib.h"
-#include "sockaddrtest.h"
-
-sockaddr_u
-CreateSockaddr4(const char* address, unsigned int port) {
- sockaddr_u s;
- s.sa4.sin_family = AF_INET;
- s.sa4.sin_addr.s_addr = inet_addr(address);
- SET_PORT(&s, port);
-
- return s;
-}
-
-
-int
-IsEqual(const sockaddr_u expected, const sockaddr_u actual) {
- struct in_addr in;
- struct in6_addr in6;
-
- if (expected.sa.sa_family != actual.sa.sa_family) {
- printf("Expected sa_family: %d but got: %d", expected.sa.sa_family, actual.sa.sa_family);
- return FALSE;
- }
-
- if (actual.sa.sa_family == AF_INET) { // IPv4
- if (expected.sa4.sin_port == actual.sa4.sin_port &&
- memcmp(&expected.sa4.sin_addr, &actual.sa4.sin_addr,
- sizeof( in )) == 0) {
- return TRUE;
- } else {
- printf("IPv4 comparision failed, expected: %s(%s) but was: %s(%s)",inet_ntoa(expected.sa4.sin_addr), socktoa(&expected), inet_ntoa(actual.sa4.sin_addr),socktoa(&actual));
- return FALSE;
- }
- } else if (actual.sa.sa_family == AF_INET6) { //IPv6
- if (expected.sa6.sin6_port == actual.sa6.sin6_port &&
- memcmp(&expected.sa6.sin6_addr, &actual.sa6.sin6_addr,
- sizeof(in6)) == 0) {
- return TRUE;
- } else {
- printf("IPv6 comparision failed");
- return FALSE;
- }
- } else { // Unknown family
- printf("Unknown sa_family: %d",actual.sa.sa_family);
- return FALSE;
- }
-}
-
diff --git a/contrib/ntp/tests/libntp/sockaddrtest.h b/contrib/ntp/tests/libntp/sockaddrtest.h
deleted file mode 100644
index 8450fb6..0000000
--- a/contrib/ntp/tests/libntp/sockaddrtest.h
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef TESTS_SOCKADDRTEST_H
-#define TESTS_SOCKADDRTEST_H
-
-#include "config.h"
-#include "ntp.h"
-#include "ntp_stdlib.h"
-
-
-sockaddr_u CreateSockaddr4(const char* address, unsigned int port);
-
-int IsEqual(const sockaddr_u expected, const sockaddr_u actual);
-
-#endif // TESTS_SOCKADDRTEST_H
diff --git a/contrib/ntp/tests/libntp/socktoa.c b/contrib/ntp/tests/libntp/socktoa.c
deleted file mode 100644
index e9be182..0000000
--- a/contrib/ntp/tests/libntp/socktoa.c
+++ /dev/null
@@ -1,158 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-#include "unity.h"
-#include "sockaddrtest.h"
-
-
-void setUp(void);
-void test_IPv4AddressWithPort(void);
-void test_IPv6AddressWithPort(void);
-void test_IgnoreIPv6Fields(void);
-void test_ScopedIPv6AddressWithPort(void);
-void test_HashEqual(void);
-void test_HashNotEqual(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-}
-
-
-void
-test_IPv4AddressWithPort(void)
-{
- sockaddr_u input = CreateSockaddr4("192.0.2.10", 123);
-
- TEST_ASSERT_EQUAL_STRING("192.0.2.10", socktoa(&input));
- TEST_ASSERT_EQUAL_STRING("192.0.2.10:123", sockporttoa(&input));
-}
-
-
-void
-test_IPv6AddressWithPort(void)
-{
-#ifdef ISC_PLATFORM_WANTIPV6
-
- const struct in6_addr address = {
- 0x20, 0x01, 0x0d, 0xb8,
- 0x85, 0xa3, 0x08, 0xd3,
- 0x13, 0x19, 0x8a, 0x2e,
- 0x03, 0x70, 0x73, 0x34
- };
-
- const char* expected =
- "2001:db8:85a3:8d3:1319:8a2e:370:7334";
- const char* expected_port =
- "[2001:db8:85a3:8d3:1319:8a2e:370:7334]:123";
-
- sockaddr_u input;
- memset(&input, 0, sizeof(input));
- AF(&input) = AF_INET6;
- SET_ADDR6N(&input, address);
- SET_PORT(&input, 123);
-
- TEST_ASSERT_EQUAL_STRING(expected, socktoa(&input));
- TEST_ASSERT_EQUAL_STRING(expected_port, sockporttoa(&input));
-
-#else
-
- TEST_IGNORE_MESSAGE("IPV6 disabled in build, skipping.");
-
-#endif /* ISC_PLATFORM_HAVEIPV6 */
-}
-
-
-void
-test_ScopedIPv6AddressWithPort(void)
-{
-#ifdef ISC_PLATFORM_HAVESCOPEID
-
- const struct in6_addr address = { { {
- 0xfe, 0x80, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x02, 0x12, 0x3f, 0xff,
- 0xfe, 0x29, 0xff, 0xfa
- } } };
-
- const char* expected =
- "fe80::212:3fff:fe29:fffa%5";
- const char* expected_port =
- "[fe80::212:3fff:fe29:fffa%5]:123";
-
- sockaddr_u input;
- memset(&input, 0, sizeof(input));
- AF(&input) = AF_INET6;
- SET_ADDR6N(&input, address);
- SET_PORT(&input, 123);
- SCOPE_VAR(&input) = 5;
-
- TEST_ASSERT_EQUAL_STRING(expected, socktoa(&input));
- TEST_ASSERT_EQUAL_STRING(expected_port, sockporttoa(&input));
-#else
-
- TEST_IGNORE_MESSAGE("Skipping because ISC_PLATFORM does not have Scope ID");
-
-#endif
-}
-
-
-void
-test_HashEqual(void)
-{
- sockaddr_u input1 = CreateSockaddr4("192.00.2.2", 123);
- sockaddr_u input2 = CreateSockaddr4("192.0.2.2", 123);
-
- TEST_ASSERT_TRUE(IsEqual(input1, input2));
- TEST_ASSERT_EQUAL(sock_hash(&input1), sock_hash(&input2));
-}
-
-
-void
-test_HashNotEqual(void)
-{
- /* These two addresses should not generate the same hash. */
- sockaddr_u input1 = CreateSockaddr4("192.0.2.1", 123);
- sockaddr_u input2 = CreateSockaddr4("192.0.2.2", 123);
-
- TEST_ASSERT_FALSE(IsEqual(input1, input2));
- TEST_ASSERT_FALSE(sock_hash(&input1) == sock_hash(&input2));
-}
-
-
-void
-test_IgnoreIPv6Fields(void)
-{
-#ifdef ISC_PLATFORM_WANTIPV6
-
- const struct in6_addr address = {
- 0x20, 0x01, 0x0d, 0xb8,
- 0x85, 0xa3, 0x08, 0xd3,
- 0x13, 0x19, 0x8a, 0x2e,
- 0x03, 0x70, 0x73, 0x34
- };
-
- sockaddr_u input1, input2;
-
- input1.sa6.sin6_family = AF_INET6;
- input1.sa6.sin6_addr = address;
- input1.sa6.sin6_flowinfo = 30L; // This value differs from input2.
- SET_PORT(&input1, NTP_PORT);
-
- input2.sa6.sin6_family = AF_INET6;
- input2.sa6.sin6_addr = address;
- input2.sa6.sin6_flowinfo = 10L; // This value differs from input1.
- SET_PORT(&input2, NTP_PORT);
-
- TEST_ASSERT_EQUAL(sock_hash(&input1), sock_hash(&input2));
-
-#else
-
- TEST_IGNORE_MESSAGE("IPV6 disabled in build, skipping.");
-
-#endif /* ISC_PLATFORM_HAVEIPV6 */
-}
diff --git a/contrib/ntp/tests/libntp/ssl_init.c b/contrib/ntp/tests/libntp/ssl_init.c
deleted file mode 100644
index 435e5c9..0000000
--- a/contrib/ntp/tests/libntp/ssl_init.c
+++ /dev/null
@@ -1,69 +0,0 @@
-#include "config.h"
-
-#include "ntp.h"
-
-#ifdef OPENSSL
-# include "openssl/err.h"
-# include "openssl/rand.h"
-# include "openssl/evp.h"
-#endif
-
-#include "unity.h"
-
-
-static const size_t TEST_MD5_DIGEST_LENGTH = 16;
-static const size_t TEST_SHA1_DIGEST_LENGTH = 20;
-
-void test_MD5KeyTypeWithoutDigestLength(void);
-void test_MD5KeyTypeWithDigestLength(void);
-void test_SHA1KeyTypeWithDigestLength(void);
-void test_MD5KeyName(void);
-void test_SHA1KeyName(void);
-
-
-// keytype_from_text()
-void
-test_MD5KeyTypeWithoutDigestLength(void) {
- TEST_ASSERT_EQUAL(KEY_TYPE_MD5, keytype_from_text("MD5", NULL));
-}
-
-void
-test_MD5KeyTypeWithDigestLength(void) {
- size_t digestLength;
- size_t expected = TEST_MD5_DIGEST_LENGTH;
-
- TEST_ASSERT_EQUAL(KEY_TYPE_MD5, keytype_from_text("MD5", &digestLength));
- TEST_ASSERT_EQUAL(expected, digestLength);
-}
-
-
-void
-test_SHA1KeyTypeWithDigestLength(void) {
-#ifdef OPENSSL
- size_t digestLength;
- size_t expected = TEST_SHA1_DIGEST_LENGTH;
-
- TEST_ASSERT_EQUAL(NID_sha1, keytype_from_text("SHA1", &digestLength));
- TEST_ASSERT_EQUAL(expected, digestLength);
- /* OPENSSL */
-#else
- TEST_IGNORE_MESSAGE("Skipping because OPENSSL isn't defined");
-#endif
-}
-
-
-// keytype_name()
-void
-test_MD5KeyName(void) {
- TEST_ASSERT_EQUAL_STRING("MD5", keytype_name(KEY_TYPE_MD5));
-}
-
-
-void
-test_SHA1KeyName(void) {
-#ifdef OPENSSL
- TEST_ASSERT_EQUAL_STRING("SHA1", keytype_name(NID_sha1));
-#else
- TEST_IGNORE_MESSAGE("Skipping because OPENSSL isn't defined");
-#endif /* OPENSSL */
-}
diff --git a/contrib/ntp/tests/libntp/statestr.c b/contrib/ntp/tests/libntp/statestr.c
deleted file mode 100644
index e7a1bd7..0000000
--- a/contrib/ntp/tests/libntp/statestr.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp.h" // needed for MAX_MAC_LEN used in ntp_control.h
-#include "ntp_control.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_PeerRestart(void);
-void test_SysUnspecified(void);
-void test_ClockCodeExists(void);
-void test_ClockCodeUnknown(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-// eventstr()
-void
-test_PeerRestart(void) {
- TEST_ASSERT_EQUAL_STRING("restart", eventstr(PEVNT_RESTART));
-}
-
-
-void
-test_SysUnspecified(void) {
- TEST_ASSERT_EQUAL_STRING("unspecified", eventstr(EVNT_UNSPEC));
-}
-
-
-// ceventstr()
-void
-test_ClockCodeExists(void) {
- TEST_ASSERT_EQUAL_STRING("clk_unspec", ceventstr(CTL_CLK_OKAY));
-}
-
-
-void
-test_ClockCodeUnknown(void) {
- TEST_ASSERT_EQUAL_STRING("clk_-1", ceventstr(-1));
-}
diff --git a/contrib/ntp/tests/libntp/strtolfp.c b/contrib/ntp/tests/libntp/strtolfp.c
deleted file mode 100644
index 6855d9b..0000000
--- a/contrib/ntp/tests/libntp/strtolfp.c
+++ /dev/null
@@ -1,133 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-#include "unity.h"
-#include "lfptest.h"
-
-/* This file tests both atolfp and mstolfp */
-
-void setUp(void);
-void test_PositiveInteger(void);
-void test_NegativeInteger(void);
-void test_PositiveFraction(void);
-void test_NegativeFraction(void);
-void test_PositiveMsFraction(void);
-void test_NegativeMsFraction(void);
-void test_InvalidChars(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void test_PositiveInteger(void) {
- const char *str = "500";
- const char *str_ms = "500000";
-
- l_fp expected = {{500},0};
- l_fp actual, actual_ms;
-
- TEST_ASSERT_TRUE(atolfp(str, &actual));
- TEST_ASSERT_TRUE(mstolfp(str_ms, &actual_ms));
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual_ms));
-}
-
-void test_NegativeInteger(void) {
- const char *str = "-300";
- const char *str_ms = "-300000";
-
- l_fp expected;
- expected.l_i = -300;
- expected.l_uf = 0;
-
- l_fp actual, actual_ms;
-
- TEST_ASSERT_TRUE(atolfp(str, &actual));
- TEST_ASSERT_TRUE(mstolfp(str_ms, &actual_ms));
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual_ms));
-}
-
-void test_PositiveFraction(void) {
- const char *str = "+500.5";
- const char *str_ms = "500500.0";
-
- l_fp expected = {{500}, HALF};
- l_fp actual, actual_ms;
-
- TEST_ASSERT_TRUE(atolfp(str, &actual));
- TEST_ASSERT_TRUE(mstolfp(str_ms, &actual_ms));
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual_ms));
-}
-
-void test_NegativeFraction(void) {
- const char *str = "-300.75";
- const char *str_ms = "-300750";
-
- l_fp expected;
- expected.l_i = -301;
- expected.l_uf = QUARTER;
-
- l_fp actual, actual_ms;
-
- TEST_ASSERT_TRUE(atolfp(str, &actual));
- TEST_ASSERT_TRUE(mstolfp(str_ms, &actual_ms));
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual_ms));
-}
-
-void test_PositiveMsFraction(void) {
- const char *str = "300.00025";
- const char *str_ms = "300000.25";
-
- l_fp expected = {{300}, QUARTER_PROMILLE_APPRX};
- l_fp actual, actual_ms;
-
-
- TEST_ASSERT_TRUE(atolfp(str, &actual));
- TEST_ASSERT_TRUE(mstolfp(str_ms, &actual_ms));
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual_ms));
-
-}
-
-void test_NegativeMsFraction(void) {
- const char *str = "-199.99975";
- const char *str_ms = "-199999.75";
-
- l_fp expected;
- expected.l_i = -200;
- expected.l_uf = QUARTER_PROMILLE_APPRX;
-
- l_fp actual, actual_ms;
-
- TEST_ASSERT_TRUE(atolfp(str, &actual));
- TEST_ASSERT_TRUE(mstolfp(str_ms, &actual_ms));
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
- TEST_ASSERT_TRUE(IsEqual(expected, actual_ms));
-
-}
-
-void test_InvalidChars(void) {
- const char *str = "500.4a2";
- l_fp actual, actual_ms;
-
- TEST_ASSERT_FALSE(atolfp(str, &actual));
- TEST_ASSERT_FALSE(mstolfp(str, &actual_ms));
-}
-
diff --git a/contrib/ntp/tests/libntp/test-libntp.c b/contrib/ntp/tests/libntp/test-libntp.c
deleted file mode 100644
index 4d9b840..0000000
--- a/contrib/ntp/tests/libntp/test-libntp.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <config.h>
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-#include "test-libntp.h"
-
-
-time_t nowtime = 0;
-
-
-time_t
-timefunc(time_t *ptr) {
- if (ptr)
- *ptr = nowtime;
- return nowtime;
-}
-
-
-void
-settime(int y, int m, int d, int H, int M, int S) {
-
- time_t days = ntpcal_edate_to_eradays(y-1, m-1, d-1) + 1 - DAY_UNIX_STARTS;
- time_t secs = ntpcal_etime_to_seconds(H, M, S);
-
- nowtime = days * SECSPERDAY + secs;
-}
diff --git a/contrib/ntp/tests/libntp/test-libntp.h b/contrib/ntp/tests/libntp/test-libntp.h
deleted file mode 100644
index 93050b3..0000000
--- a/contrib/ntp/tests/libntp/test-libntp.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
-
-time_t timefunc(time_t *ptr);
-void settime(int y, int m, int d, int H, int M, int S);
-time_t nowtime;
diff --git a/contrib/ntp/tests/libntp/timespecops.c b/contrib/ntp/tests/libntp/timespecops.c
deleted file mode 100644
index 741b1ad..0000000
--- a/contrib/ntp/tests/libntp/timespecops.c
+++ /dev/null
@@ -1,797 +0,0 @@
-#include "config.h"
-
-#include "ntp_types.h"
-#include "ntp_fp.h"
-#include "timespecops.h"
-
-#include "unity.h"
-
-#include <math.h>
-#include <string.h>
-
-
-#define TEST_ASSERT_EQUAL_timespec(a, b) { \
- TEST_ASSERT_EQUAL_MESSAGE(a.tv_sec, b.tv_sec, "Field tv_sec"); \
- TEST_ASSERT_EQUAL_MESSAGE(a.tv_nsec, b.tv_nsec, "Field tv_nsec"); \
-}
-
-
-#define TEST_ASSERT_EQUAL_l_fp(a, b) { \
- TEST_ASSERT_EQUAL_MESSAGE(a.l_i, b.l_i, "Field l_i"); \
- TEST_ASSERT_EQUAL_UINT_MESSAGE(a.l_uf, b.l_uf, "Field l_uf"); \
-}
-
-
-static u_int32 my_tick_to_tsf(u_int32 ticks);
-static u_int32 my_tsf_to_tick(u_int32 tsf);
-
-
-// that's it...
-struct lfpfracdata {
- long nsec;
- u_int32 frac;
-};
-
-
-void setUp(void);
-void test_Helpers1(void);
-void test_Normalise(void);
-void test_SignNoFrac(void);
-void test_SignWithFrac(void);
-void test_CmpFracEQ(void);
-void test_CmpFracGT(void);
-void test_CmpFracLT(void);
-void test_AddFullNorm(void);
-void test_AddFullOflow1(void);
-void test_AddNsecNorm(void);
-void test_AddNsecOflow1(void);
-void test_SubFullNorm(void);
-void test_SubFullOflow(void);
-void test_SubNsecNorm(void);
-void test_SubNsecOflow(void);
-void test_Neg(void);
-void test_AbsNoFrac(void);
-void test_AbsWithFrac(void);
-void test_Helpers2(void);
-void test_ToLFPbittest(void);
-void test_ToLFPrelPos(void);
-void test_ToLFPrelNeg(void);
-void test_ToLFPabs(void);
-void test_FromLFPbittest(void);
-void test_FromLFPrelPos(void);
-void test_FromLFPrelNeg(void);
-void test_LFProundtrip(void);
-void test_ToString(void);
-
-const bool timespec_isValid(struct timespec V);
-struct timespec timespec_init(time_t hi, long lo);
-l_fp l_fp_init(int32 i, u_int32 f);
-bool AssertFpClose(const l_fp m, const l_fp n, const l_fp limit);
-bool AssertTimespecClose(const struct timespec m,
- const struct timespec n,
- const struct timespec limit);
-
-
-//***************************MY CUSTOM FUNCTIONS***************************
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-const bool
-timespec_isValid(struct timespec V)
-{
-
- return V.tv_nsec >= 0 && V.tv_nsec < 1000000000;
-}
-
-
-struct timespec
-timespec_init(time_t hi, long lo)
-{
- struct timespec V;
-
- V.tv_sec = hi;
- V.tv_nsec = lo;
-
- return V;
-}
-
-
-l_fp
-l_fp_init(int32 i, u_int32 f)
-{
- l_fp temp;
-
- temp.l_i = i;
- temp.l_uf = f;
-
- return temp;
-}
-
-
-bool
-AssertFpClose(const l_fp m, const l_fp n, const l_fp limit)
-{
- l_fp diff;
-
- if (L_ISGEQ(&m, &n)) {
- diff = m;
- L_SUB(&diff, &n);
- } else {
- diff = n;
- L_SUB(&diff, &m);
- }
- if (L_ISGEQ(&limit, &diff)) {
- return TRUE;
- }
- else {
- printf("m_expr which is %s \nand\nn_expr which is %s\nare not close; diff=%susec\n", lfptoa(&m, 10), lfptoa(&n, 10), lfptoa(&diff, 10));
- return FALSE;
- }
-}
-
-
-bool
-AssertTimespecClose(const struct timespec m, const struct timespec n,
- const struct timespec limit)
-{
- struct timespec diff;
-
- diff = abs_tspec(sub_tspec(m, n));
- if (cmp_tspec(limit, diff) >= 0)
- return TRUE;
- else
- {
- printf("m_expr which is %ld.%lu \nand\nn_expr which is %ld.%lu\nare not close; diff=%ld.%lunsec\n", m.tv_sec, m.tv_nsec, n.tv_sec, n.tv_nsec, diff.tv_sec, diff.tv_nsec);
- return FALSE;
- }
-}
-
-//-----------------------------------------------
-
-static const struct lfpfracdata fdata[] = {
- { 0, 0x00000000 }, { 2218896, 0x00916ae6 },
- { 16408100, 0x0433523d }, { 125000000, 0x20000000 },
- { 250000000, 0x40000000 }, { 287455871, 0x4996b53d },
- { 375000000, 0x60000000 }, { 500000000, 0x80000000 },
- { 518978897, 0x84dbcd0e }, { 563730222, 0x90509fb3 },
- { 563788007, 0x9054692c }, { 583289882, 0x95527c57 },
- { 607074509, 0x9b693c2a }, { 625000000, 0xa0000000 },
- { 645184059, 0xa52ac851 }, { 676497788, 0xad2ef583 },
- { 678910895, 0xadcd1abb }, { 679569625, 0xadf84663 },
- { 690926741, 0xb0e0932d }, { 705656483, 0xb4a5e73d },
- { 723553854, 0xb93ad34c }, { 750000000, 0xc0000000 },
- { 763550253, 0xc3780785 }, { 775284917, 0xc6791284 },
- { 826190764, 0xd3813ce8 }, { 875000000, 0xe0000000 },
- { 956805507, 0xf4f134a9 }, { 982570733, 0xfb89c16c }
- };
-
-
-u_int32
-my_tick_to_tsf(u_int32 ticks)
-{
- // convert nanoseconds to l_fp fractional units, using double
- // precision float calculations or, if available, 64bit integer
- // arithmetic. This should give the precise fraction, rounded to
- // the nearest representation.
-
-#ifdef HAVE_U_INT64
- return (u_int32)((( ((u_int64)(ticks)) << 32) + 500000000) / 1000000000);
-#else
- return (u_int32)((double(ticks)) * 4.294967296 + 0.5);
-#endif
- // And before you ask: if ticks >= 1000000000, the result is
- // truncated nonsense, so don't use it out-of-bounds.
-}
-
-
-u_int32
-my_tsf_to_tick(u_int32 tsf)
-{
-
- // Inverse operation: converts fraction to microseconds.
-#ifdef HAVE_U_INT64
- return (u_int32)(( ((u_int64)(tsf)) * 1000000000 + 0x80000000) >> 32);
-#else
- return (u_int32)(double(tsf) / 4.294967296 + 0.5);
-#endif
- // Beware: The result might be 10^9 due to rounding!
-}
-
-
-
-// ---------------------------------------------------------------------
-// test support stuff -- part 1
-// ---------------------------------------------------------------------
-
-void
-test_Helpers1(void)
-{
- struct timespec x;
-
- for (x.tv_sec = -2; x.tv_sec < 3; x.tv_sec++) {
- x.tv_nsec = -1;
- TEST_ASSERT_FALSE(timespec_isValid(x));
- x.tv_nsec = 0;
- TEST_ASSERT_TRUE(timespec_isValid(x));
- x.tv_nsec = 999999999;
- TEST_ASSERT_TRUE(timespec_isValid(x));
- x.tv_nsec = 1000000000;
- TEST_ASSERT_FALSE(timespec_isValid(x));
- }
-
- return;
-}
-
-
-//----------------------------------------------------------------------
-// test normalisation
-//----------------------------------------------------------------------
-
-void
-test_Normalise(void)
-{
- long ns;
-
- for ( ns = -2000000000; ns <= 2000000000; ns += 10000000) {
- struct timespec x = timespec_init(0, ns);
-
- x = normalize_tspec(x);
- TEST_ASSERT_TRUE(timespec_isValid(x));
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test classification
-//----------------------------------------------------------------------
-
-void
-test_SignNoFrac(void)
-{
- // sign test, no fraction
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i, 0);
- int E = (i > 0) - (i < 0);
- int r = test_tspec(a);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-
-void
-test_SignWithFrac(void)
-{
- // sign test, with fraction
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i, 10);
- int E = (i >= 0) - (i < 0);
- int r = test_tspec(a);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test compare
-//----------------------------------------------------------------------
-void
-test_CmpFracEQ(void)
-{
- // fractions are equal
- int i, j;
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timespec a = timespec_init( i , 200);
- struct timespec b = timespec_init( j , 200);
- int E = (i > j) - (i < j);
- int r = cmp_tspec_denorm(a, b);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-
-void
-test_CmpFracGT(void)
-{
- // fraction a bigger fraction b
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timespec a = timespec_init(i, 999999800);
- struct timespec b = timespec_init(j, 200);
- int E = (i >= j) - (i < j);
- int r = cmp_tspec_denorm(a, b);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-
-void
-test_CmpFracLT(void)
-{
- // fraction a less fraction b
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timespec a = timespec_init(i, 200);
- struct timespec b = timespec_init(j, 999999800);
- int E = (i > j) - (i <= j);
- int r = cmp_tspec_denorm(a, b);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// Test addition (sum)
-//----------------------------------------------------------------------
-
-void
-test_AddFullNorm(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timespec a = timespec_init(i, 200);
- struct timespec b = timespec_init(j, 400);
- struct timespec E = timespec_init(i + j, 200 + 400);
- struct timespec c;
-
- c = add_tspec(a, b);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-
-void
-test_AddFullOflow1(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timespec a = timespec_init(i, 200);
- struct timespec b = timespec_init(j, 999999900);
- struct timespec E = timespec_init(i + j + 1, 100);
- struct timespec c;
-
- c = add_tspec(a, b);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-
-void
-test_AddNsecNorm(void) {
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i, 200);
- struct timespec E = timespec_init(i, 600);
- struct timespec c;
-
- c = add_tspec_ns(a, 600 - 200);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-
-void
-test_AddNsecOflow1(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i, 200);
- struct timespec E = timespec_init(i + 1, 100);
- struct timespec c;
-
- c = add_tspec_ns(a, NANOSECONDS - 100);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test subtraction (difference)
-//----------------------------------------------------------------------
-
-void
-test_SubFullNorm(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timespec a = timespec_init( i , 600);
- struct timespec b = timespec_init( j , 400);
- struct timespec E = timespec_init(i-j, 200);
- struct timespec c;
-
- c = sub_tspec(a, b);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-
-void
-test_SubFullOflow(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timespec a = timespec_init(i, 100);
- struct timespec b = timespec_init(j, 999999900);
- struct timespec E = timespec_init(i - j - 1, 200);
- struct timespec c;
-
- c = sub_tspec(a, b);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-
-void
-test_SubNsecNorm(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i, 600);
- struct timespec E = timespec_init(i, 200);
- struct timespec c;
-
- c = sub_tspec_ns(a, 600 - 200);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-
-void
-test_SubNsecOflow(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init( i , 100);
- struct timespec E = timespec_init(i-1, 200);
- struct timespec c;
-
- c = sub_tspec_ns(a, NANOSECONDS - 100);
- TEST_ASSERT_EQUAL_timespec(E, c);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test negation
-//----------------------------------------------------------------------
-
-
-void
-test_Neg(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i, 100);
- struct timespec b;
- struct timespec c;
-
- b = neg_tspec(a);
- c = add_tspec(a, b);
- TEST_ASSERT_EQUAL(0, test_tspec(c));
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test abs value
-//----------------------------------------------------------------------
-
-void
-test_AbsNoFrac(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i , 0);
- struct timespec b;
-
- b = abs_tspec(a);
- TEST_ASSERT_EQUAL((i != 0), test_tspec(b));
- }
-
- return;
-}
-
-
-void
-test_AbsWithFrac(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timespec a = timespec_init(i, 100);
- struct timespec b;
-
- b = abs_tspec(a);
- TEST_ASSERT_EQUAL(1, test_tspec(b));
- }
-
- return;
-}
-
-// ---------------------------------------------------------------------
-// test support stuff -- part 2
-// ---------------------------------------------------------------------
-
-void
-test_Helpers2(void)
-{
- struct timespec limit = timespec_init(0, 2);
- struct timespec x, y;
- long i;
-
- for (x.tv_sec = -2; x.tv_sec < 3; x.tv_sec++)
- for (x.tv_nsec = 1;
- x.tv_nsec < 1000000000;
- x.tv_nsec += 499999999) {
- for (i = -4; i < 5; ++i) {
- y = x;
- y.tv_nsec += i;
- if (i >= -2 && i <= 2) {
- TEST_ASSERT_TRUE(AssertTimespecClose(x, y, limit));
- }
- else
- {
- TEST_ASSERT_FALSE(AssertTimespecClose(x, y, limit));
- }
- }
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// conversion to l_fp
-//----------------------------------------------------------------------
-
-void
-test_ToLFPbittest(void)
-{
- l_fp lfpClose = l_fp_init(0, 1);
- u_int32 i;
-
- for (i = 0; i < 1000000000; i+=1000) {
- struct timespec a = timespec_init(1, i);
- l_fp E= l_fp_init(1, my_tick_to_tsf(i));
- l_fp r;
-
- r = tspec_intv_to_lfp(a);
- TEST_ASSERT_TRUE(AssertFpClose(E, r, lfpClose));
- }
-
- return;
-}
-
-
-void
-test_ToLFPrelPos(void)
-{
- int i;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- struct timespec a = timespec_init(1, fdata[i].nsec);
- l_fp E = l_fp_init(1, fdata[i].frac);
- l_fp r;
-
- r = tspec_intv_to_lfp(a);
- TEST_ASSERT_EQUAL_l_fp(E, r);
- }
-
- return;
-}
-
-
-void
-test_ToLFPrelNeg(void)
-{
- int i;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- struct timespec a = timespec_init(-1, fdata[i].nsec);
- l_fp E = l_fp_init(~0, fdata[i].frac);
- l_fp r;
-
- r = tspec_intv_to_lfp(a);
- TEST_ASSERT_EQUAL_l_fp(E, r);
- }
-
- return;
-}
-
-
-void
-test_ToLFPabs(void)
-{
- int i;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- struct timespec a = timespec_init(1, fdata[i].nsec);
- l_fp E = l_fp_init(1 + JAN_1970, fdata[i].frac);
- l_fp r;
-
- r = tspec_stamp_to_lfp(a);
- TEST_ASSERT_EQUAL_l_fp(E, r);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// conversion from l_fp
-//----------------------------------------------------------------------
-
-void
-test_FromLFPbittest(void)
-{
- struct timespec limit = timespec_init(0, 2);
-
- // Not *exactly* a bittest, because 2**32 tests would take a
- // really long time even on very fast machines! So we do test
- // every 1000 fractional units.
- u_int32 tsf;
- for (tsf = 0; tsf < ~((u_int32)(1000)); tsf += 1000) {
- struct timespec E = timespec_init(1, my_tsf_to_tick(tsf));
- l_fp a = l_fp_init(1, tsf);
- struct timespec r;
-
- r = lfp_intv_to_tspec(a);
- // The conversion might be off by one nanosecond when
- // comparing to calculated value.
- TEST_ASSERT_TRUE(AssertTimespecClose(E, r, limit));
- }
-
- return;
-}
-
-
-void
-test_FromLFPrelPos(void)
-{
- struct timespec limit = timespec_init(0, 2);
- int i;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- l_fp a = l_fp_init(1, fdata[i].frac);
- struct timespec E = timespec_init(1, fdata[i].nsec);
- struct timespec r;
-
- r = lfp_intv_to_tspec(a);
- TEST_ASSERT_TRUE(AssertTimespecClose(E, r, limit));
- }
-
- return;
-}
-
-
-void
-test_FromLFPrelNeg(void)
-{
- struct timespec limit = timespec_init(0, 2);
- int i;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- l_fp a = l_fp_init(~0, fdata[i].frac);
- struct timespec E = timespec_init(-1, fdata[i].nsec);
- struct timespec r;
-
- r = lfp_intv_to_tspec(a);
- TEST_ASSERT_TRUE(AssertTimespecClose(E, r, limit));
- }
-
- return;
-}
-
-
-// nsec -> frac -> nsec roundtrip, using a prime start and increment
-void
-test_LFProundtrip(void)
-{
- int32_t t;
- u_int32 i;
-
- for (t = -1; t < 2; ++t)
- for (i = 4999; i < 1000000000; i += 10007) {
- struct timespec E = timespec_init(t, i);
- l_fp a;
- struct timespec r;
-
- a = tspec_intv_to_lfp(E);
- r = lfp_intv_to_tspec(a);
- TEST_ASSERT_EQUAL_timespec(E, r);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// string formatting
-//----------------------------------------------------------------------
-
-void
-test_ToString(void)
-{
- static const struct {
- time_t sec;
- long nsec;
- const char * repr;
- } data [] = {
- { 0, 0, "0.000000000" },
- { 2, 0, "2.000000000" },
- {-2, 0, "-2.000000000" },
- { 0, 1, "0.000000001" },
- { 0,-1, "-0.000000001" },
- { 1,-1, "0.999999999" },
- {-1, 1, "-0.999999999" },
- {-1,-1, "-1.000000001" },
- };
- int i;
-
- for (i = 0; i < COUNTOF(data); ++i) {
- struct timespec a = timespec_init(data[i].sec, data[i].nsec);
- const char * E = data[i].repr;
- const char * r = tspectoa(a);
- TEST_ASSERT_EQUAL_STRING(E, r);
- }
-
- return;
-}
-
-// -*- EOF -*-
diff --git a/contrib/ntp/tests/libntp/timevalops.c b/contrib/ntp/tests/libntp/timevalops.c
deleted file mode 100644
index 20d5892..0000000
--- a/contrib/ntp/tests/libntp/timevalops.c
+++ /dev/null
@@ -1,804 +0,0 @@
-#include "config.h"
-
-//some unused features are still in the wrapper, unconverted
-
-#include "ntp_types.h"
-#include "ntp_fp.h"
-
-#include "timevalops.h"
-
-#include <math.h>
-#include "unity.h"
-
-
-#define TEST_ASSERT_EQUAL_timeval(a, b) { \
- TEST_ASSERT_EQUAL_MESSAGE(a.tv_sec, b.tv_sec, "Field tv_sec"); \
- TEST_ASSERT_EQUAL_MESSAGE(a.tv_usec, b.tv_usec, "Field tv_usec"); \
-}
-
-
-static u_int32 my_tick_to_tsf(u_int32 ticks);
-static u_int32 my_tsf_to_tick(u_int32 tsf);
-
-
-// that's it...
-typedef struct {
- long usec;
- u_int32 frac;
-} lfpfracdata ;
-
-struct timeval timeval_init( time_t hi, long lo);
-const bool timeval_isValid(struct timeval V);
-l_fp l_fp_init(int32 i, u_int32 f);
-bool AssertTimevalClose(const struct timeval m, const struct timeval n, const struct timeval limit);
-bool AssertFpClose(const l_fp m, const l_fp n, const l_fp limit);
-
-void setUp(void);
-void test_Helpers1(void);
-void test_Normalise(void);
-void test_SignNoFrac(void);
-void test_SignWithFrac(void);
-void test_CmpFracEQ(void);
-void test_CmpFracGT(void);
-void test_CmpFracLT(void);
-void test_AddFullNorm(void);
-void test_AddFullOflow1(void);
-void test_AddUsecNorm(void);
-void test_AddUsecOflow1(void);
-void test_SubFullNorm(void);
-void test_SubFullOflow(void);
-void test_SubUsecNorm(void);
-void test_SubUsecOflow(void);
-void test_Neg(void);
-void test_AbsNoFrac(void);
-void test_AbsWithFrac(void);
-void test_Helpers2(void);
-void test_ToLFPbittest(void);
-void test_ToLFPrelPos(void);
-void test_ToLFPrelNeg(void);
-void test_ToLFPabs(void);
-void test_FromLFPbittest(void);
-void test_FromLFPrelPos(void);
-void test_FromLFPrelNeg(void);
-void test_LFProundtrip(void);
-void test_ToString(void);
-
-
-//**********************************MY CUSTOM FUNCTIONS***********************
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-struct timeval
-timeval_init(time_t hi, long lo)
-{
- struct timeval V;
-
- V.tv_sec = hi;
- V.tv_usec = lo;
-
- return V;
-}
-
-
-const bool
-timeval_isValid(struct timeval V)
-{
-
- return V.tv_usec >= 0 && V.tv_usec < 1000000;
-}
-
-
-l_fp
-l_fp_init(int32 i, u_int32 f)
-{
- l_fp temp;
-
- temp.l_i = i;
- temp.l_uf = f;
-
- return temp;
-}
-
-
-bool
-AssertTimevalClose(const struct timeval m, const struct timeval n, const struct timeval limit)
-{
- struct timeval diff;
-
- diff = abs_tval(sub_tval(m, n));
- if (cmp_tval(limit, diff) >= 0)
- return TRUE;
- else
- {
- printf("m_expr which is %ld.%lu \nand\nn_expr which is %ld.%lu\nare not close; diff=%ld.%luusec\n", m.tv_sec, m.tv_usec, n.tv_sec, n.tv_usec, diff.tv_sec, diff.tv_usec);
- //I don't have variables m_expr and n_expr in unity, those are command line arguments which only getst has!!!
-
- return FALSE;
- }
-}
-
-
-bool
-AssertFpClose(const l_fp m, const l_fp n, const l_fp limit)
-{
- l_fp diff;
-
- if (L_ISGEQ(&m, &n)) {
- diff = m;
- L_SUB(&diff, &n);
- } else {
- diff = n;
- L_SUB(&diff, &m);
- }
- if (L_ISGEQ(&limit, &diff)) {
- return TRUE;
- }
- else {
- printf("m_expr which is %s \nand\nn_expr which is %s\nare not close; diff=%susec\n", lfptoa(&m, 10), lfptoa(&n, 10), lfptoa(&diff, 10));
- //printf("m_expr which is %d.%d \nand\nn_expr which is %d.%d\nare not close; diff=%d.%dusec\n", m.l_uf, m.Ul_i, n.l_uf, n.Ul_i, diff.l_uf, diff.Ul_i);
- return FALSE;
- }
-}
-
-
-//---------------------------------------------------
-
-static const lfpfracdata fdata[] = {
- { 0, 0x00000000 }, { 7478, 0x01ea1405 },
- { 22077, 0x05a6d699 }, { 125000, 0x20000000 },
- { 180326, 0x2e29d841 }, { 207979, 0x353e1c9b },
- { 250000, 0x40000000 }, { 269509, 0x44fe8ab5 },
- { 330441, 0x5497c808 }, { 333038, 0x5541fa76 },
- { 375000, 0x60000000 }, { 394734, 0x650d4995 },
- { 446327, 0x72427c7c }, { 500000, 0x80000000 },
- { 517139, 0x846338b4 }, { 571953, 0x926b8306 },
- { 587353, 0x965cc426 }, { 625000, 0xa0000000 },
- { 692136, 0xb12fd32c }, { 750000, 0xc0000000 },
- { 834068, 0xd5857aff }, { 848454, 0xd9344806 },
- { 854222, 0xdaae4b02 }, { 861465, 0xdc88f862 },
- { 875000, 0xe0000000 }, { 910661, 0xe921144d },
- { 922162, 0xec12cf10 }, { 942190, 0xf1335d25 }
-};
-
-
-u_int32
-my_tick_to_tsf(u_int32 ticks)
-{
- // convert microseconds to l_fp fractional units, using double
- // precision float calculations or, if available, 64bit integer
- // arithmetic. This should give the precise fraction, rounded to
- // the nearest representation.
-
-#ifdef HAVE_U_INT64
- return (u_int32)((( ((u_int64)(ticks)) << 32) + 500000) / 1000000); //I put too much () when casting just to be safe
-#else
- return (u_int32)( ((double)(ticks)) * 4294.967296 + 0.5);
-#endif
- // And before you ask: if ticks >= 1000000, the result is
- // truncated nonsense, so don't use it out-of-bounds.
-}
-
-
-u_int32
-my_tsf_to_tick(u_int32 tsf)
-{
- // Inverse operation: converts fraction to microseconds.
-#ifdef HAVE_U_INT64
- return (u_int32)( ((u_int64)(tsf) * 1000000 + 0x80000000) >> 32); //CHECK ME!!!
-#else
- return (u_int32)(double(tsf) / 4294.967296 + 0.5);
-#endif
- // Beware: The result might be 10^6 due to rounding!
-}
-
-
-//*******************************END OF CUSTOM FUNCTIONS*********************
-
-
-// ---------------------------------------------------------------------
-// test support stuff - part1
-// ---------------------------------------------------------------------
-
-void
-test_Helpers1(void)
-{
- struct timeval x;
-
- for (x.tv_sec = -2; x.tv_sec < 3; x.tv_sec++) {
- x.tv_usec = -1;
- TEST_ASSERT_FALSE(timeval_isValid(x));
- x.tv_usec = 0;
- TEST_ASSERT_TRUE(timeval_isValid(x));
- x.tv_usec = 999999;
- TEST_ASSERT_TRUE(timeval_isValid(x));
- x.tv_usec = 1000000;
- TEST_ASSERT_FALSE(timeval_isValid(x));
- }
-
- return;
-}
-
-
-//----------------------------------------------------------------------
-// test normalisation
-//----------------------------------------------------------------------
-
-void
-test_Normalise(void)
-{
- long ns;
-
- for (ns = -2000000000; ns <= 2000000000; ns += 10000000) {
- struct timeval x = timeval_init(0, ns);
-
- x = normalize_tval(x);
- TEST_ASSERT_TRUE(timeval_isValid(x));
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test classification
-//----------------------------------------------------------------------
-
-void
-test_SignNoFrac(void)
-{
- int i;
-
- // sign test, no fraction
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 0);
- int E = (i > 0) - (i < 0);
- int r = test_tval(a);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-
-void
-test_SignWithFrac(void)
-{
- // sign test, with fraction
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 10);
- int E = (i >= 0) - (i < 0);
- int r = test_tval(a);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test compare
-//----------------------------------------------------------------------
-void
-test_CmpFracEQ(void)
-{
- int i, j;
-
- // fractions are equal
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timeval a = timeval_init(i, 200);
- struct timeval b = timeval_init(j, 200);
- int E = (i > j) - (i < j);
- int r = cmp_tval_denorm(a, b);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-
-void
-test_CmpFracGT(void)
-{
- // fraction a bigger fraction b
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timeval a = timeval_init( i , 999800);
- struct timeval b = timeval_init( j , 200);
- int E = (i >= j) - (i < j);
- int r = cmp_tval_denorm(a, b);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-
-void
-test_CmpFracLT(void)
-{
- // fraction a less fraction b
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timeval a = timeval_init(i, 200);
- struct timeval b = timeval_init(j, 999800);
- int E = (i > j) - (i <= j);
- int r = cmp_tval_denorm(a, b);
-
- TEST_ASSERT_EQUAL(E, r);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// Test addition (sum)
-//----------------------------------------------------------------------
-
-void
-test_AddFullNorm(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timeval a = timeval_init(i, 200);
- struct timeval b = timeval_init(j, 400);
- struct timeval E = timeval_init(i + j, 200 + 400);
- struct timeval c;
-
- c = add_tval(a, b);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-
-void
-test_AddFullOflow1(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timeval a = timeval_init(i, 200);
- struct timeval b = timeval_init(j, 999900);
- struct timeval E = timeval_init(i + j + 1, 100);
- struct timeval c;
-
- c = add_tval(a, b);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-
-void
-test_AddUsecNorm(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 200);
- struct timeval E = timeval_init(i, 600);
- struct timeval c;
-
- c = add_tval_us(a, 600 - 200);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-
-void
-test_AddUsecOflow1(void)
-{
- int i;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 200);
- struct timeval E = timeval_init(i + 1, 100);
- struct timeval c;
-
- c = add_tval_us(a, MICROSECONDS - 100);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test subtraction (difference)
-//----------------------------------------------------------------------
-
-void
-test_SubFullNorm(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timeval a = timeval_init(i, 600);
- struct timeval b = timeval_init(j, 400);
- struct timeval E = timeval_init(i - j, 600 - 400);
- struct timeval c;
-
- c = sub_tval(a, b);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-
-void
-test_SubFullOflow(void)
-{
- int i, j;
-
- for (i = -4; i <= 4; ++i)
- for (j = -4; j <= 4; ++j) {
- struct timeval a = timeval_init(i, 100);
- struct timeval b = timeval_init(j, 999900);
- struct timeval E = timeval_init(i - j - 1, 200);
- struct timeval c;
-
- c = sub_tval(a, b);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-
-void
-test_SubUsecNorm(void)
-{
- int i = -4;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 600);
- struct timeval E = timeval_init(i, 200);
- struct timeval c;
-
- c = sub_tval_us(a, 600 - 200);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-
-void
-test_SubUsecOflow(void)
-{
- int i = -4;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 100);
- struct timeval E = timeval_init(i - 1, 200);
- struct timeval c;
-
- c = sub_tval_us(a, MICROSECONDS - 100);
- TEST_ASSERT_EQUAL_timeval(E, c);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test negation
-//----------------------------------------------------------------------
-
-void
-test_Neg(void)
-{
- int i = -4;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 100);
- struct timeval b;
- struct timeval c;
-
- b = neg_tval(a);
- c = add_tval(a, b);
- TEST_ASSERT_EQUAL(0, test_tval(c));
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// test abs value
-//----------------------------------------------------------------------
-
-void
-test_AbsNoFrac(void)
-{
- int i = -4;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 0);
- struct timeval b;
-
- b = abs_tval(a);
- TEST_ASSERT_EQUAL((i != 0), test_tval(b));
- }
-
- return;
-}
-
-
-void
-test_AbsWithFrac(void)
-{
- int i = -4;
-
- for (i = -4; i <= 4; ++i) {
- struct timeval a = timeval_init(i, 100);
- struct timeval b;
-
- b = abs_tval(a);
- TEST_ASSERT_EQUAL(1, test_tval(b));
- }
-
- return;
-}
-
-// ---------------------------------------------------------------------
-// test support stuff -- part 2
-// ---------------------------------------------------------------------
-
-
-void
-test_Helpers2(void)
-{
- struct timeval limit = timeval_init(0, 2);
- struct timeval x, y;
- long i;
-
- for (x.tv_sec = -2; x.tv_sec < 3; x.tv_sec++) {
- for (x.tv_usec = 1;
- x.tv_usec < 1000000;
- x.tv_usec += 499999) {
- for (i = -4; i < 5; ++i) {
- y = x;
- y.tv_usec += i;
- if (i >= -2 && i <= 2) {
- TEST_ASSERT_TRUE(AssertTimevalClose(x, y, limit));//ASSERT_PRED_FORMAT2(isClose, x, y);
- }
- else {
- TEST_ASSERT_FALSE(AssertTimevalClose(x, y, limit));
- }
- }
- }
- }
-
- return;
-}
-
-// and the global predicate instances we're using here
-
-//static l_fp lfpClose = l_fp_init(0, 1); //static AssertFpClose FpClose(0, 1);
-//static struct timeval timevalClose = timeval_init(0, 1); //static AssertTimevalClose TimevalClose(0, 1);
-
-//----------------------------------------------------------------------
-// conversion to l_fp
-//----------------------------------------------------------------------
-
-void
-test_ToLFPbittest(void)
-{
- l_fp lfpClose = l_fp_init(0, 1);
-
- u_int32 i = 0;
- for (i = 0; i < 1000000; ++i) {
- struct timeval a = timeval_init(1, i);
- l_fp E = l_fp_init(1, my_tick_to_tsf(i));
- l_fp r;
-
- r = tval_intv_to_lfp(a);
- TEST_ASSERT_TRUE(AssertFpClose(E, r, lfpClose)); //ASSERT_PRED_FORMAT2(FpClose, E, r);
- }
-
- return;
-}
-
-
-void
-test_ToLFPrelPos(void)
-{
- l_fp lfpClose = l_fp_init(0, 1);
- int i = 0;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- struct timeval a = timeval_init(1, fdata[i].usec);
- l_fp E = l_fp_init(1, fdata[i].frac);
- l_fp r;
-
- r = tval_intv_to_lfp(a);
- TEST_ASSERT_TRUE(AssertFpClose(E, r, lfpClose));
- }
-
- return;
-}
-
-
-void
-test_ToLFPrelNeg(void)
-{
- l_fp lfpClose = l_fp_init(0, 1);
- int i = 0;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- struct timeval a = timeval_init(-1, fdata[i].usec);
- l_fp E = l_fp_init(~0, fdata[i].frac);
- l_fp r;
-
- r = tval_intv_to_lfp(a);
- TEST_ASSERT_TRUE(AssertFpClose(E, r, lfpClose));
- }
-
- return;
-}
-
-
-void
-test_ToLFPabs(void)
-{
- l_fp lfpClose = l_fp_init(0, 1);
- int i = 0;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- struct timeval a = timeval_init(1, fdata[i].usec);
- l_fp E = l_fp_init(1 + JAN_1970, fdata[i].frac);
- l_fp r;
-
- r = tval_stamp_to_lfp(a);
- TEST_ASSERT_TRUE(AssertFpClose(E, r, lfpClose));
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// conversion from l_fp
-//----------------------------------------------------------------------
-
-void
-test_FromLFPbittest(void)
-{
- struct timeval timevalClose = timeval_init(0, 1);
- // Not *exactly* a bittest, because 2**32 tests would take a
- // really long time even on very fast machines! So we do test
- // every 1000 fractional units.
- u_int32 tsf = 0;
-
- for (tsf = 0; tsf < ~((u_int32)(1000)); tsf += 1000) {
- struct timeval E = timeval_init(1, my_tsf_to_tick(tsf));
- l_fp a = l_fp_init(1, tsf);
- struct timeval r;
-
- r = lfp_intv_to_tval(a);
- // The conversion might be off by one microsecond when
- // comparing to calculated value.
- TEST_ASSERT_TRUE(AssertTimevalClose(E, r, timevalClose));
- }
-
- return;
-}
-
-
-void
-test_FromLFPrelPos(void)
-{
- struct timeval timevalClose = timeval_init(0, 1);
- int i = 0;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- l_fp a = l_fp_init(1, fdata[i].frac);
- struct timeval E = timeval_init(1, fdata[i].usec);
- struct timeval r;
-
- r = lfp_intv_to_tval(a);
- TEST_ASSERT_TRUE(AssertTimevalClose(E, r, timevalClose));
- }
-
- return;
-}
-
-
-void
-test_FromLFPrelNeg(void)
-{
- struct timeval timevalClose = timeval_init(0, 1);
- int i = 0;
-
- for (i = 0; i < COUNTOF(fdata); ++i) {
- l_fp a = l_fp_init(~0, fdata[i].frac);
- struct timeval E = timeval_init(-1, fdata[i].usec);
- struct timeval r;
-
- r = lfp_intv_to_tval(a);
- TEST_ASSERT_TRUE(AssertTimevalClose(E, r, timevalClose));
- }
-
- return;
-}
-
-
-// usec -> frac -> usec roundtrip, using a prime start and increment
-void
-test_LFProundtrip(void)
-{
- int32_t t = -1;
- u_int32 i = 5;
-
- for (t = -1; t < 2; ++t)
- for (i = 5; i < 1000000; i += 11) {
- struct timeval E = timeval_init(t, i);
- l_fp a;
- struct timeval r;
-
- a = tval_intv_to_lfp(E);
- r = lfp_intv_to_tval(a);
- TEST_ASSERT_EQUAL_timeval(E, r);
- }
-
- return;
-}
-
-//----------------------------------------------------------------------
-// string formatting
-//----------------------------------------------------------------------
-
-void
-test_ToString(void)
-{
- static const struct {
- time_t sec;
- long usec;
- const char * repr;
- } data [] = {
- { 0, 0, "0.000000" },
- { 2, 0, "2.000000" },
- {-2, 0, "-2.000000" },
- { 0, 1, "0.000001" },
- { 0,-1, "-0.000001" },
- { 1,-1, "0.999999" },
- {-1, 1, "-0.999999" },
- {-1,-1, "-1.000001" },
- };
- int i;
-
- for (i = 0; i < COUNTOF(data); ++i) {
- struct timeval a = timeval_init(data[i].sec, data[i].usec);
- const char * E = data[i].repr;
- const char * r = tvaltoa(a);
-
- TEST_ASSERT_EQUAL_STRING(E, r);
- }
-
- return;
-}
-
-// -*- EOF -*-
diff --git a/contrib/ntp/tests/libntp/tsafememcmp.c b/contrib/ntp/tests/libntp/tsafememcmp.c
deleted file mode 100644
index 7bd9158..0000000
--- a/contrib/ntp/tests/libntp/tsafememcmp.c
+++ /dev/null
@@ -1,85 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "isc/string.h"
-
-#include "unity.h"
-
-/* Basisc test for timingsafe_memcmp() */
-
-void test_Empty(void);
-void test_Equal(void);
-void test_FirstByte(void);
-void test_LastByte(void);
-void test_MiddleByte(void);
-void test_MiddleByteUpLo(void);
-
-void test_Empty(void)
-{
- static const char dummy[1];
- TEST_ASSERT_EQUAL_INT(0, isc_tsmemcmp(NULL , NULL , 0));
- TEST_ASSERT_EQUAL_INT(0, isc_tsmemcmp(dummy, dummy, 0));
-}
-
-void test_Equal(void)
-{
- static const char dummy[2][4] = {
- "blob", "blob"
- };
- TEST_ASSERT_EQUAL_INT(0, isc_tsmemcmp(dummy[0],
- dummy[1],
- sizeof(dummy[0])));
-}
-
-void test_FirstByte(void)
-{
- static const char dummy[2][4] = {
- "Blob", "Clob"
- };
- TEST_ASSERT_EQUAL_INT(-1, isc_tsmemcmp(dummy[0],
- dummy[1],
- sizeof(dummy[0])));
- TEST_ASSERT_EQUAL_INT( 1, isc_tsmemcmp(dummy[1],
- dummy[0],
- sizeof(dummy[0])));
-}
-
-void test_LastByte(void)
-{
- static const char dummy[2][4] = {
- "Blob", "Bloc"
- };
- TEST_ASSERT_EQUAL_INT(-1, isc_tsmemcmp(dummy[0],
- dummy[1],
- sizeof(dummy[0])));
- TEST_ASSERT_EQUAL_INT( 1, isc_tsmemcmp(dummy[1],
- dummy[0],
- sizeof(dummy[0])));
-}
-
-void test_MiddleByte(void)
-{
- static const char dummy[2][4] = {
- "Blob", "Blpb"
- };
- TEST_ASSERT_EQUAL_INT(-1, isc_tsmemcmp(dummy[0],
- dummy[1],
- sizeof(dummy[0])));
- TEST_ASSERT_EQUAL_INT( 1, isc_tsmemcmp(dummy[1],
- dummy[0],
- sizeof(dummy[0])));
-}
-
-void test_MiddleByteUpLo(void)
-{
- static const char dummy[2][4] = {
- "Blob", "Blpa"
- };
- TEST_ASSERT_EQUAL_INT(-1, isc_tsmemcmp(dummy[0],
- dummy[1],
- sizeof(dummy[0])));
- TEST_ASSERT_EQUAL_INT( 1, isc_tsmemcmp(dummy[1],
- dummy[0],
- sizeof(dummy[0])));
-}
-
diff --git a/contrib/ntp/tests/libntp/tstotv.c b/contrib/ntp/tests/libntp/tstotv.c
deleted file mode 100644
index dac7e53..0000000
--- a/contrib/ntp/tests/libntp/tstotv.c
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "config.h"
-
-#include "ntp_fp.h"
-#include "timevalops.h"
-
-#include "unity.h"
-
-void test_Seconds(void);
-void test_MicrosecondsExact(void);
-void test_MicrosecondsRounding(void);
-
-
-void
-test_Seconds(void) {
- const l_fp input = {{50}, 0}; /* 50.0 s */
- const struct timeval expected = {50, 0};
- struct timeval actual;
-
- TSTOTV(&input, &actual);
-
- TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec);
- TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec);
-}
-
-void
-test_MicrosecondsExact(void) {
- const u_long HALF = 2147483648UL;
- const l_fp input = {{50}, HALF}; /* 50.5 s */
- const struct timeval expected = {50, 500000};
- struct timeval actual;
-
- TSTOTV(&input, &actual);
-
- TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec);
- TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec);
-
-}
-
-void
-test_MicrosecondsRounding(void) {
- const l_fp input = {{50}, 3865471UL}; /* Should round to 50.0009 */
- const struct timeval expected = {50, 900};
- struct timeval actual;
-
- TSTOTV(&input, &actual);
-
- TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec);
- TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec);
-}
diff --git a/contrib/ntp/tests/libntp/tvtots.c b/contrib/ntp/tests/libntp/tvtots.c
deleted file mode 100644
index a13846d..0000000
--- a/contrib/ntp/tests/libntp/tvtots.c
+++ /dev/null
@@ -1,64 +0,0 @@
-#include "config.h"
-
-#include "lfptest.h"
-#include "timevalops.h"
-
-#include "unity.h"
-
-#include <math.h> /* Required on Solaris for ldexp. */
-
-void test_Seconds(void);
-void test_MicrosecondsRounded(void);
-void test_MicrosecondsExact(void);
-
-void
-test_Seconds(void)
-{
- struct timeval input = {500, 0}; /* 500.0 s */
- l_fp expected = {{500}, 0};
- l_fp actual;
-
- TVTOTS(&input, &actual);
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-
-void
-test_MicrosecondsRounded(void)
-{
- /* 0.0005 can not be represented exact in a l_fp structure.
- * It would equal to 2147483,648. This means that
- * HALF_PROMILLE_UP (which is 2147484) should be
- * the correct rounding. */
-
- struct timeval input = {0, 500}; /* 0.0005 exact */
- l_fp expected = {{0}, HALF_PROMILLE_UP};
- l_fp actual;
-
- TVTOTS(&input, &actual);
-
- TEST_ASSERT_TRUE(IsEqual(expected, actual));
-}
-
-
-void
-test_MicrosecondsExact(void)
-{
- /* 0.5 can be represented exact in both l_fp and timeval. */
- const struct timeval input = {10, 500000}; /* 0.5 exact */
- const l_fp expected = {{10}, HALF}; /* 0.5 exact */
- l_fp actual;
-
- TVTOTS(&input, &actual);
-
- /* Compare the fractional part with an absolute error given. */
- TEST_ASSERT_EQUAL_UINT(expected.l_ui, actual.l_ui);
-
- double expectedDouble, actualDouble;
- M_LFPTOD(0, expected.l_uf, expectedDouble);
- M_LFPTOD(0, actual.l_uf, actualDouble);
-
- /* The error should be less than 0.5 us */
- TEST_ASSERT_DOUBLE_WITHIN(0.0000005, expectedDouble, actualDouble);
-}
diff --git a/contrib/ntp/tests/libntp/uglydate.c b/contrib/ntp/tests/libntp/uglydate.c
deleted file mode 100644
index 3a5aa8a..0000000
--- a/contrib/ntp/tests/libntp/uglydate.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "ntp_fp.h"
-
-#include "unity.h"
-
-void setUp(void);
-void test_ConstantDateTime(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-void
-test_ConstantDateTime(void)
-{
- const u_int32 HALF = 2147483648UL;
-
- l_fp e_time = {{3485080800UL}, HALF}; /* 2010-06-09 14:00:00.5 */
-
- TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500",
- uglydate(&e_time));
- return;
-}
diff --git a/contrib/ntp/tests/libntp/vi64ops.c b/contrib/ntp/tests/libntp/vi64ops.c
deleted file mode 100644
index 843c0a3..0000000
--- a/contrib/ntp/tests/libntp/vi64ops.c
+++ /dev/null
@@ -1,80 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-#include "vint64ops.h"
-
-#include "unity.h"
-
-
-int IsEqual(const vint64 expected, const vint64 actual);
-void test_ParseVUI64_pos(void);
-void test_ParseVUI64_neg(void);
-void test_ParseVUI64_case(void);
-
-
-// technically bool
-int
-IsEqual(const vint64 expected, const vint64 actual) {
- if (0 == memcmp(&expected, &actual, sizeof(vint64))) {
- printf( "%x.", expected.D_s.hi);
- printf("%x", expected.D_s.lo);
- printf(" but was ");
- printf("%x.", actual.D_s.hi);
- printf("%x\n", actual.D_s.lo);
- return TRUE;
- } else {
- printf("expected: ");
- printf( "%d.", expected.D_s.hi);
- printf("%d", expected.D_s.lo);
- printf(" but was ");
- printf("%d", actual.D_s.lo);
- printf("%d", actual.D_s.lo);
- return FALSE;
- }
-}
-
-// ----------------------------------------------------------------------
-// test number parser
-void
-test_ParseVUI64_pos(void) {
- vint64 act, exp;
- const char *sp;
- char *ep;
-
- sp = "1234x";
- exp.D_s.hi = 0;
- exp.D_s.lo = 1234;
- act = strtouv64(sp, &ep, 0);
-
- TEST_ASSERT_TRUE(IsEqual(exp, act));
- TEST_ASSERT_EQUAL(*ep, 'x');
-}
-
-
-void
-test_ParseVUI64_neg(void) {
- vint64 act, exp;
- const char *sp;
- char *ep;
-
- sp = "-1234x";
- exp.D_s.hi = ~0;
- exp.D_s.lo = -1234;
- act = strtouv64(sp, &ep, 0);
- TEST_ASSERT_TRUE(IsEqual(exp, act));
- TEST_ASSERT_EQUAL(*ep, 'x');
-}
-
-void
-test_ParseVUI64_case(void) {
- vint64 act, exp;
- const char *sp;
- char *ep;
-
- sp = "0123456789AbCdEf";
- exp.D_s.hi = 0x01234567;
- exp.D_s.lo = 0x89ABCDEF;
- act = strtouv64(sp, &ep, 16);
- TEST_ASSERT_TRUE(IsEqual(exp, act));
- TEST_ASSERT_EQUAL(*ep, '\0');
-}
diff --git a/contrib/ntp/tests/libntp/ymd2yd.c b/contrib/ntp/tests/libntp/ymd2yd.c
deleted file mode 100644
index ccb7fb9..0000000
--- a/contrib/ntp/tests/libntp/ymd2yd.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "config.h"
-
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-
-void test_NonLeapYearFebruary(void);
-void test_NonLeapYearJune(void);
-void test_LeapYearFebruary(void);
-void test_LeapYearDecember(void);
-
-
-void
-test_NonLeapYearFebruary(void) {
- TEST_ASSERT_EQUAL(31 + 20, ymd2yd(2010, 2, 20)); //2010-02-20
-}
-
-
-void
-test_NonLeapYearJune(void) {
- int expected = 31+28+31+30+31+18; // 18 June non-leap year
- TEST_ASSERT_EQUAL(expected, ymd2yd(2011, 6, 18));
-}
-
-
-void
-test_LeapYearFebruary(void) {
- TEST_ASSERT_EQUAL(31 + 20, ymd2yd(2012, 2, 20)); //2012-02-20 (leap year)
-}
-
-
-void
-test_LeapYearDecember(void) {
- // 2012-12-31
- int expected = 31+29+31+30+31+30+31+31+30+31+30+31;
- TEST_ASSERT_EQUAL(expected, ymd2yd(2012, 12, 31));
-}
diff --git a/contrib/ntp/tests/ntpd/Makefile.am b/contrib/ntp/tests/ntpd/Makefile.am
deleted file mode 100644
index 3ce512d..0000000
--- a/contrib/ntp/tests/ntpd/Makefile.am
+++ /dev/null
@@ -1,221 +0,0 @@
-NULL =
-BUILT_SOURCES =
-CLEANFILES =
-
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-check_PROGRAMS = \
- test-leapsec \
- test-ntp_prio_q \
- $(NULL)
-if BUILD_TEST_NTP_RESTRICT
-check_PROGRAMS += test-ntp_restrict
-endif
-if BUILD_TEST_NTP_SCANNER
-check_PROGRAMS += test-ntp_scanner
-endif
-if BUILD_TEST_NTP_SIGND
-check_PROGRAMS += test-ntp_signd
-endif
-check_PROGRAMS += \
- test-rc_cmdlength \
- $(NULL)
-
-EXTRA_PROGRAMS = \
- test-ntp_restrict \
- test-ntp_scanner \
- test-ntp_signd \
- $(NULL)
-
-
-LDADD = \
- $(top_builddir)/ntpd/libntpd.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-unity_tests_LDADD = \
- $(LDADD) \
- $(top_builddir)/sntp/unity/libunity.a \
- $(LIBM) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-AM_CPPFLAGS = $(NTP_INCS)
-AM_CPPFLAGS += -I$(top_srcdir)/sntp
-AM_CPPFLAGS += -I$(top_srcdir)/ntpd
-AM_CPPFLAGS += -I$(top_srcdir)/tests/libntp
-AM_CPPFLAGS += $(CPPFLAGS_NTP)
-AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-
-AM_LDFLAGS = $(LDFLAGS_NTP)
-
-BUILT_SOURCES += \
- $(srcdir)/run-leapsec.c \
- $(srcdir)/run-ntp_prio_q.c \
- $(srcdir)/run-ntp_restrict.c \
- $(srcdir)/run-rc_cmdlength.c \
- $(srcdir)/run-t-ntp_signd.c \
- $(NULL)
-
-###
-
-test_leapsec_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-# Might need pthread support
-test_leapsec_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_leapsec_SOURCES = \
- leapsec.c \
- run-leapsec.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-leapsec.c: $(srcdir)/leapsec.c $(std_unity_list)
- $(run_unity) leapsec.c run-leapsec.c
-
-###
-test_ntp_prio_q_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_ntp_prio_q_LDADD = \
- $(unity_tests_LDADD) \
- ../../ntpd/ntpdsim-ntp_prio_q.o \
- $(NULL)
-
-test_ntp_prio_q_SOURCES = \
- ntp_prio_q.c \
- run-ntp_prio_q.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-ntp_prio_q.c: $(srcdir)/ntp_prio_q.c $(std_unity_list)
- $(run_unity) ntp_prio_q.c run-ntp_prio_q.c
-
-
-###
-test_ntp_restrict_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_ntp_restrict_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_ntp_restrict_SOURCES = \
- ntp_restrict.c \
- run-ntp_restrict.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-ntp_restrict.c: $(srcdir)/ntp_restrict.c $(std_unity_list)
- $(run_unity) ntp_restrict.c run-ntp_restrict.c
-
-
-
-###
-test_rc_cmdlength_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_rc_cmdlength_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_rc_cmdlength_SOURCES = \
- rc_cmdlength.c \
- run-rc_cmdlength.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-rc_cmdlength.c: $(srcdir)/rc_cmdlength.c $(std_unity_list)
- $(run_unity) rc_cmdlength.c run-rc_cmdlength.c
-
-###
-
-test_ntp_signd_LDADD = \
- $(unity_tests_LDADD) \
- $(top_builddir)/ntpd/ntp_config.o \
- $(top_builddir)/ntpd/ntp_io.o \
- $(NULL)
-
-test_ntp_signd_SOURCES = \
- t-ntp_signd.c \
- run-t-ntp_signd.c \
- $(srcdir)/../libntp/test-libntp.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_config.o \
- $(top_builddir)/ntpd/ntp_parser.o \
- $(NULL)
-
-test_ntp_scanner_SOURCES = \
- t-ntp_scanner.c \
- run-t-ntp_scanner.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-$(srcdir)/run-t-ntp_scanner.c: $(srcdir)/t-ntp_scanner.c $(std_unity_list)
- $(run_unity) t-ntp_scanner.c run-t-ntp_scanner.c
-
-
-TESTS =
-
-if !NTP_CROSSCOMPILE
-TESTS += $(check_PROGRAMS)
-endif
-
-## check-libntp.mf - automake fragment
-## slightly adapted for deeper directory
-
-BUILT_SOURCES += check-libntpd check-libntp check-libunity
-CLEANFILES += check-libntpd check-libntp check-libunity
-
-check-libntpd: ../../ntpd/libntpd.a
- @echo stamp > $@
-
-../../ntpd/libntpd.a:
- cd ../../ntpd && $(MAKE) $(AM_MAKEFLAGS) libntpd.a
-
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-$(top_builddir)/ntpd/ntpdsim-ntp_prio_q.o:
- cd ../../ntpd/ && $(MAKE) $(AM_MAKEFLAGS) ntpdsim-ntp_prio_q.o
-
-include $(top_srcdir)/depsver.mf
-include $(top_srcdir)/includes.mf
diff --git a/contrib/ntp/tests/ntpd/Makefile.in b/contrib/ntp/tests/ntpd/Makefile.in
deleted file mode 100644
index 5c83a37..0000000
--- a/contrib/ntp/tests/ntpd/Makefile.in
+++ /dev/null
@@ -1,1754 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-check_PROGRAMS = test-leapsec$(EXEEXT) test-ntp_prio_q$(EXEEXT) \
- $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \
- $(am__EXEEXT_4) test-rc_cmdlength$(EXEEXT) $(am__EXEEXT_1)
-@BUILD_TEST_NTP_RESTRICT_TRUE@am__append_1 = test-ntp_restrict
-@BUILD_TEST_NTP_SCANNER_TRUE@am__append_2 = test-ntp_scanner
-@BUILD_TEST_NTP_SIGND_TRUE@am__append_3 = test-ntp_signd
-EXTRA_PROGRAMS = test-ntp_restrict$(EXEEXT) test-ntp_scanner$(EXEEXT) \
- test-ntp_signd$(EXEEXT) $(am__EXEEXT_1)
-@NTP_CROSSCOMPILE_FALSE@am__append_4 = $(check_PROGRAMS)
-subdir = tests/ntpd
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
- $(top_srcdir)/sntp/libopts/m4/stdnoreturn.m4 \
- $(top_srcdir)/sntp/m4/ax_c99_struct_init.m4 \
- $(top_srcdir)/sntp/m4/define_dir.m4 \
- $(top_srcdir)/sntp/m4/hms_search_lib.m4 \
- $(top_srcdir)/sntp/m4/libtool.m4 \
- $(top_srcdir)/sntp/m4/ltoptions.m4 \
- $(top_srcdir)/sntp/m4/ltsugar.m4 \
- $(top_srcdir)/sntp/m4/ltversion.m4 \
- $(top_srcdir)/sntp/m4/lt~obsolete.m4 \
- $(top_srcdir)/sntp/m4/ntp_cacheversion.m4 \
- $(top_srcdir)/sntp/m4/ntp_compiler.m4 \
- $(top_srcdir)/sntp/m4/ntp_crosscompile.m4 \
- $(top_srcdir)/sntp/m4/ntp_crypto_rand.m4 \
- $(top_srcdir)/sntp/m4/ntp_debug.m4 \
- $(top_srcdir)/sntp/m4/ntp_dir_sep.m4 \
- $(top_srcdir)/sntp/m4/ntp_facilitynames.m4 \
- $(top_srcdir)/sntp/m4/ntp_googletest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ipv6.m4 \
- $(top_srcdir)/sntp/m4/ntp_lib_m.m4 \
- $(top_srcdir)/sntp/m4/ntp_libevent.m4 \
- $(top_srcdir)/sntp/m4/ntp_libntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_lineeditlibs.m4 \
- $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \
- $(top_srcdir)/sntp/m4/ntp_openssl.m4 \
- $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \
- $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \
- $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \
- $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \
- $(top_srcdir)/sntp/m4/ntp_sntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_unitytest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ver_suffix.m4 \
- $(top_srcdir)/sntp/m4/ntp_vpathhack.m4 \
- $(top_srcdir)/sntp/m4/openldap-thread-check.m4 \
- $(top_srcdir)/sntp/m4/openldap.m4 \
- $(top_srcdir)/sntp/m4/os_cflags.m4 \
- $(top_srcdir)/sntp/m4/snprintf.m4 \
- $(top_srcdir)/sntp/m4/version.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__EXEEXT_1 =
-@BUILD_TEST_NTP_RESTRICT_TRUE@am__EXEEXT_2 = \
-@BUILD_TEST_NTP_RESTRICT_TRUE@ test-ntp_restrict$(EXEEXT)
-@BUILD_TEST_NTP_SCANNER_TRUE@am__EXEEXT_3 = test-ntp_scanner$(EXEEXT)
-@BUILD_TEST_NTP_SIGND_TRUE@am__EXEEXT_4 = test-ntp_signd$(EXEEXT)
-am__objects_1 =
-am_test_leapsec_OBJECTS = test_leapsec-leapsec.$(OBJEXT) \
- test_leapsec-run-leapsec.$(OBJEXT) \
- test_leapsec-test-libntp.$(OBJEXT) $(am__objects_1)
-test_leapsec_OBJECTS = $(am_test_leapsec_OBJECTS)
-am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = $(top_builddir)/ntpd/libntpd.a \
- $(top_builddir)/libntp/libntp.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-am__DEPENDENCIES_3 = $(am__DEPENDENCIES_2) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-test_leapsec_DEPENDENCIES = $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-test_leapsec_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_leapsec_CFLAGS) \
- $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-am_test_ntp_prio_q_OBJECTS = test_ntp_prio_q-ntp_prio_q.$(OBJEXT) \
- test_ntp_prio_q-run-ntp_prio_q.$(OBJEXT) \
- test_ntp_prio_q-test-libntp.$(OBJEXT) $(am__objects_1)
-test_ntp_prio_q_OBJECTS = $(am_test_ntp_prio_q_OBJECTS)
-test_ntp_prio_q_DEPENDENCIES = $(am__DEPENDENCIES_3) \
- ../../ntpd/ntpdsim-ntp_prio_q.o $(am__DEPENDENCIES_1)
-test_ntp_prio_q_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(test_ntp_prio_q_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
- -o $@
-am_test_ntp_restrict_OBJECTS = \
- test_ntp_restrict-ntp_restrict.$(OBJEXT) \
- test_ntp_restrict-run-ntp_restrict.$(OBJEXT) \
- test_ntp_restrict-test-libntp.$(OBJEXT) $(am__objects_1)
-test_ntp_restrict_OBJECTS = $(am_test_ntp_restrict_OBJECTS)
-test_ntp_restrict_DEPENDENCIES = $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_1)
-test_ntp_restrict_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(test_ntp_restrict_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
- -o $@
-am_test_ntp_scanner_OBJECTS = \
- test_ntp_scanner-t-ntp_scanner.$(OBJEXT) \
- test_ntp_scanner-run-t-ntp_scanner.$(OBJEXT) \
- test_ntp_scanner-test-libntp.$(OBJEXT) $(am__objects_1)
-test_ntp_scanner_OBJECTS = $(am_test_ntp_scanner_OBJECTS)
-test_ntp_scanner_DEPENDENCIES = $(am__DEPENDENCIES_3) \
- $(top_builddir)/ntpd/ntp_config.o \
- $(top_builddir)/ntpd/ntp_parser.o $(am__DEPENDENCIES_1)
-test_ntp_scanner_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(test_ntp_scanner_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
- -o $@
-am_test_ntp_signd_OBJECTS = t-ntp_signd.$(OBJEXT) \
- run-t-ntp_signd.$(OBJEXT) test-libntp.$(OBJEXT) \
- $(am__objects_1)
-test_ntp_signd_OBJECTS = $(am_test_ntp_signd_OBJECTS)
-test_ntp_signd_DEPENDENCIES = $(am__DEPENDENCIES_3) \
- $(top_builddir)/ntpd/ntp_config.o \
- $(top_builddir)/ntpd/ntp_io.o $(am__DEPENDENCIES_1)
-am_test_rc_cmdlength_OBJECTS = \
- test_rc_cmdlength-rc_cmdlength.$(OBJEXT) \
- test_rc_cmdlength-run-rc_cmdlength.$(OBJEXT) \
- test_rc_cmdlength-test-libntp.$(OBJEXT) $(am__objects_1)
-test_rc_cmdlength_OBJECTS = $(am_test_rc_cmdlength_OBJECTS)
-test_rc_cmdlength_DEPENDENCIES = $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_1)
-test_rc_cmdlength_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(test_rc_cmdlength_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
- -o $@
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/sntp/libevent/build-aux/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(test_leapsec_SOURCES) $(test_ntp_prio_q_SOURCES) \
- $(test_ntp_restrict_SOURCES) $(test_ntp_scanner_SOURCES) \
- $(test_ntp_signd_SOURCES) $(test_rc_cmdlength_SOURCES)
-DIST_SOURCES = $(test_leapsec_SOURCES) $(test_ntp_prio_q_SOURCES) \
- $(test_ntp_restrict_SOURCES) $(test_ntp_scanner_SOURCES) \
- $(test_ntp_signd_SOURCES) $(test_rc_cmdlength_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depsver.mf \
- $(top_srcdir)/includes.mf \
- $(top_srcdir)/sntp/libevent/build-aux/depcomp \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BUILD_THREAD = @BUILD_THREAD@
-CALC_TICKADJ_DB = @CALC_TICKADJ_DB@
-CALC_TICKADJ_DL = @CALC_TICKADJ_DL@
-CALC_TICKADJ_DS = @CALC_TICKADJ_DS@
-CALC_TICKADJ_MS = @CALC_TICKADJ_MS@
-CALC_TICKADJ_NI = @CALC_TICKADJ_NI@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@
-CFLAGS_NTP = @CFLAGS_NTP@
-CHUTEST = @CHUTEST@
-CONFIG_SHELL = @CONFIG_SHELL@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CPPFLAGS_LIBEVENT = @CPPFLAGS_LIBEVENT@
-CPPFLAGS_NTP = @CPPFLAGS_NTP@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCFD = @DCFD@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EDITLINE_LIBS = @EDITLINE_LIBS@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-GTEST_CONFIG = @GTEST_CONFIG@
-GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
-GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
-GTEST_LDFLAGS = @GTEST_LDFLAGS@
-GTEST_LIBS = @GTEST_LIBS@
-HAVE_INLINE = @HAVE_INLINE@
-HAVE_LEAPSMEARINTERVAL = @HAVE_LEAPSMEARINTERVAL@
-HAVE_RLIMIT_MEMLOCK = @HAVE_RLIMIT_MEMLOCK@
-HAVE_RLIMIT_STACK = @HAVE_RLIMIT_STACK@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDADD_LIBEVENT = @LDADD_LIBEVENT@
-LDADD_LIBNTP = @LDADD_LIBNTP@
-LDADD_LIBUTIL = @LDADD_LIBUTIL@
-LDADD_NLIST = @LDADD_NLIST@
-LDADD_NTP = @LDADD_NTP@
-LDFLAGS = @LDFLAGS@
-LDFLAGS_NTP = @LDFLAGS_NTP@
-LIBISC_PTHREADS_NOTHREADS = @LIBISC_PTHREADS_NOTHREADS@
-LIBM = @LIBM@
-LIBOBJS = @LIBOBJS@
-LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
-LIBOPTS_DIR = @LIBOPTS_DIR@
-LIBOPTS_LDADD = @LIBOPTS_LDADD@
-LIBPARSE = @LIBPARSE@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LSCF = @LSCF@
-LTHREAD_LIBS = @LTHREAD_LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAKE_ADJTIMED = @MAKE_ADJTIMED@
-MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
-MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
-MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
-MAKE_LIBPARSE = @MAKE_LIBPARSE@
-MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
-MAKE_NTPDSIM = @MAKE_NTPDSIM@
-MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
-MAKE_NTPTIME = @MAKE_NTPTIME@
-MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
-MAKE_TICKADJ = @MAKE_TICKADJ@
-MAKE_TIMETRIM = @MAKE_TIMETRIM@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MANTAGFMT = @MANTAGFMT@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NTPDATE_DB = @NTPDATE_DB@
-NTPDATE_DL = @NTPDATE_DL@
-NTPDATE_DS = @NTPDATE_DS@
-NTPDATE_MS = @NTPDATE_MS@
-NTPDATE_NI = @NTPDATE_NI@
-NTPDC_DB = @NTPDC_DB@
-NTPDC_DL = @NTPDC_DL@
-NTPDC_DS = @NTPDC_DS@
-NTPDC_MS = @NTPDC_MS@
-NTPDC_NI = @NTPDC_NI@
-NTPDSIM_DB = @NTPDSIM_DB@
-NTPDSIM_DL = @NTPDSIM_DL@
-NTPDSIM_DS = @NTPDSIM_DS@
-NTPDSIM_MS = @NTPDSIM_MS@
-NTPDSIM_NI = @NTPDSIM_NI@
-NTPD_DB = @NTPD_DB@
-NTPD_DL = @NTPD_DL@
-NTPD_DS = @NTPD_DS@
-NTPD_MS = @NTPD_MS@
-NTPD_NI = @NTPD_NI@
-NTPQ_DB = @NTPQ_DB@
-NTPQ_DL = @NTPQ_DL@
-NTPQ_DS = @NTPQ_DS@
-NTPQ_MS = @NTPQ_MS@
-NTPQ_NI = @NTPQ_NI@
-NTPSNMPD_DB = @NTPSNMPD_DB@
-NTPSNMPD_DL = @NTPSNMPD_DL@
-NTPSNMPD_DS = @NTPSNMPD_DS@
-NTPSNMPD_MS = @NTPSNMPD_MS@
-NTPSNMPD_NI = @NTPSNMPD_NI@
-NTPSWEEP_DB = @NTPSWEEP_DB@
-NTPSWEEP_DL = @NTPSWEEP_DL@
-NTPSWEEP_DS = @NTPSWEEP_DS@
-NTPSWEEP_MS = @NTPSWEEP_MS@
-NTPSWEEP_NI = @NTPSWEEP_NI@
-NTPTIME_DB = @NTPTIME_DB@
-NTPTIME_DL = @NTPTIME_DL@
-NTPTIME_DS = @NTPTIME_DS@
-NTPTIME_MS = @NTPTIME_MS@
-NTPTIME_NI = @NTPTIME_NI@
-NTPTRACE_DB = @NTPTRACE_DB@
-NTPTRACE_DL = @NTPTRACE_DL@
-NTPTRACE_DS = @NTPTRACE_DS@
-NTPTRACE_MS = @NTPTRACE_MS@
-NTPTRACE_NI = @NTPTRACE_NI@
-NTP_KEYGEN_DB = @NTP_KEYGEN_DB@
-NTP_KEYGEN_DL = @NTP_KEYGEN_DL@
-NTP_KEYGEN_DS = @NTP_KEYGEN_DS@
-NTP_KEYGEN_MS = @NTP_KEYGEN_MS@
-NTP_KEYGEN_NI = @NTP_KEYGEN_NI@
-NTP_KEYSDIR = @NTP_KEYSDIR@
-NTP_WAIT_DB = @NTP_WAIT_DB@
-NTP_WAIT_DL = @NTP_WAIT_DL@
-NTP_WAIT_DS = @NTP_WAIT_DS@
-NTP_WAIT_MS = @NTP_WAIT_MS@
-NTP_WAIT_NI = @NTP_WAIT_NI@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
-PATH_PERL = @PATH_PERL@
-PATH_RUBY = @PATH_RUBY@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TEST = @PATH_TEST@
-PERLLIBDIR = @PERLLIBDIR@
-PKG_CONFIG = @PKG_CONFIG@
-POSIX_SHELL = @POSIX_SHELL@
-PROPDELAY = @PROPDELAY@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SNMP_CFLAGS = @SNMP_CFLAGS@
-SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
-SNMP_LIBS = @SNMP_LIBS@
-SNTP = @SNTP@
-SNTP_DB = @SNTP_DB@
-SNTP_DL = @SNTP_DL@
-SNTP_DS = @SNTP_DS@
-SNTP_MS = @SNTP_MS@
-SNTP_NI = @SNTP_NI@
-STDNORETURN_H = @STDNORETURN_H@
-STRIP = @STRIP@
-TESTDCF = @TESTDCF@
-TICKADJ_DB = @TICKADJ_DB@
-TICKADJ_DL = @TICKADJ_DL@
-TICKADJ_DS = @TICKADJ_DS@
-TICKADJ_MS = @TICKADJ_MS@
-TICKADJ_NI = @TICKADJ_NI@
-TIMETRIM_DB = @TIMETRIM_DB@
-TIMETRIM_DL = @TIMETRIM_DL@
-TIMETRIM_DS = @TIMETRIM_DS@
-TIMETRIM_MS = @TIMETRIM_MS@
-TIMETRIM_NI = @TIMETRIM_NI@
-UPDATE_LEAP_DB = @UPDATE_LEAP_DB@
-UPDATE_LEAP_DL = @UPDATE_LEAP_DL@
-UPDATE_LEAP_DS = @UPDATE_LEAP_DS@
-UPDATE_LEAP_MS = @UPDATE_LEAP_MS@
-UPDATE_LEAP_NI = @UPDATE_LEAP_NI@
-VERSION = @VERSION@
-VER_SUFFIX = @VER_SUFFIX@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-NULL =
-BUILT_SOURCES = $(srcdir)/run-leapsec.c $(srcdir)/run-ntp_prio_q.c \
- $(srcdir)/run-ntp_restrict.c $(srcdir)/run-rc_cmdlength.c \
- $(srcdir)/run-t-ntp_signd.c $(NULL) check-libntpd check-libntp \
- check-libunity .deps-ver
-CLEANFILES = check-libntpd check-libntp check-libunity .deps-ver
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-LDADD = \
- $(top_builddir)/ntpd/libntpd.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-unity_tests_LDADD = \
- $(LDADD) \
- $(top_builddir)/sntp/unity/libunity.a \
- $(LIBM) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-AM_CPPFLAGS = $(NTP_INCS) -I$(top_srcdir)/sntp -I$(top_srcdir)/ntpd \
- -I$(top_srcdir)/tests/libntp $(CPPFLAGS_NTP) \
- -DUNITY_INCLUDE_CONFIG_H -I$(top_srcdir)/sntp/unity
-AM_LDFLAGS = $(LDFLAGS_NTP)
-
-###
-test_leapsec_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-
-# Might need pthread support
-test_leapsec_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_leapsec_SOURCES = \
- leapsec.c \
- run-leapsec.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-
-###
-test_ntp_prio_q_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_ntp_prio_q_LDADD = \
- $(unity_tests_LDADD) \
- ../../ntpd/ntpdsim-ntp_prio_q.o \
- $(NULL)
-
-test_ntp_prio_q_SOURCES = \
- ntp_prio_q.c \
- run-ntp_prio_q.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-
-###
-test_ntp_restrict_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_ntp_restrict_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_ntp_restrict_SOURCES = \
- ntp_restrict.c \
- run-ntp_restrict.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-
-###
-test_rc_cmdlength_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_rc_cmdlength_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_rc_cmdlength_SOURCES = \
- rc_cmdlength.c \
- run-rc_cmdlength.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-
-###
-test_ntp_signd_LDADD = \
- $(unity_tests_LDADD) \
- $(top_builddir)/ntpd/ntp_config.o \
- $(top_builddir)/ntpd/ntp_io.o \
- $(NULL)
-
-test_ntp_signd_SOURCES = \
- t-ntp_signd.c \
- run-t-ntp_signd.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-
-###
-test_ntp_scanner_CFLAGS = \
- -I$(top_srcdir)/sntp/unity \
- $(NULL)
-
-test_ntp_scanner_LDADD = \
- $(unity_tests_LDADD) \
- $(top_builddir)/ntpd/ntp_config.o \
- $(top_builddir)/ntpd/ntp_parser.o \
- $(NULL)
-
-test_ntp_scanner_SOURCES = \
- t-ntp_scanner.c \
- run-t-ntp_scanner.c \
- $(srcdir)/../libntp/test-libntp.c \
- $(NULL)
-
-TESTS = $(am__append_4)
-NTP_INCS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
- -I$(top_srcdir)/lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/include \
- -I$(top_srcdir)/lib/isc/unix/include
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/ntpd/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign tests/ntpd/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__empty):
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-
-test-leapsec$(EXEEXT): $(test_leapsec_OBJECTS) $(test_leapsec_DEPENDENCIES) $(EXTRA_test_leapsec_DEPENDENCIES)
- @rm -f test-leapsec$(EXEEXT)
- $(AM_V_CCLD)$(test_leapsec_LINK) $(test_leapsec_OBJECTS) $(test_leapsec_LDADD) $(LIBS)
-
-test-ntp_prio_q$(EXEEXT): $(test_ntp_prio_q_OBJECTS) $(test_ntp_prio_q_DEPENDENCIES) $(EXTRA_test_ntp_prio_q_DEPENDENCIES)
- @rm -f test-ntp_prio_q$(EXEEXT)
- $(AM_V_CCLD)$(test_ntp_prio_q_LINK) $(test_ntp_prio_q_OBJECTS) $(test_ntp_prio_q_LDADD) $(LIBS)
-
-test-ntp_restrict$(EXEEXT): $(test_ntp_restrict_OBJECTS) $(test_ntp_restrict_DEPENDENCIES) $(EXTRA_test_ntp_restrict_DEPENDENCIES)
- @rm -f test-ntp_restrict$(EXEEXT)
- $(AM_V_CCLD)$(test_ntp_restrict_LINK) $(test_ntp_restrict_OBJECTS) $(test_ntp_restrict_LDADD) $(LIBS)
-
-test-ntp_scanner$(EXEEXT): $(test_ntp_scanner_OBJECTS) $(test_ntp_scanner_DEPENDENCIES) $(EXTRA_test_ntp_scanner_DEPENDENCIES)
- @rm -f test-ntp_scanner$(EXEEXT)
- $(AM_V_CCLD)$(test_ntp_scanner_LINK) $(test_ntp_scanner_OBJECTS) $(test_ntp_scanner_LDADD) $(LIBS)
-
-test-ntp_signd$(EXEEXT): $(test_ntp_signd_OBJECTS) $(test_ntp_signd_DEPENDENCIES) $(EXTRA_test_ntp_signd_DEPENDENCIES)
- @rm -f test-ntp_signd$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_ntp_signd_OBJECTS) $(test_ntp_signd_LDADD) $(LIBS)
-
-test-rc_cmdlength$(EXEEXT): $(test_rc_cmdlength_OBJECTS) $(test_rc_cmdlength_DEPENDENCIES) $(EXTRA_test_rc_cmdlength_DEPENDENCIES)
- @rm -f test-rc_cmdlength$(EXEEXT)
- $(AM_V_CCLD)$(test_rc_cmdlength_LINK) $(test_rc_cmdlength_OBJECTS) $(test_rc_cmdlength_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-t-ntp_signd.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/t-ntp_signd.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-libntp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_leapsec-leapsec.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_leapsec-run-leapsec.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_leapsec-test-libntp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_prio_q-ntp_prio_q.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_prio_q-run-ntp_prio_q.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_prio_q-test-libntp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_restrict-ntp_restrict.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_restrict-run-ntp_restrict.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_restrict-test-libntp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_scanner-run-t-ntp_scanner.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_scanner-t-ntp_scanner.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ntp_scanner-test-libntp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_rc_cmdlength-rc_cmdlength.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_rc_cmdlength-run-rc_cmdlength.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_rc_cmdlength-test-libntp.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-test_leapsec-leapsec.o: leapsec.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -MT test_leapsec-leapsec.o -MD -MP -MF $(DEPDIR)/test_leapsec-leapsec.Tpo -c -o test_leapsec-leapsec.o `test -f 'leapsec.c' || echo '$(srcdir)/'`leapsec.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_leapsec-leapsec.Tpo $(DEPDIR)/test_leapsec-leapsec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='leapsec.c' object='test_leapsec-leapsec.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -c -o test_leapsec-leapsec.o `test -f 'leapsec.c' || echo '$(srcdir)/'`leapsec.c
-
-test_leapsec-leapsec.obj: leapsec.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -MT test_leapsec-leapsec.obj -MD -MP -MF $(DEPDIR)/test_leapsec-leapsec.Tpo -c -o test_leapsec-leapsec.obj `if test -f 'leapsec.c'; then $(CYGPATH_W) 'leapsec.c'; else $(CYGPATH_W) '$(srcdir)/leapsec.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_leapsec-leapsec.Tpo $(DEPDIR)/test_leapsec-leapsec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='leapsec.c' object='test_leapsec-leapsec.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -c -o test_leapsec-leapsec.obj `if test -f 'leapsec.c'; then $(CYGPATH_W) 'leapsec.c'; else $(CYGPATH_W) '$(srcdir)/leapsec.c'; fi`
-
-test_leapsec-run-leapsec.o: run-leapsec.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -MT test_leapsec-run-leapsec.o -MD -MP -MF $(DEPDIR)/test_leapsec-run-leapsec.Tpo -c -o test_leapsec-run-leapsec.o `test -f 'run-leapsec.c' || echo '$(srcdir)/'`run-leapsec.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_leapsec-run-leapsec.Tpo $(DEPDIR)/test_leapsec-run-leapsec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-leapsec.c' object='test_leapsec-run-leapsec.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -c -o test_leapsec-run-leapsec.o `test -f 'run-leapsec.c' || echo '$(srcdir)/'`run-leapsec.c
-
-test_leapsec-run-leapsec.obj: run-leapsec.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -MT test_leapsec-run-leapsec.obj -MD -MP -MF $(DEPDIR)/test_leapsec-run-leapsec.Tpo -c -o test_leapsec-run-leapsec.obj `if test -f 'run-leapsec.c'; then $(CYGPATH_W) 'run-leapsec.c'; else $(CYGPATH_W) '$(srcdir)/run-leapsec.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_leapsec-run-leapsec.Tpo $(DEPDIR)/test_leapsec-run-leapsec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-leapsec.c' object='test_leapsec-run-leapsec.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -c -o test_leapsec-run-leapsec.obj `if test -f 'run-leapsec.c'; then $(CYGPATH_W) 'run-leapsec.c'; else $(CYGPATH_W) '$(srcdir)/run-leapsec.c'; fi`
-
-test_leapsec-test-libntp.o: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -MT test_leapsec-test-libntp.o -MD -MP -MF $(DEPDIR)/test_leapsec-test-libntp.Tpo -c -o test_leapsec-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_leapsec-test-libntp.Tpo $(DEPDIR)/test_leapsec-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_leapsec-test-libntp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -c -o test_leapsec-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-
-test_leapsec-test-libntp.obj: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -MT test_leapsec-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_leapsec-test-libntp.Tpo -c -o test_leapsec-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_leapsec-test-libntp.Tpo $(DEPDIR)/test_leapsec-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_leapsec-test-libntp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_leapsec_CFLAGS) $(CFLAGS) -c -o test_leapsec-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-
-test_ntp_prio_q-ntp_prio_q.o: ntp_prio_q.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -MT test_ntp_prio_q-ntp_prio_q.o -MD -MP -MF $(DEPDIR)/test_ntp_prio_q-ntp_prio_q.Tpo -c -o test_ntp_prio_q-ntp_prio_q.o `test -f 'ntp_prio_q.c' || echo '$(srcdir)/'`ntp_prio_q.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_prio_q-ntp_prio_q.Tpo $(DEPDIR)/test_ntp_prio_q-ntp_prio_q.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ntp_prio_q.c' object='test_ntp_prio_q-ntp_prio_q.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -c -o test_ntp_prio_q-ntp_prio_q.o `test -f 'ntp_prio_q.c' || echo '$(srcdir)/'`ntp_prio_q.c
-
-test_ntp_prio_q-ntp_prio_q.obj: ntp_prio_q.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -MT test_ntp_prio_q-ntp_prio_q.obj -MD -MP -MF $(DEPDIR)/test_ntp_prio_q-ntp_prio_q.Tpo -c -o test_ntp_prio_q-ntp_prio_q.obj `if test -f 'ntp_prio_q.c'; then $(CYGPATH_W) 'ntp_prio_q.c'; else $(CYGPATH_W) '$(srcdir)/ntp_prio_q.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_prio_q-ntp_prio_q.Tpo $(DEPDIR)/test_ntp_prio_q-ntp_prio_q.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ntp_prio_q.c' object='test_ntp_prio_q-ntp_prio_q.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -c -o test_ntp_prio_q-ntp_prio_q.obj `if test -f 'ntp_prio_q.c'; then $(CYGPATH_W) 'ntp_prio_q.c'; else $(CYGPATH_W) '$(srcdir)/ntp_prio_q.c'; fi`
-
-test_ntp_prio_q-run-ntp_prio_q.o: run-ntp_prio_q.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -MT test_ntp_prio_q-run-ntp_prio_q.o -MD -MP -MF $(DEPDIR)/test_ntp_prio_q-run-ntp_prio_q.Tpo -c -o test_ntp_prio_q-run-ntp_prio_q.o `test -f 'run-ntp_prio_q.c' || echo '$(srcdir)/'`run-ntp_prio_q.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_prio_q-run-ntp_prio_q.Tpo $(DEPDIR)/test_ntp_prio_q-run-ntp_prio_q.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ntp_prio_q.c' object='test_ntp_prio_q-run-ntp_prio_q.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -c -o test_ntp_prio_q-run-ntp_prio_q.o `test -f 'run-ntp_prio_q.c' || echo '$(srcdir)/'`run-ntp_prio_q.c
-
-test_ntp_prio_q-run-ntp_prio_q.obj: run-ntp_prio_q.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -MT test_ntp_prio_q-run-ntp_prio_q.obj -MD -MP -MF $(DEPDIR)/test_ntp_prio_q-run-ntp_prio_q.Tpo -c -o test_ntp_prio_q-run-ntp_prio_q.obj `if test -f 'run-ntp_prio_q.c'; then $(CYGPATH_W) 'run-ntp_prio_q.c'; else $(CYGPATH_W) '$(srcdir)/run-ntp_prio_q.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_prio_q-run-ntp_prio_q.Tpo $(DEPDIR)/test_ntp_prio_q-run-ntp_prio_q.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ntp_prio_q.c' object='test_ntp_prio_q-run-ntp_prio_q.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -c -o test_ntp_prio_q-run-ntp_prio_q.obj `if test -f 'run-ntp_prio_q.c'; then $(CYGPATH_W) 'run-ntp_prio_q.c'; else $(CYGPATH_W) '$(srcdir)/run-ntp_prio_q.c'; fi`
-
-test_ntp_prio_q-test-libntp.o: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -MT test_ntp_prio_q-test-libntp.o -MD -MP -MF $(DEPDIR)/test_ntp_prio_q-test-libntp.Tpo -c -o test_ntp_prio_q-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_prio_q-test-libntp.Tpo $(DEPDIR)/test_ntp_prio_q-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_ntp_prio_q-test-libntp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -c -o test_ntp_prio_q-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-
-test_ntp_prio_q-test-libntp.obj: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -MT test_ntp_prio_q-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_ntp_prio_q-test-libntp.Tpo -c -o test_ntp_prio_q-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_prio_q-test-libntp.Tpo $(DEPDIR)/test_ntp_prio_q-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_ntp_prio_q-test-libntp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_prio_q_CFLAGS) $(CFLAGS) -c -o test_ntp_prio_q-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-
-test_ntp_restrict-ntp_restrict.o: ntp_restrict.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -MT test_ntp_restrict-ntp_restrict.o -MD -MP -MF $(DEPDIR)/test_ntp_restrict-ntp_restrict.Tpo -c -o test_ntp_restrict-ntp_restrict.o `test -f 'ntp_restrict.c' || echo '$(srcdir)/'`ntp_restrict.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_restrict-ntp_restrict.Tpo $(DEPDIR)/test_ntp_restrict-ntp_restrict.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ntp_restrict.c' object='test_ntp_restrict-ntp_restrict.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -c -o test_ntp_restrict-ntp_restrict.o `test -f 'ntp_restrict.c' || echo '$(srcdir)/'`ntp_restrict.c
-
-test_ntp_restrict-ntp_restrict.obj: ntp_restrict.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -MT test_ntp_restrict-ntp_restrict.obj -MD -MP -MF $(DEPDIR)/test_ntp_restrict-ntp_restrict.Tpo -c -o test_ntp_restrict-ntp_restrict.obj `if test -f 'ntp_restrict.c'; then $(CYGPATH_W) 'ntp_restrict.c'; else $(CYGPATH_W) '$(srcdir)/ntp_restrict.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_restrict-ntp_restrict.Tpo $(DEPDIR)/test_ntp_restrict-ntp_restrict.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ntp_restrict.c' object='test_ntp_restrict-ntp_restrict.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -c -o test_ntp_restrict-ntp_restrict.obj `if test -f 'ntp_restrict.c'; then $(CYGPATH_W) 'ntp_restrict.c'; else $(CYGPATH_W) '$(srcdir)/ntp_restrict.c'; fi`
-
-test_ntp_restrict-run-ntp_restrict.o: run-ntp_restrict.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -MT test_ntp_restrict-run-ntp_restrict.o -MD -MP -MF $(DEPDIR)/test_ntp_restrict-run-ntp_restrict.Tpo -c -o test_ntp_restrict-run-ntp_restrict.o `test -f 'run-ntp_restrict.c' || echo '$(srcdir)/'`run-ntp_restrict.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_restrict-run-ntp_restrict.Tpo $(DEPDIR)/test_ntp_restrict-run-ntp_restrict.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ntp_restrict.c' object='test_ntp_restrict-run-ntp_restrict.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -c -o test_ntp_restrict-run-ntp_restrict.o `test -f 'run-ntp_restrict.c' || echo '$(srcdir)/'`run-ntp_restrict.c
-
-test_ntp_restrict-run-ntp_restrict.obj: run-ntp_restrict.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -MT test_ntp_restrict-run-ntp_restrict.obj -MD -MP -MF $(DEPDIR)/test_ntp_restrict-run-ntp_restrict.Tpo -c -o test_ntp_restrict-run-ntp_restrict.obj `if test -f 'run-ntp_restrict.c'; then $(CYGPATH_W) 'run-ntp_restrict.c'; else $(CYGPATH_W) '$(srcdir)/run-ntp_restrict.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_restrict-run-ntp_restrict.Tpo $(DEPDIR)/test_ntp_restrict-run-ntp_restrict.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ntp_restrict.c' object='test_ntp_restrict-run-ntp_restrict.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -c -o test_ntp_restrict-run-ntp_restrict.obj `if test -f 'run-ntp_restrict.c'; then $(CYGPATH_W) 'run-ntp_restrict.c'; else $(CYGPATH_W) '$(srcdir)/run-ntp_restrict.c'; fi`
-
-test_ntp_restrict-test-libntp.o: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -MT test_ntp_restrict-test-libntp.o -MD -MP -MF $(DEPDIR)/test_ntp_restrict-test-libntp.Tpo -c -o test_ntp_restrict-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_restrict-test-libntp.Tpo $(DEPDIR)/test_ntp_restrict-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_ntp_restrict-test-libntp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -c -o test_ntp_restrict-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-
-test_ntp_restrict-test-libntp.obj: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -MT test_ntp_restrict-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_ntp_restrict-test-libntp.Tpo -c -o test_ntp_restrict-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_restrict-test-libntp.Tpo $(DEPDIR)/test_ntp_restrict-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_ntp_restrict-test-libntp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_restrict_CFLAGS) $(CFLAGS) -c -o test_ntp_restrict-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-
-test_ntp_scanner-t-ntp_scanner.o: t-ntp_scanner.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -MT test_ntp_scanner-t-ntp_scanner.o -MD -MP -MF $(DEPDIR)/test_ntp_scanner-t-ntp_scanner.Tpo -c -o test_ntp_scanner-t-ntp_scanner.o `test -f 't-ntp_scanner.c' || echo '$(srcdir)/'`t-ntp_scanner.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_scanner-t-ntp_scanner.Tpo $(DEPDIR)/test_ntp_scanner-t-ntp_scanner.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='t-ntp_scanner.c' object='test_ntp_scanner-t-ntp_scanner.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -c -o test_ntp_scanner-t-ntp_scanner.o `test -f 't-ntp_scanner.c' || echo '$(srcdir)/'`t-ntp_scanner.c
-
-test_ntp_scanner-t-ntp_scanner.obj: t-ntp_scanner.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -MT test_ntp_scanner-t-ntp_scanner.obj -MD -MP -MF $(DEPDIR)/test_ntp_scanner-t-ntp_scanner.Tpo -c -o test_ntp_scanner-t-ntp_scanner.obj `if test -f 't-ntp_scanner.c'; then $(CYGPATH_W) 't-ntp_scanner.c'; else $(CYGPATH_W) '$(srcdir)/t-ntp_scanner.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_scanner-t-ntp_scanner.Tpo $(DEPDIR)/test_ntp_scanner-t-ntp_scanner.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='t-ntp_scanner.c' object='test_ntp_scanner-t-ntp_scanner.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -c -o test_ntp_scanner-t-ntp_scanner.obj `if test -f 't-ntp_scanner.c'; then $(CYGPATH_W) 't-ntp_scanner.c'; else $(CYGPATH_W) '$(srcdir)/t-ntp_scanner.c'; fi`
-
-test_ntp_scanner-run-t-ntp_scanner.o: run-t-ntp_scanner.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -MT test_ntp_scanner-run-t-ntp_scanner.o -MD -MP -MF $(DEPDIR)/test_ntp_scanner-run-t-ntp_scanner.Tpo -c -o test_ntp_scanner-run-t-ntp_scanner.o `test -f 'run-t-ntp_scanner.c' || echo '$(srcdir)/'`run-t-ntp_scanner.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_scanner-run-t-ntp_scanner.Tpo $(DEPDIR)/test_ntp_scanner-run-t-ntp_scanner.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-t-ntp_scanner.c' object='test_ntp_scanner-run-t-ntp_scanner.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -c -o test_ntp_scanner-run-t-ntp_scanner.o `test -f 'run-t-ntp_scanner.c' || echo '$(srcdir)/'`run-t-ntp_scanner.c
-
-test_ntp_scanner-run-t-ntp_scanner.obj: run-t-ntp_scanner.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -MT test_ntp_scanner-run-t-ntp_scanner.obj -MD -MP -MF $(DEPDIR)/test_ntp_scanner-run-t-ntp_scanner.Tpo -c -o test_ntp_scanner-run-t-ntp_scanner.obj `if test -f 'run-t-ntp_scanner.c'; then $(CYGPATH_W) 'run-t-ntp_scanner.c'; else $(CYGPATH_W) '$(srcdir)/run-t-ntp_scanner.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_scanner-run-t-ntp_scanner.Tpo $(DEPDIR)/test_ntp_scanner-run-t-ntp_scanner.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-t-ntp_scanner.c' object='test_ntp_scanner-run-t-ntp_scanner.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -c -o test_ntp_scanner-run-t-ntp_scanner.obj `if test -f 'run-t-ntp_scanner.c'; then $(CYGPATH_W) 'run-t-ntp_scanner.c'; else $(CYGPATH_W) '$(srcdir)/run-t-ntp_scanner.c'; fi`
-
-test_ntp_scanner-test-libntp.o: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -MT test_ntp_scanner-test-libntp.o -MD -MP -MF $(DEPDIR)/test_ntp_scanner-test-libntp.Tpo -c -o test_ntp_scanner-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_scanner-test-libntp.Tpo $(DEPDIR)/test_ntp_scanner-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_ntp_scanner-test-libntp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -c -o test_ntp_scanner-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-
-test_ntp_scanner-test-libntp.obj: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -MT test_ntp_scanner-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_ntp_scanner-test-libntp.Tpo -c -o test_ntp_scanner-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ntp_scanner-test-libntp.Tpo $(DEPDIR)/test_ntp_scanner-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_ntp_scanner-test-libntp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ntp_scanner_CFLAGS) $(CFLAGS) -c -o test_ntp_scanner-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-
-test-libntp.o: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-libntp.o -MD -MP -MF $(DEPDIR)/test-libntp.Tpo -c -o test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test-libntp.Tpo $(DEPDIR)/test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test-libntp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-
-test-libntp.obj: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-libntp.obj -MD -MP -MF $(DEPDIR)/test-libntp.Tpo -c -o test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test-libntp.Tpo $(DEPDIR)/test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test-libntp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-
-test_rc_cmdlength-rc_cmdlength.o: rc_cmdlength.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -MT test_rc_cmdlength-rc_cmdlength.o -MD -MP -MF $(DEPDIR)/test_rc_cmdlength-rc_cmdlength.Tpo -c -o test_rc_cmdlength-rc_cmdlength.o `test -f 'rc_cmdlength.c' || echo '$(srcdir)/'`rc_cmdlength.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_rc_cmdlength-rc_cmdlength.Tpo $(DEPDIR)/test_rc_cmdlength-rc_cmdlength.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rc_cmdlength.c' object='test_rc_cmdlength-rc_cmdlength.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -c -o test_rc_cmdlength-rc_cmdlength.o `test -f 'rc_cmdlength.c' || echo '$(srcdir)/'`rc_cmdlength.c
-
-test_rc_cmdlength-rc_cmdlength.obj: rc_cmdlength.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -MT test_rc_cmdlength-rc_cmdlength.obj -MD -MP -MF $(DEPDIR)/test_rc_cmdlength-rc_cmdlength.Tpo -c -o test_rc_cmdlength-rc_cmdlength.obj `if test -f 'rc_cmdlength.c'; then $(CYGPATH_W) 'rc_cmdlength.c'; else $(CYGPATH_W) '$(srcdir)/rc_cmdlength.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_rc_cmdlength-rc_cmdlength.Tpo $(DEPDIR)/test_rc_cmdlength-rc_cmdlength.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rc_cmdlength.c' object='test_rc_cmdlength-rc_cmdlength.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -c -o test_rc_cmdlength-rc_cmdlength.obj `if test -f 'rc_cmdlength.c'; then $(CYGPATH_W) 'rc_cmdlength.c'; else $(CYGPATH_W) '$(srcdir)/rc_cmdlength.c'; fi`
-
-test_rc_cmdlength-run-rc_cmdlength.o: run-rc_cmdlength.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -MT test_rc_cmdlength-run-rc_cmdlength.o -MD -MP -MF $(DEPDIR)/test_rc_cmdlength-run-rc_cmdlength.Tpo -c -o test_rc_cmdlength-run-rc_cmdlength.o `test -f 'run-rc_cmdlength.c' || echo '$(srcdir)/'`run-rc_cmdlength.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_rc_cmdlength-run-rc_cmdlength.Tpo $(DEPDIR)/test_rc_cmdlength-run-rc_cmdlength.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-rc_cmdlength.c' object='test_rc_cmdlength-run-rc_cmdlength.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -c -o test_rc_cmdlength-run-rc_cmdlength.o `test -f 'run-rc_cmdlength.c' || echo '$(srcdir)/'`run-rc_cmdlength.c
-
-test_rc_cmdlength-run-rc_cmdlength.obj: run-rc_cmdlength.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -MT test_rc_cmdlength-run-rc_cmdlength.obj -MD -MP -MF $(DEPDIR)/test_rc_cmdlength-run-rc_cmdlength.Tpo -c -o test_rc_cmdlength-run-rc_cmdlength.obj `if test -f 'run-rc_cmdlength.c'; then $(CYGPATH_W) 'run-rc_cmdlength.c'; else $(CYGPATH_W) '$(srcdir)/run-rc_cmdlength.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_rc_cmdlength-run-rc_cmdlength.Tpo $(DEPDIR)/test_rc_cmdlength-run-rc_cmdlength.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-rc_cmdlength.c' object='test_rc_cmdlength-run-rc_cmdlength.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -c -o test_rc_cmdlength-run-rc_cmdlength.obj `if test -f 'run-rc_cmdlength.c'; then $(CYGPATH_W) 'run-rc_cmdlength.c'; else $(CYGPATH_W) '$(srcdir)/run-rc_cmdlength.c'; fi`
-
-test_rc_cmdlength-test-libntp.o: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -MT test_rc_cmdlength-test-libntp.o -MD -MP -MF $(DEPDIR)/test_rc_cmdlength-test-libntp.Tpo -c -o test_rc_cmdlength-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_rc_cmdlength-test-libntp.Tpo $(DEPDIR)/test_rc_cmdlength-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_rc_cmdlength-test-libntp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -c -o test_rc_cmdlength-test-libntp.o `test -f '$(srcdir)/../libntp/test-libntp.c' || echo '$(srcdir)/'`$(srcdir)/../libntp/test-libntp.c
-
-test_rc_cmdlength-test-libntp.obj: $(srcdir)/../libntp/test-libntp.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -MT test_rc_cmdlength-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_rc_cmdlength-test-libntp.Tpo -c -o test_rc_cmdlength-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_rc_cmdlength-test-libntp.Tpo $(DEPDIR)/test_rc_cmdlength-test-libntp.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/../libntp/test-libntp.c' object='test_rc_cmdlength-test-libntp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_rc_cmdlength_CFLAGS) $(CFLAGS) -c -o test_rc_cmdlength-test-libntp.obj `if test -f '$(srcdir)/../libntp/test-libntp.c'; then $(CYGPATH_W) '$(srcdir)/../libntp/test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/../libntp/test-libntp.c'; fi`
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- elif test -n "$$redo_logs"; then \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-test-leapsec.log: test-leapsec$(EXEEXT)
- @p='test-leapsec$(EXEEXT)'; \
- b='test-leapsec'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-ntp_prio_q.log: test-ntp_prio_q$(EXEEXT)
- @p='test-ntp_prio_q$(EXEEXT)'; \
- b='test-ntp_prio_q'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-ntp_restrict.log: test-ntp_restrict$(EXEEXT)
- @p='test-ntp_restrict$(EXEEXT)'; \
- b='test-ntp_restrict'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-ntp_scanner.log: test-ntp_scanner$(EXEEXT)
- @p='test-ntp_scanner$(EXEEXT)'; \
- b='test-ntp_scanner'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-ntp_signd.log: test-ntp_signd$(EXEEXT)
- @p='test-ntp_signd$(EXEEXT)'; \
- b='test-ntp_signd'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-rc_cmdlength.log: test-rc_cmdlength$(EXEEXT)
- @p='test-rc_cmdlength$(EXEEXT)'; \
- b='test-rc_cmdlength'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile
-installdirs:
-install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: all check check-am install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
- ctags ctags-am distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- recheck tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-$(srcdir)/run-leapsec.c: $(srcdir)/leapsec.c $(std_unity_list)
- $(run_unity) leapsec.c run-leapsec.c
-
-$(srcdir)/run-ntp_prio_q.c: $(srcdir)/ntp_prio_q.c $(std_unity_list)
- $(run_unity) ntp_prio_q.c run-ntp_prio_q.c
-
-$(srcdir)/run-ntp_restrict.c: $(srcdir)/ntp_restrict.c $(std_unity_list)
- $(run_unity) ntp_restrict.c run-ntp_restrict.c
-
-$(srcdir)/run-rc_cmdlength.c: $(srcdir)/rc_cmdlength.c $(std_unity_list)
- $(run_unity) rc_cmdlength.c run-rc_cmdlength.c
-
-$(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
-
-$(srcdir)/run-t-ntp_scanner.c: $(srcdir)/t-ntp_scanner.c $(std_unity_list)
- $(run_unity) t-ntp_scanner.c run-t-ntp_scanner.c
-
-check-libntpd: ../../ntpd/libntpd.a
- @echo stamp > $@
-
-../../ntpd/libntpd.a:
- cd ../../ntpd && $(MAKE) $(AM_MAKEFLAGS) libntpd.a
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-$(top_builddir)/ntpd/ntpdsim-ntp_prio_q.o:
- cd ../../ntpd/ && $(MAKE) $(AM_MAKEFLAGS) ntpdsim-ntp_prio_q.o
-$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
- @[ -f $@ ] || \
- cp $(top_srcdir)/deps-ver $@
- @[ -w $@ ] || \
- chmod ug+w $@
- @cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
- $(MAKE) $(AM_MAKEFLAGS) clean && \
- echo -n "Prior $(subdir)/$(DEPDIR) version " && \
- cat $@ && \
- rm -rf $(DEPDIR) && \
- mkdir $(DEPDIR) && \
- case "$(top_builddir)" in \
- .) \
- ./config.status Makefile depfiles \
- ;; \
- *) \
- cd "$(top_builddir)" && \
- ./config.status $(subdir)/Makefile depfiles && \
- cd $(subdir) \
- ;; \
- esac && \
- echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
- cat $(top_srcdir)/deps-ver \
- )
- cp $(top_srcdir)/deps-ver $@
-
-.deps-ver: $(top_srcdir)/deps-ver
- @[ ! -d $(DEPDIR) ] || $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/deps-ver
- @touch $@
-
-#
-# depsver.mf included in Makefile.am for directories with .deps
-#
-# When building in the same directory with sources that change over
-# time, such as when tracking using bk, the .deps files can become
-# stale with respect to moved, deleted, or superceded headers. Most
-# commonly, this would exhibit as make reporting a failure to make a
-# header file which is no longer in the location given. To address
-# this issue, we use a deps-ver file which is updated with each change
-# that breaks old .deps files. A copy of deps-ver is made into
-# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
-# with different contents than deps-ver, we make clean to ensure all
-# .o files built before the incompatible change are rebuilt along with
-# their updated .deps files, then remove $(DEPDIR) and recreate it as
-# empty stubs.
-#
-# It is normal when configured with --disable-dependency-tracking for
-# the DEPDIR to not have been created. For this reason, we use the
-# intermediate target .deps-ver, which invokes make recursively if
-# DEPDIR exists.
-#
-# If you modify depsver.mf, please make the changes to the master
-# copy, the one in sntp is copied by the bootstrap script from it.
-#
-# This comment block follows rather than leads the related code so that
-# it stays with it in the generated Makefile.in and Makefile.
-#
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/contrib/ntp/tests/ntpd/leapsec.c b/contrib/ntp/tests/ntpd/leapsec.c
deleted file mode 100644
index 36ecd39..0000000
--- a/contrib/ntp/tests/ntpd/leapsec.c
+++ /dev/null
@@ -1,1388 +0,0 @@
-//#include "ntpdtest.h"
-#include "config.h"
-
-
-#include "ntp.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-#include "ntp_leapsec.h"
-
-#include "unity.h"
-
-#include <string.h>
-
-#include "test-libntp.h"
-
-static const char leap1 [] =
- "#\n"
- "#@ 3610569600\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- " \t \n"
- "2571782400 20 # 1 Jul 1981\n"
- "2603318400 21 # 1 Jul 1982\n"
- "2634854400 22 # 1 Jul 1983\n"
- "2698012800 23 # 1 Jul 1985\n"
- "2776982400 24 # 1 Jan 1988\n"
- "2840140800 25 # 1 Jan 1990\n"
- "2871676800 26 # 1 Jan 1991\n"
- "2918937600 27 # 1 Jul 1992\n"
- "2950473600 28 # 1 Jul 1993\n"
- "2982009600 29 # 1 Jul 1994\n"
- "3029443200 30 # 1 Jan 1996\n"
- "3076704000 31 # 1 Jul 1997\n"
- "3124137600 32 # 1 Jan 1999\n"
- "3345062400 33 # 1 Jan 2006\n"
- "3439756800 34 # 1 Jan 2009\n"
- "3550089600 35 # 1 Jul 2012\n"
- "#\n"
- "#h dc2e6b0b 5aade95d a0587abd 4e0dacb4 e4d5049e\n"
- "#\n";
-
-static const char leap2 [] =
- "#\n"
- "#@ 2950473700\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- "2571782400 20 # 1 Jul 1981\n"
- "2603318400 21 # 1 Jul 1982\n"
- "2634854400 22 # 1 Jul 1983\n"
- "2698012800 23 # 1 Jul 1985\n"
- "2776982400 24 # 1 Jan 1988\n"
- "2840140800 25 # 1 Jan 1990\n"
- "2871676800 26 # 1 Jan 1991\n"
- "2918937600 27 # 1 Jul 1992\n"
- "2950473600 28 # 1 Jul 1993\n"
- "#\n";
-
-// Faked table with a leap second removal at 2009
-static const char leap3 [] =
- "#\n"
- "#@ 3610569600\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- "2571782400 20 # 1 Jul 1981\n"
- "2603318400 21 # 1 Jul 1982\n"
- "2634854400 22 # 1 Jul 1983\n"
- "2698012800 23 # 1 Jul 1985\n"
- "2776982400 24 # 1 Jan 1988\n"
- "2840140800 25 # 1 Jan 1990\n"
- "2871676800 26 # 1 Jan 1991\n"
- "2918937600 27 # 1 Jul 1992\n"
- "2950473600 28 # 1 Jul 1993\n"
- "2982009600 29 # 1 Jul 1994\n"
- "3029443200 30 # 1 Jan 1996\n"
- "3076704000 31 # 1 Jul 1997\n"
- "3124137600 32 # 1 Jan 1999\n"
- "3345062400 33 # 1 Jan 2006\n"
- "3439756800 32 # 1 Jan 2009\n"
- "3550089600 33 # 1 Jul 2012\n"
- "#\n";
-
-// short table with good hash
-static const char leap_ghash [] =
- "#\n"
- "#@ 3610569600\n"
- "#$ 3610566000\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- "#\n"
- "#h 4b304e10 95642b3f c10b91f9 90791725 25f280d0\n"
- "#\n";
-
-// short table with bad hash
-static const char leap_bhash [] =
- "#\n"
- "#@ 3610569600\n"
- "#$ 3610566000\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- "#\n"
- "#h dc2e6b0b 5aade95d a0587abd 4e0dacb4 e4d5049e\n"
- "#\n";
-
-// short table with malformed hash
-static const char leap_mhash [] =
- "#\n"
- "#@ 3610569600\n"
- "#$ 3610566000\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- "#\n"
- "#h f2349a02 788b9534 a8f2e141 f2029Q6d 4064a7ee\n"
- "#\n";
-
-// short table with only 4 hash groups
-static const char leap_shash [] =
- "#\n"
- "#@ 3610569600\n"
- "#$ 3610566000\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- "#\n"
- "#h f2349a02 788b9534 a8f2e141 f2029Q6d\n"
- "#\n";
-
-// table with good hash and truncated/missing leading zeros
-static const char leap_gthash [] = {
- "#\n"
- "#$ 3535228800\n"
- "#\n"
- "# Updated through IERS Bulletin C46\n"
- "# File expires on: 28 June 2014\n"
- "#\n"
- "#@ 3612902400\n"
- "#\n"
- "2272060800 10 # 1 Jan 1972\n"
- "2287785600 11 # 1 Jul 1972\n"
- "2303683200 12 # 1 Jan 1973\n"
- "2335219200 13 # 1 Jan 1974\n"
- "2366755200 14 # 1 Jan 1975\n"
- "2398291200 15 # 1 Jan 1976\n"
- "2429913600 16 # 1 Jan 1977\n"
- "2461449600 17 # 1 Jan 1978\n"
- "2492985600 18 # 1 Jan 1979\n"
- "2524521600 19 # 1 Jan 1980\n"
- "2571782400 20 # 1 Jul 1981\n"
- "2603318400 21 # 1 Jul 1982\n"
- "2634854400 22 # 1 Jul 1983\n"
- "2698012800 23 # 1 Jul 1985\n"
- "2776982400 24 # 1 Jan 1988\n"
- "2840140800 25 # 1 Jan 1990\n"
- "2871676800 26 # 1 Jan 1991\n"
- "2918937600 27 # 1 Jul 1992\n"
- "2950473600 28 # 1 Jul 1993\n"
- "2982009600 29 # 1 Jul 1994\n"
- "3029443200 30 # 1 Jan 1996\n"
- "3076704000 31 # 1 Jul 1997\n"
- "3124137600 32 # 1 Jan 1999\n"
- "3345062400 33 # 1 Jan 2006\n"
- "3439756800 34 # 1 Jan 2009\n"
- "3550089600 35 # 1 Jul 2012\n"
- "#\n"
- "#h 1151a8f e85a5069 9000fcdb 3d5e5365 1d505b37"
-};
-
-static const uint32_t lsec2006 = 3345062400u; // +33, 1 Jan 2006, 00:00:00 utc
-static const uint32_t lsec2009 = 3439756800u; // +34, 1 Jan 2009, 00:00:00 utc
-static const uint32_t lsec2012 = 3550089600u; // +35, 1 Jul 2012, 00:00:00 utc
-static const uint32_t lsec2015 = 3644697600u; // +36, 1 Jul 2015, 00:00:00 utc
-
-int stringreader(void* farg)
-{
- const char ** cpp = (const char**)farg;
-
- if (**cpp)
- return *(*cpp)++;
- else
- return EOF;
-}
-
-static int/*BOOL*/
-setup_load_table(
- const char * cp,
- int blim)
-{
- int rc;
- leap_table_t * pt = leapsec_get_table(0);
-
- rc = (pt != NULL) && leapsec_load(pt, stringreader, &cp, blim);
- rc = rc && leapsec_set_table(pt);
- return rc;
-}
-
-static int/*BOOL*/
-setup_clear_table(void)
-{
- int rc;
- leap_table_t * pt = leapsec_get_table(0);
-
- if (pt)
- leapsec_clear(pt);
- rc = leapsec_set_table(pt);
- return rc;
-}
-
-
-char *
-CalendarToString(const struct calendar cal)
-{
- char * ss = malloc (sizeof (char) * 100);
- char buffer[100] ="";
-
- *ss = '\0';
- sprintf(buffer, "%u", cal.year);
- strcat(ss,buffer);
- strcat(ss,"-");
- sprintf(buffer, "%u", (u_int)cal.month);
- strcat(ss,buffer);
- strcat(ss,"-");
- sprintf(buffer, "%u", (u_int)cal.monthday);
- strcat(ss,buffer);
- strcat(ss," (");
- sprintf(buffer, "%u", (u_int) cal.yearday);
- strcat(ss,buffer);
- strcat(ss,") ");
- sprintf(buffer, "%u", (u_int)cal.hour);
- strcat(ss,buffer);
- strcat(ss,":");
- sprintf(buffer, "%u", (u_int)cal.minute);
- strcat(ss,buffer);
- strcat(ss,":");
- sprintf(buffer, "%u", (u_int)cal.second);
- strcat(ss,buffer);
- //ss << cal.year << "-" << (u_int)cal.month << "-" << (u_int)cal.monthday << " (" << cal.yearday << ") " << (u_int)cal.hour << ":" << (u_int)cal.minute << ":" << (u_int)cal.second;
- return ss;
-}
-
-
-int
-IsEqual(const struct calendar expected, const struct calendar actual)
-{
-
- if ( expected.year == actual.year
- && ( expected.yearday == actual.yearday
- || ( expected.month == actual.month
- && expected.monthday == actual.monthday))
- && expected.hour == actual.hour
- && expected.minute == actual.minute
- && expected.second == actual.second) {
- return TRUE;
- } else {
- char *p_exp = CalendarToString(expected);
- char *p_act = CalendarToString(actual);
-
- printf("expected: %s but was %s", p_exp, p_act);
-
- free(p_exp);
- free(p_act);
- return FALSE;
- }
-}
-
-//-------------------------
-
-void
-setUp(void)
-{
- ntpcal_set_timefunc(timefunc);
- settime(1970, 1, 1, 0, 0, 0);
- leapsec_ut_pristine();
-
- return;
-}
-
-void
-tearDown(void)
-{
- ntpcal_set_timefunc(NULL);
- return;
-}
-
-// =====================================================================
-// VALIDATION TESTS
-// =====================================================================
-
-// ----------------------------------------------------------------------
-void
-test_ValidateGood(void)
-{
- const char *cp = leap_ghash;
- int rc = leapsec_validate(stringreader, &cp);
-
- TEST_ASSERT_EQUAL(LSVALID_GOODHASH, rc);
- return;
-}
-
-// ----------------------------------------------------------------------
-void
-test_ValidateNoHash(void)
-{
- const char *cp = leap2;
- int rc = leapsec_validate(stringreader, &cp);
-
- TEST_ASSERT_EQUAL(LSVALID_NOHASH, rc);
- return;
-}
-
-// ----------------------------------------------------------------------
-void
-test_ValidateBad(void)
-{
- const char *cp = leap_bhash;
- int rc = leapsec_validate(stringreader, &cp);
-
- TEST_ASSERT_EQUAL(LSVALID_BADHASH, rc);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-void
-test_ValidateMalformed(void)
-{
- const char *cp = leap_mhash;
- int rc = leapsec_validate(stringreader, &cp);
-
- TEST_ASSERT_EQUAL(LSVALID_BADFORMAT, rc);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-void
-test_ValidateMalformedShort(void)
-{
- const char *cp = leap_shash;
- int rc = leapsec_validate(stringreader, &cp);
-
- TEST_ASSERT_EQUAL(LSVALID_BADFORMAT, rc);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-void
-test_ValidateNoLeadZero(void)
-{
- const char *cp = leap_gthash;
- int rc = leapsec_validate(stringreader, &cp);
-
- TEST_ASSERT_EQUAL(LSVALID_GOODHASH, rc);
-
- return;
-}
-
-// =====================================================================
-// BASIC FUNCTIONS
-// =====================================================================
-
-// ----------------------------------------------------------------------
-// test table selection
-void
-test_tableSelect(void)
-{
- leap_table_t *pt1, *pt2, *pt3, *pt4;
-
- pt1 = leapsec_get_table(0);
- pt2 = leapsec_get_table(0);
- TEST_ASSERT_EQUAL_MESSAGE(pt1, pt2,"first");
-
- pt1 = leapsec_get_table(1);
- pt2 = leapsec_get_table(1);
- TEST_ASSERT_EQUAL_MESSAGE(pt1, pt2,"second");
-
- pt1 = leapsec_get_table(1);
- pt2 = leapsec_get_table(0);
- TEST_ASSERT_NOT_EQUAL(pt1, pt2);
-
- pt1 = leapsec_get_table(0);
- pt2 = leapsec_get_table(1);
- TEST_ASSERT_NOT_EQUAL(pt1, pt2);
-
- leapsec_set_table(pt1);
- pt2 = leapsec_get_table(0);
- pt3 = leapsec_get_table(1);
- TEST_ASSERT_EQUAL(pt1, pt2);
- TEST_ASSERT_NOT_EQUAL(pt2, pt3);
-
- pt1 = pt3;
- leapsec_set_table(pt1);
- pt2 = leapsec_get_table(0);
- pt3 = leapsec_get_table(1);
- TEST_ASSERT_EQUAL(pt1, pt2);
- TEST_ASSERT_NOT_EQUAL(pt2, pt3);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// load file & check expiration
-
-void
-test_loadFileExpire(void)
-{
- const char *cp = leap1;
- int rc;
- leap_table_t * pt = leapsec_get_table(0);
-
- rc = leapsec_load(pt, stringreader, &cp, FALSE)
- && leapsec_set_table(pt);
- TEST_ASSERT_EQUAL_MESSAGE(1, rc,"first");
- rc = leapsec_expired(3439756800u, NULL);
- TEST_ASSERT_EQUAL(0, rc);
- rc = leapsec_expired(3610569601u, NULL);
- TEST_ASSERT_EQUAL(1, rc);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// load file & check time-to-live
-
-void
-test_loadFileTTL(void)
-{
- const char *cp = leap1;
- int rc;
- leap_table_t * pt = leapsec_get_table(0);
- time_t pivot = 0x70000000u;
- const uint32_t limit = 3610569600u;
-
- rc = leapsec_load(pt, stringreader, &cp, FALSE)
- && leapsec_set_table(pt);
- TEST_ASSERT_EQUAL(1, rc); //
-
- // exactly 1 day to live
- rc = leapsec_daystolive(limit - 86400, &pivot);
- TEST_ASSERT_EQUAL( 1, rc);
- // less than 1 day to live
- rc = leapsec_daystolive(limit - 86399, &pivot);
- TEST_ASSERT_EQUAL( 0, rc);
- // hit expiration exactly
- rc = leapsec_daystolive(limit, &pivot);
- TEST_ASSERT_EQUAL( 0, rc);
- // expired since 1 sec
- rc = leapsec_daystolive(limit + 1, &pivot);
- TEST_ASSERT_EQUAL(-1, rc);
-
- return;
-}
-
-// =====================================================================
-// RANDOM QUERY TESTS
-// =====================================================================
-
-// ----------------------------------------------------------------------
-// test query in pristine state (bug#2745 misbehaviour)
-void
-test_lsQueryPristineState(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = leapsec_query(&qr, lsec2012, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// ad-hoc jump: leap second at 2009.01.01 -60days
-void
-test_ls2009faraway(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- // test 60 days before leap. Nothing scheduled or indicated.
- rc = leapsec_query(&qr, lsec2009 - 60*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(33, qr.tai_offs);
- TEST_ASSERT_EQUAL(0, qr.tai_diff);
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// ad-hoc jump: leap second at 2009.01.01 -1week
-void
-test_ls2009weekaway(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- // test 7 days before leap. Leap scheduled, but not yet indicated.
- rc = leapsec_query(&qr, lsec2009 - 7*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(33, qr.tai_offs);
- TEST_ASSERT_EQUAL(1, qr.tai_diff);
- TEST_ASSERT_EQUAL(LSPROX_SCHEDULE, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// ad-hoc jump: leap second at 2009.01.01 -1hr
-void
-test_ls2009houraway(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- // test 1 hour before leap. 61 true seconds to go.
- rc = leapsec_query(&qr, lsec2009 - SECSPERHR, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(33, qr.tai_offs);
- TEST_ASSERT_EQUAL(1, qr.tai_diff);
- TEST_ASSERT_EQUAL(LSPROX_ANNOUNCE, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// ad-hoc jump: leap second at 2009.01.01 -1sec
-void
-test_ls2009secaway(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- // test 1 second before leap (last boundary...) 2 true seconds to go.
- rc = leapsec_query(&qr, lsec2009 - 1, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(33, qr.tai_offs);
- TEST_ASSERT_EQUAL(1, qr.tai_diff);
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// ad-hoc jump to leap second at 2009.01.01
-void
-test_ls2009onspot(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- // test on-spot: treat leap second as already gone.
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(34, qr.tai_offs);
- TEST_ASSERT_EQUAL(0, qr.tai_diff);
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// test handling of the leap second at 2009.01.01 without table
-void
-test_ls2009nodata(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_clear_table();
- TEST_ASSERT_EQUAL(1, rc);
-
- // test on-spot with empty table
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.tai_offs);
- TEST_ASSERT_EQUAL(0, qr.tai_diff);
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// test handling of the leap second at 2009.01.01 with culled data
-void
-test_ls2009limdata(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1, TRUE);
- TEST_ASSERT_EQUAL(1, rc);
-
- // test on-spot with limited table - this is tricky.
- // The table used ends 2012; depending on the build date, the 2009 entry
- // might be included or culled. The resulting TAI offset must be either
- // 34 or 35 seconds, depending on the build date of the test.
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_TRUE(34 <= qr.tai_offs);
- TEST_ASSERT_TRUE(35 >= qr.tai_offs);
- TEST_ASSERT_EQUAL(0, qr.tai_diff);
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// Far-distance forward jump into a transiton window.
-void
-test_qryJumpFarAhead(void)
-{
- int rc;
- leap_result_t qr;
- int last, idx;
- int mode;
-
- for (mode=0; mode < 2; ++mode) {
- leapsec_ut_pristine();
- rc = setup_load_table(leap1, FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- leapsec_electric(mode);
-
- rc = leapsec_query(&qr, lsec2006, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-
- rc = leapsec_query(&qr, lsec2012, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- }
-}
-
-// ----------------------------------------------------------------------
-// Forward jump into the next transition window
-void test_qryJumpAheadToTransition(void) {
- int rc;
- leap_result_t qr;
- int last, idx;
- int mode;
-
- for (mode=0; mode < 2; ++mode) {
- leapsec_ut_pristine();
- rc = setup_load_table(leap1, FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- leapsec_electric(mode);
-
- rc = leapsec_query(&qr, lsec2009-SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-
- rc = leapsec_query(&qr, lsec2009+1, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- }
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// Forward jump over the next transition window
-void
-test_qryJumpAheadOverTransition(void)
-{
- int rc;
- leap_result_t qr;
- int last, idx;
- int mode;
-
- for (mode=0; mode < 2; ++mode) {
- leapsec_ut_pristine();
- rc = setup_load_table(leap1, FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- leapsec_electric(mode);
-
- rc = leapsec_query(&qr, lsec2009-SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-
- rc = leapsec_query(&qr, lsec2009+5, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- }
-
- return;
-}
-
-// =====================================================================
-// TABLE MODIFICATION AT RUNTIME
-// =====================================================================
-
-// ----------------------------------------------------------------------
-// add dynamic leap second (like from peer/clock)
-void
-test_addDynamic(void)
-{
- int rc;
- leap_result_t qr;
-
- static const uint32_t insns[] = {
- 2982009600u, // 29 # 1 Jul 1994
- 3029443200u, // 30 # 1 Jan 1996
- 3076704000u, // 31 # 1 Jul 1997
- 3124137600u, // 32 # 1 Jan 1999
- 3345062400u, // 33 # 1 Jan 2006
- 3439756800u, // 34 # 1 Jan 2009
- 3550089600u, // 35 # 1 Jul 2012
- 0 // sentinel
- };
-
- rc = setup_load_table(leap2, FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- int idx;
-
- for (idx=1; insns[idx]; ++idx) {
- rc = leapsec_add_dyn(TRUE, insns[idx] - 20*SECSPERDAY - 100, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- }
- // try to slip in a previous entry
- rc = leapsec_add_dyn(TRUE, insns[0] - 20*SECSPERDAY - 100, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- //leap_table_t * pt = leapsec_get_table(0);
- //leapsec_dump(pt, (leapsec_dumper)fprintf, stdout);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// add fixed leap seconds (like from network packet)
-#if 0 /* currently unused -- possibly revived later */
-void
-FAILtest_addFixed(void)
-{
- int rc;
- leap_result_t qr;
-
- static const struct { uint32_t tt; int of; } insns[] = {
- {2982009600u, 29},// # 1 Jul 1994
- {3029443200u, 30},// # 1 Jan 1996
- {3076704000u, 31},// # 1 Jul 1997
- {3124137600u, 32},// # 1 Jan 1999
- {3345062400u, 33},// # 1 Jan 2006
- {3439756800u, 34},// # 1 Jan 2009
- {3550089600u, 35},// # 1 Jul 2012
- {0,0} // sentinel
- };
-
- rc = setup_load_table(leap2, FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- int idx;
- // try to get in BAD time stamps...
- for (idx=0; insns[idx].tt; ++idx) {
- rc = leapsec_add_fix(
- insns[idx].of,
- insns[idx].tt - 20*SECSPERDAY - 100,
- insns[idx].tt + SECSPERDAY,
- NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- }
- // now do it right
- for (idx=0; insns[idx].tt; ++idx) {
- rc = leapsec_add_fix(
- insns[idx].of,
- insns[idx].tt,
- insns[idx].tt + SECSPERDAY,
- NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- }
- // try to slip in a previous entry
- rc = leapsec_add_fix(
- insns[0].of,
- insns[0].tt,
- insns[0].tt + SECSPERDAY,
- NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- //leap_table_t * pt = leapsec_get_table(0);
- //leapsec_dump(pt, (leapsec_dumper)fprintf, stdout);
-
- return;
-}
-#endif
-
-// ----------------------------------------------------------------------
-// add fixed leap seconds (like from network packet)
-#if 0 /* currently unused -- possibly revived later */
-void
-FAILtest_addFixedExtend(void)
-{
- int rc;
- leap_result_t qr;
- int last, idx;
-
- static const struct { uint32_t tt; int of; } insns[] = {
- {2982009600u, 29},// # 1 Jul 1994
- {3029443200u, 30},// # 1 Jan 1996
- {0,0} // sentinel
- };
-
- rc = setup_load_table(leap2, FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- for (last=idx=0; insns[idx].tt; ++idx) {
- last = idx;
- rc = leapsec_add_fix(
- insns[idx].of,
- insns[idx].tt,
- insns[idx].tt + SECSPERDAY,
- NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- }
-
- // try to extend the expiration of the last entry
- rc = leapsec_add_fix(
- insns[last].of,
- insns[last].tt,
- insns[last].tt + 128*SECSPERDAY,
- NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
-
- // try to extend the expiration of the last entry with wrong offset
- rc = leapsec_add_fix(
- insns[last].of+1,
- insns[last].tt,
- insns[last].tt + 129*SECSPERDAY,
- NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- //leap_table_t * pt = leapsec_get_table(FALSE);
- //leapsec_dump(pt, (leapsec_dumper)fprintf, stdout);
-
- return;
-}
-#endif
-
-// ----------------------------------------------------------------------
-// add fixed leap seconds (like from network packet) in an otherwise
-// empty table and test queries before / between /after the tabulated
-// values.
-#if 0 /* currently unused -- possibly revived later */
-void
-FAILtest_setFixedExtend(void)
-{
- int rc;
- leap_result_t qr;
- int last, idx;
-
- static const struct { uint32_t tt; int of; } insns[] = {
- {2982009600u, 29},// # 1 Jul 1994
- {3029443200u, 30},// # 1 Jan 1996
- {0,0} // sentinel
- };
-
- for (last=idx=0; insns[idx].tt; ++idx) {
- last = idx;
- rc = leapsec_add_fix(
- insns[idx].of,
- insns[idx].tt,
- insns[idx].tt + 128*SECSPERDAY,
- NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- }
-
- rc = leapsec_query(&qr, insns[0].tt - 86400, NULL);
- TEST_ASSERT_EQUAL(28, qr.tai_offs);
-
- rc = leapsec_query(&qr, insns[0].tt + 86400, NULL);
- TEST_ASSERT_EQUAL(29, qr.tai_offs);
-
- rc = leapsec_query(&qr, insns[1].tt - 86400, NULL);
- TEST_ASSERT_EQUAL(29, qr.tai_offs);
-
- rc = leapsec_query(&qr, insns[1].tt + 86400, NULL);
- TEST_ASSERT_EQUAL(30, qr.tai_offs);
-
- //leap_table_t * pt = leapsec_get_table(0);
- //leapsec_dump(pt, (leapsec_dumper)fprintf, stdout);
-
- return;
-}
-#endif
-
-// =====================================================================
-// AUTOKEY LEAP TRANSFER TESTS
-// =====================================================================
-
-// ----------------------------------------------------------------------
-// Check if the offset can be applied to an empty table ONCE
-void test_taiEmptyTable(void) {
- int rc;
-
- rc = leapsec_autokey_tai(35, lsec2015-30*86400, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
-
- rc = leapsec_autokey_tai(35, lsec2015-29*86400, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-}
-
-// ----------------------------------------------------------------------
-// Check that with fixed entries the operation fails
-void
-test_taiTableFixed(void)
-{
- int rc;
-
- rc = setup_load_table(leap1, FALSE);
- TEST_ASSERT_EQUAL(1, rc);
-
- rc = leapsec_autokey_tai(35, lsec2015-30*86400, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// test adjustment with a dynamic entry already there
-void
-test_taiTableDynamic(void)
-{
- int rc;
- leap_era_t era;
-
- rc = leapsec_add_dyn(TRUE, lsec2015-20*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
-
- leapsec_query_era(&era, lsec2015-10, NULL);
- TEST_ASSERT_EQUAL(0, era.taiof);
- leapsec_query_era(&era, lsec2015+10, NULL);
- TEST_ASSERT_EQUAL(1, era.taiof);
-
- rc = leapsec_autokey_tai(35, lsec2015-19*86400, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
-
- rc = leapsec_autokey_tai(35, lsec2015-19*86400, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-
- leapsec_query_era(&era, lsec2015-10, NULL);
- TEST_ASSERT_EQUAL(35, era.taiof);
- leapsec_query_era(&era, lsec2015+10, NULL);
- TEST_ASSERT_EQUAL(36, era.taiof);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// test adjustment with a dynamic entry already there in dead zone
-void
-test_taiTableDynamicDeadZone(void)
-{
- int rc;
-
- rc = leapsec_add_dyn(TRUE, lsec2015-20*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
-
- rc = leapsec_autokey_tai(35, lsec2015-5, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-
- rc = leapsec_autokey_tai(35, lsec2015+5, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
-
- return;
-}
-
-
-// =====================================================================
-// SEQUENCE TESTS
-// =====================================================================
-
-// ----------------------------------------------------------------------
-// leap second insert at 2009.01.01, electric mode
-void
-test_ls2009seqInsElectric(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- leapsec_electric(1);
- TEST_ASSERT_EQUAL(1, leapsec_electric(-1));
-
- rc = leapsec_query(&qr, lsec2009 - 60*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 7*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_SCHEDULE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - SECSPERHR, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ANNOUNCE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 1, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- // second call, same time frame: no trigger!
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// leap second insert at 2009.01.01, dumb mode
-void
-test_ls2009seqInsDumb(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- TEST_ASSERT_EQUAL(0, leapsec_electric(-1));
-
- rc = leapsec_query(&qr, lsec2009 - 60*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 7*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_SCHEDULE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - SECSPERHR, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ANNOUNCE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 1, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009+1, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- TEST_ASSERT_EQUAL(-1, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- // second call, same time frame: no trigger!
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-
-// ----------------------------------------------------------------------
-// fake leap second remove at 2009.01.01, electric mode
-void
-test_ls2009seqDelElectric(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap3,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- leapsec_electric(1);
- TEST_ASSERT_EQUAL(1, leapsec_electric(-1));
-
- rc = leapsec_query(&qr, lsec2009 - 60*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 7*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_SCHEDULE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - SECSPERHR, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ANNOUNCE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 1, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- // second call, same time frame: no trigger!
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// fake leap second remove at 2009.01.01. dumb mode
-void
-test_ls2009seqDelDumb(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap3,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- TEST_ASSERT_EQUAL(0, leapsec_electric(-1));
-
- rc = leapsec_query(&qr, lsec2009 - 60*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 7*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_SCHEDULE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - SECSPERHR, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ANNOUNCE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 2, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2009 - 1, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- TEST_ASSERT_EQUAL(1, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- // second call, same time frame: no trigger!
- rc = leapsec_query(&qr, lsec2009, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// leap second insert at 2012.07.01, electric mode
-void
-test_ls2012seqInsElectric(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- leapsec_electric(1);
- TEST_ASSERT_EQUAL(1, leapsec_electric(-1));
-
- rc = leapsec_query(&qr, lsec2012 - 60*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2012 - 7*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_SCHEDULE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2012 - SECSPERHR, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ANNOUNCE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2012 - 1, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2012, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- // second call, same time frame: no trigger!
- rc = leapsec_query(&qr, lsec2012, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// leap second insert at 2012.07.01, dumb mode
-void
-test_ls2012seqInsDumb(void)
-{
- int rc;
- leap_result_t qr;
-
- rc = setup_load_table(leap1,FALSE);
- TEST_ASSERT_EQUAL(1, rc);
- TEST_ASSERT_EQUAL(0, leapsec_electric(-1));
-
- rc = leapsec_query(&qr, lsec2012 - 60*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2012 - 7*SECSPERDAY, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_SCHEDULE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2012 - SECSPERHR, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ANNOUNCE, qr.proximity);
-
- rc = leapsec_query(&qr, lsec2012 - 1, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- // This is just 1 sec before transition!
- rc = leapsec_query(&qr, lsec2012, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_ALERT, qr.proximity);
-
- // NOW the insert/backwarp must happen
- rc = leapsec_query(&qr, lsec2012+1, NULL);
- TEST_ASSERT_EQUAL(TRUE, rc);
- TEST_ASSERT_EQUAL(-1, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- // second call with transition time: no trigger!
- rc = leapsec_query(&qr, lsec2012, NULL);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// test repeated query on empty table in dumb mode
-void
-test_lsEmptyTableDumb(void)
-{
- int rc;
- leap_result_t qr;
-
- //const
- time_t pivot;
- pivot = lsec2012;
- // const
- //time_t pivot(lsec2012);
- const uint32_t t0 = lsec2012 - 10;
- const uint32_t tE = lsec2012 + 10;
-
- TEST_ASSERT_EQUAL(0, leapsec_electric(-1));
-
- uint32_t t;
- for (t = t0; t != tE; ++t) {
- rc = leapsec_query(&qr, t, &pivot);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
- }
-
- return;
-}
-
-// ----------------------------------------------------------------------
-// test repeated query on empty table in electric mode
-void
-test_lsEmptyTableElectric(void)
-{
- int rc;
- leap_result_t qr;
-
- leapsec_electric(1);
- TEST_ASSERT_EQUAL(1, leapsec_electric(-1));
-
- //const
- time_t pivot;//(lsec2012);
- pivot = lsec2012;
- const uint32_t t0 = lsec2012 - 10;
- const uint32_t tE = lsec2012 + 10;
-
- time_t t;
- for (t = t0; t != tE; ++t) {
- rc = leapsec_query(&qr, t, &pivot);
- TEST_ASSERT_EQUAL(FALSE, rc);
- TEST_ASSERT_EQUAL(0, qr.warped );
- TEST_ASSERT_EQUAL(LSPROX_NOWARN, qr.proximity);
- }
-
- return;
-}
diff --git a/contrib/ntp/tests/ntpd/ntp_prio_q.c b/contrib/ntp/tests/ntpd/ntp_prio_q.c
deleted file mode 100644
index 4b27157..0000000
--- a/contrib/ntp/tests/ntpd/ntp_prio_q.c
+++ /dev/null
@@ -1,263 +0,0 @@
-#include "config.h"
-
-#include "ntp.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-
-#include "ntp_prio_q.h"
-
-#include "unity.h"
-
-
-
-#include <string.h>
-/*
-TODO:
--fix the includes
--makefile: ntpdsim-ntp_prio_q.o - make sure it's okay
-*/
-
-
-/* helpers */
-
-typedef struct Element
-{
- char str[37]; // 37 seems like a nice candidate to break stuff
- int number;
-
-} element;
-
-int
-compare_elements(const void * e1, const void * e2)
-{
- return ((element*)e1)->number < ((element*)e2)->number;
-}
-
-/* tests */
-
-void
-test_AllocateDeallocateNode(void) {
- element* e_ptr = debug_get_node(sizeof(element));
- free_node(e_ptr);
-}
-
-
-void
-test_EmptyQueue(void) {
- queue* q = create_queue();
-
- TEST_ASSERT_NOT_NULL(q);
- TEST_ASSERT_TRUE(empty(q));
- TEST_ASSERT_NULL(queue_head(q));
- TEST_ASSERT_NULL(dequeue(q));
- TEST_ASSERT_EQUAL(0, get_no_of_elements(q));
-
- destroy_queue(q);
-}
-
-
-void
-test_OneElementQueue(void) {
- queue* q = create_queue();
-
- TEST_ASSERT_NOT_NULL(q);
-
- element e = {"string", 3};
- element* e_ptr = debug_get_node(sizeof(element));
- enqueue(q, e_ptr);
- *e_ptr = e;
-
- TEST_ASSERT_FALSE(empty(q));
- TEST_ASSERT_NOT_NULL(queue_head(q));
- TEST_ASSERT_EQUAL(1, get_no_of_elements(q));
-
- element* e_ptr_returned = dequeue(q);
-
- TEST_ASSERT_NOT_NULL(e_ptr_returned);
- TEST_ASSERT_EQUAL_STRING(e_ptr_returned->str, "string");
- TEST_ASSERT_EQUAL_PTR(e_ptr_returned, e_ptr);
- TEST_ASSERT_EQUAL(0, get_no_of_elements(q));
- TEST_ASSERT_TRUE(empty(q));
- TEST_ASSERT_NULL(dequeue(q));
-
- destroy_queue(q);
-}
-
-
-void
-test_MultipleElementQueue(void) {
- queue* q = create_queue();
-
- TEST_ASSERT_NOT_NULL(q);
-
- element *e1_ptr, *e2_ptr, *e3_ptr;
-
- e1_ptr = (element*)debug_get_node(sizeof(element));
- e2_ptr = (element*)debug_get_node(sizeof(element));
- e3_ptr = (element*)debug_get_node(sizeof(element));
-
- enqueue(q, e1_ptr);
- enqueue(q, e2_ptr);
- enqueue(q, e3_ptr);
-
- TEST_ASSERT_EQUAL(3, get_no_of_elements(q));
-
- dequeue(q);
- enqueue(q, e1_ptr);
-
- TEST_ASSERT_EQUAL(3, get_no_of_elements(q));
-
- dequeue(q);
- dequeue(q);
- enqueue(q, e3_ptr);
- enqueue(q, e2_ptr);
-
- TEST_ASSERT_EQUAL_PTR(dequeue(q), e1_ptr);
- TEST_ASSERT_EQUAL_PTR(dequeue(q), e3_ptr);
- TEST_ASSERT_EQUAL_PTR(dequeue(q), e2_ptr);
- TEST_ASSERT_EQUAL(0, get_no_of_elements(q));
- TEST_ASSERT_NULL(dequeue(q));
-
- destroy_queue(q);
-}
-
-
-void
-test_CustomOrderQueue(void) {
- queue* q = debug_create_priority_queue(compare_elements);
- element *e1_ptr, *e2_ptr, *e3_ptr, *e4_ptr, *e5_ptr, *e6_ptr;
-
- e1_ptr = (element*)debug_get_node(sizeof(element));
- e2_ptr = (element*)debug_get_node(sizeof(element));
- e3_ptr = (element*)debug_get_node(sizeof(element));
- e4_ptr = (element*)debug_get_node(sizeof(element));
- e5_ptr = (element*)debug_get_node(sizeof(element));
- e6_ptr = (element*)debug_get_node(sizeof(element));
-
- e1_ptr->number = 1;
- e2_ptr->number = 1;
- e3_ptr->number = 10;
- e4_ptr->number = 10;
- e5_ptr->number = 100;
- e6_ptr->number = 100;
-
- enqueue(q, e3_ptr);
- enqueue(q, e5_ptr);
- enqueue(q, e2_ptr);
- enqueue(q, e1_ptr);
- enqueue(q, e4_ptr);
- enqueue(q, e6_ptr);
-
- TEST_ASSERT_EQUAL(((element*)queue_head(q))->number, 100);
- TEST_ASSERT_EQUAL(((element*)dequeue(q))->number, 100);
-
- TEST_ASSERT_EQUAL(((element*)queue_head(q))->number, 100);
- TEST_ASSERT_EQUAL(((element*)dequeue(q))->number, 100);
-
- TEST_ASSERT_EQUAL(((element*)queue_head(q))->number, 10);
- TEST_ASSERT_EQUAL(((element*)dequeue(q))->number, 10);
-
- TEST_ASSERT_EQUAL(((element*)queue_head(q))->number, 10);
- TEST_ASSERT_EQUAL(((element*)dequeue(q))->number, 10);
-
- TEST_ASSERT_EQUAL(((element*)queue_head(q))->number, 1);
- TEST_ASSERT_EQUAL(((element*)dequeue(q))->number, 1);
-
- TEST_ASSERT_EQUAL(((element*)queue_head(q))->number, 1);
- TEST_ASSERT_EQUAL(((element*)dequeue(q))->number, 1);
-
- TEST_ASSERT_TRUE(empty(q));
-
- destroy_queue(q);
-
- free_node(e1_ptr);
- free_node(e2_ptr);
- free_node(e3_ptr);
- free_node(e4_ptr);
- free_node(e5_ptr);
- free_node(e6_ptr);
-}
-
-
-void
-test_DestroyNonEmptyQueue(void) {
- queue* q = create_queue();
- element *e1_ptr, *e2_ptr, *e3_ptr, *e4_ptr, *e5_ptr, *e6_ptr;
-
- e1_ptr = (element*)debug_get_node(sizeof(element));
- e2_ptr = (element*)debug_get_node(sizeof(element));
- e3_ptr = (element*)debug_get_node(sizeof(element));
- e4_ptr = (element*)debug_get_node(sizeof(element));
- e5_ptr = (element*)debug_get_node(sizeof(element));
- e6_ptr = (element*)debug_get_node(sizeof(element));
-
- enqueue(q, e3_ptr);
- enqueue(q, e2_ptr);
- enqueue(q, e4_ptr);
- enqueue(q, e1_ptr);
- enqueue(q, e6_ptr);
- enqueue(q, e5_ptr);
-
- destroy_queue(q);
-}
-
-void
-test_AppendQueues(void) {
- queue* q1 = create_queue();
- queue* q2 = create_queue();
- queue* q3 = create_queue();
- queue* q4 = create_queue();
- queue* q5 = create_queue();
-
- // append empty queue to empty queue
- append_queue(q1, q2); // destroys q2
-
- element *e1_ptr, *e2_ptr, *e3_ptr, *e4_ptr, *e5_ptr, *e6_ptr;
- e1_ptr = (element*)debug_get_node(sizeof(element));
- e2_ptr = (element*)debug_get_node(sizeof(element));
- e3_ptr = (element*)debug_get_node(sizeof(element));
- e4_ptr = (element*)debug_get_node(sizeof(element));
- e5_ptr = (element*)debug_get_node(sizeof(element));
- e6_ptr = (element*)debug_get_node(sizeof(element));
-
- enqueue(q1, e1_ptr);
- enqueue(q1, e2_ptr);
- enqueue(q1, e3_ptr);
-
-
- // append empty queue to non empty queue
- append_queue(q1, q3); // destroys q3
- TEST_ASSERT_EQUAL(3, get_no_of_elements(q1));
-
- // append non empty queue to empty queue
- append_queue(q4, q1); // destroys q1
- TEST_ASSERT_EQUAL(3, get_no_of_elements(q4));
-
- enqueue(q5, e4_ptr);
- enqueue(q5, e5_ptr);
-
- // append non empty queue to non empty queue
- append_queue(q4, q5); // destroys q5
- TEST_ASSERT_EQUAL(5, get_no_of_elements(q4));
-
- dequeue(q4);
- dequeue(q4);
- dequeue(q4);
- dequeue(q4);
- dequeue(q4);
-
- free_node(e1_ptr);
- free_node(e2_ptr);
- free_node(e3_ptr);
- free_node(e4_ptr);
- free_node(e5_ptr);
- free_node(e6_ptr);
-
- TEST_ASSERT_EQUAL(0, get_no_of_elements(q4));
-
- // destroy_queue(q1); // destroyed already
- // destroy_queue(q2); // destroyed already
- // destroy_queue(q3); // destroyed already
- destroy_queue(q4);
- // destroy_queue(q5); // destroyed already
-}
diff --git a/contrib/ntp/tests/ntpd/ntp_restrict.c b/contrib/ntp/tests/ntpd/ntp_restrict.c
deleted file mode 100644
index 08d236e..0000000
--- a/contrib/ntp/tests/ntpd/ntp_restrict.c
+++ /dev/null
@@ -1,199 +0,0 @@
-#include "config.h"
-
-#include "ntpd.h"
-#include "ntp_lists.h"
-
-#include "unity.h"
-
-/* Helper functions */
-
-sockaddr_u
-create_sockaddr_u(short sin_family, unsigned short sin_port, char* ip_addr) {
- sockaddr_u sockaddr;
-
- sockaddr.sa4.sin_family = AF_INET;
- sockaddr.sa4.sin_port = htons(sin_port);
- memset(sockaddr.sa4.sin_zero, 0, 8);
- sockaddr.sa4.sin_addr.s_addr = inet_addr(ip_addr);
-
- return sockaddr;
-}
-
-
-void
-setUp(void) {
- init_restrict();
-}
-
-
-void
-tearDown(void) {
- restrict_u *empty_restrict = malloc(sizeof(restrict_u));
- memset(empty_restrict, 0, sizeof(restrict_u));
-
- restrict_u *current;
-
- do {
- UNLINK_HEAD_SLIST(current, restrictlist4, link);
- if (current != NULL)
- {
- *current = *empty_restrict;
- }
- } while (current != NULL);
-
- do {
- UNLINK_HEAD_SLIST(current, restrictlist6, link);
- if (current != NULL)
- {
- *current = *empty_restrict;
- }
- } while (current != NULL);
-
- free(empty_restrict);
-}
-
-
-/* Tests */
-
-
-void
-test_RestrictionsAreEmptyAfterInit(void) {
-
- restrict_u *rl4 = malloc(sizeof(restrict_u));
- restrict_u *rl6 = malloc(sizeof(restrict_u));
-
- memset(rl4, 0, sizeof(restrict_u));
- memset(rl6, 0, sizeof(restrict_u));
-
- TEST_ASSERT_EQUAL(rl4->count, restrictlist4->count);
- TEST_ASSERT_EQUAL(rl4->flags, restrictlist4->flags);
- TEST_ASSERT_EQUAL(rl4->mflags, restrictlist4->mflags);
- TEST_ASSERT_EQUAL(rl4->expire, restrictlist4->expire);
- TEST_ASSERT_EQUAL(rl4->u.v4.addr, restrictlist4->u.v4.addr);
- TEST_ASSERT_EQUAL(rl4->u.v4.mask, restrictlist4->u.v4.mask);
-
- TEST_ASSERT_EQUAL(rl6->count, restrictlist6->count);
- TEST_ASSERT_EQUAL(rl6->flags, restrictlist6->flags);
- TEST_ASSERT_EQUAL(rl6->mflags, restrictlist6->mflags);
- TEST_ASSERT_EQUAL(rl6->expire, restrictlist6->expire);
-
- free(rl4);
- free(rl6);
-}
-
-
-void
-test_ReturnsCorrectDefaultRestrictions(void) {
- sockaddr_u sockaddr = create_sockaddr_u(AF_INET,
- 54321, "63.161.169.137");
-
- u_short retval = restrictions(&sockaddr);
-
- TEST_ASSERT_EQUAL(0, retval);
-}
-
-
-void
-test_HackingDefaultRestriction(void) {
- /*
- * We change the flag of the default restriction,
- * and check if restriction() returns that flag
- */
-
- const u_short flags = 42;
-
- sockaddr_u resaddr = create_sockaddr_u(AF_INET,
- 54321, "0.0.0.0");
- sockaddr_u resmask = create_sockaddr_u(AF_INET,
- 54321, "0.0.0.0");
-
- hack_restrict(RESTRICT_FLAGS, &resaddr, &resmask, 0, flags, 0);
-
- sockaddr_u sockaddr = create_sockaddr_u(AF_INET,
- 54321, "111.123.251.124");
-
- TEST_ASSERT_EQUAL(flags, restrictions(&sockaddr));
-}
-
-
-void
-test_CantRemoveDefaultEntry(void) {
- sockaddr_u resaddr = create_sockaddr_u(AF_INET, 54321, "0.0.0.0");
- sockaddr_u resmask = create_sockaddr_u(AF_INET, 54321, "0.0.0.0");
-
- hack_restrict(RESTRICT_REMOVE, &resaddr, &resmask, 0, 0, 0);
-
- TEST_ASSERT_EQUAL(0, restrictions(&resaddr));
-}
-
-
-void
-test_AddingNewRestriction(void) {
- sockaddr_u resaddr = create_sockaddr_u(AF_INET, 54321, "11.22.33.44");
- sockaddr_u resmask = create_sockaddr_u(AF_INET, 54321, "128.0.0.0");
-
- const u_short flags = 42;
-
- hack_restrict(RESTRICT_FLAGS, &resaddr, &resmask, 0, flags, 0);
-
- TEST_ASSERT_EQUAL(flags, restrictions(&resaddr));
-}
-
-
-void
-test_TheMostFittingRestrictionIsMatched(void) {
- sockaddr_u resaddr_target = create_sockaddr_u(AF_INET, 54321, "11.22.33.44");
-
- sockaddr_u resaddr_not_matching = create_sockaddr_u(AF_INET, 54321, "11.99.33.44");
- sockaddr_u resmask_not_matching = create_sockaddr_u(AF_INET, 54321, "255.255.0.0");
-
- sockaddr_u resaddr_best_match = create_sockaddr_u(AF_INET, 54321, "11.22.30.20");
- sockaddr_u resmask_best_match = create_sockaddr_u(AF_INET, 54321, "255.255.0.0");
-
- /* it also matches, but we prefer the one above, as it's more specific */
- sockaddr_u resaddr_second_match = create_sockaddr_u(AF_INET, 54321, "11.99.33.44");
- sockaddr_u resmask_second_match = create_sockaddr_u(AF_INET, 54321, "255.0.0.0");
-
- hack_restrict(RESTRICT_FLAGS, &resaddr_not_matching, &resmask_not_matching, 0, 11, 0);
- hack_restrict(RESTRICT_FLAGS, &resaddr_best_match, &resmask_best_match, 0, 22, 0);
- hack_restrict(RESTRICT_FLAGS, &resaddr_second_match, &resmask_second_match, 0, 128, 0);
-
- TEST_ASSERT_EQUAL(22, restrictions(&resaddr_target));
-}
-
-
-void
-test_DeletedRestrictionIsNotMatched(void) {
- sockaddr_u resaddr_target = create_sockaddr_u(AF_INET, 54321, "11.22.33.44");
-
- sockaddr_u resaddr_not_matching = create_sockaddr_u(AF_INET, 54321, "11.99.33.44");
- sockaddr_u resmask_not_matching = create_sockaddr_u(AF_INET, 54321, "255.255.0.0");
-
- sockaddr_u resaddr_best_match = create_sockaddr_u(AF_INET, 54321, "11.22.30.20");
- sockaddr_u resmask_best_match = create_sockaddr_u(AF_INET, 54321, "255.255.0.0");
-
- sockaddr_u resaddr_second_match = create_sockaddr_u(AF_INET, 54321, "11.99.33.44");
- sockaddr_u resmask_second_match = create_sockaddr_u(AF_INET, 54321, "255.0.0.0");
-
- hack_restrict(RESTRICT_FLAGS, &resaddr_not_matching, &resmask_not_matching, 0, 11, 0);
- hack_restrict(RESTRICT_FLAGS, &resaddr_best_match, &resmask_best_match, 0, 22, 0);
- hack_restrict(RESTRICT_FLAGS, &resaddr_second_match, &resmask_second_match, 0, 128, 0);
-
- /* deleting the best match*/
- hack_restrict(RESTRICT_REMOVE, &resaddr_best_match, &resmask_best_match, 0, 22, 0);
-
- TEST_ASSERT_EQUAL(128, restrictions(&resaddr_target));
-}
-
-
-void
-test_RestrictUnflagWorks(void) {
- sockaddr_u resaddr = create_sockaddr_u(AF_INET, 54321, "11.22.30.20");
- sockaddr_u resmask = create_sockaddr_u(AF_INET, 54321, "255.255.0.0");
-
- hack_restrict(RESTRICT_FLAGS, &resaddr, &resmask, 0, 11, 0);
-
- hack_restrict(RESTRICT_UNFLAG, &resaddr, &resmask, 0, 10, 0);
-
- TEST_ASSERT_EQUAL(1, restrictions(&resaddr));
-}
diff --git a/contrib/ntp/tests/ntpd/rc_cmdlength.c b/contrib/ntp/tests/ntpd/rc_cmdlength.c
deleted file mode 100644
index dfe5316..0000000
--- a/contrib/ntp/tests/ntpd/rc_cmdlength.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "config.h"
-
-#include "ntp.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-#include "rc_cmdlength.h"
-
-#include "unity.h"
-
-#include <string.h>
-
-#include "test-libntp.h"
-
-
-void
-test_EvaluateCommandLength(void){
- size_t length, commandLength;
- const char *command1 = "Random Command";
- const char *command2 = "Random Command\t\t\n\t";
- const char *command3 = "Random\nCommand\t\t\n\t";
- const char *command4 = "Random Command\t\t\n\t1 2 3";
-
- length = strlen(command1);
- commandLength = remoteconfig_cmdlength(command1, command1+length);
- TEST_ASSERT_EQUAL(14, commandLength );
-
- length = strlen(command2);
- commandLength = remoteconfig_cmdlength(command2, command2+length);
- TEST_ASSERT_EQUAL(14, commandLength );
-
- length = strlen(command3);
- commandLength = remoteconfig_cmdlength(command3, command3+length);
- TEST_ASSERT_EQUAL(6, commandLength );
-
- length = strlen(command4);
- commandLength = remoteconfig_cmdlength(command4, command4+length);
- TEST_ASSERT_EQUAL(16, commandLength );
-
-}
diff --git a/contrib/ntp/tests/ntpd/run-leapsec.c b/contrib/ntp/tests/ntpd/run-leapsec.c
deleted file mode 100644
index 03b633e..0000000
--- a/contrib/ntp/tests/ntpd/run-leapsec.c
+++ /dev/null
@@ -1,122 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-#include "ntp_leapsec.h"
-#include "test-libntp.h"
-#include <string.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_ValidateGood(void);
-extern void test_ValidateNoHash(void);
-extern void test_ValidateBad(void);
-extern void test_ValidateMalformed(void);
-extern void test_ValidateMalformedShort(void);
-extern void test_ValidateNoLeadZero(void);
-extern void test_tableSelect(void);
-extern void test_loadFileExpire(void);
-extern void test_loadFileTTL(void);
-extern void test_lsQueryPristineState(void);
-extern void test_ls2009faraway(void);
-extern void test_ls2009weekaway(void);
-extern void test_ls2009houraway(void);
-extern void test_ls2009secaway(void);
-extern void test_ls2009onspot(void);
-extern void test_ls2009nodata(void);
-extern void test_ls2009limdata(void);
-extern void test_qryJumpFarAhead(void);
-extern void test_qryJumpAheadToTransition(void);
-extern void test_qryJumpAheadOverTransition(void);
-extern void test_addDynamic(void);
-extern void test_taiEmptyTable(void);
-extern void test_taiTableFixed(void);
-extern void test_taiTableDynamic(void);
-extern void test_taiTableDynamicDeadZone(void);
-extern void test_ls2009seqInsElectric(void);
-extern void test_ls2009seqInsDumb(void);
-extern void test_ls2009seqDelElectric(void);
-extern void test_ls2009seqDelDumb(void);
-extern void test_ls2012seqInsElectric(void);
-extern void test_ls2012seqInsDumb(void);
-extern void test_lsEmptyTableDumb(void);
-extern void test_lsEmptyTableElectric(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("leapsec.c");
- RUN_TEST(test_ValidateGood, 351);
- RUN_TEST(test_ValidateNoHash, 362);
- RUN_TEST(test_ValidateBad, 373);
- RUN_TEST(test_ValidateMalformed, 385);
- RUN_TEST(test_ValidateMalformedShort, 397);
- RUN_TEST(test_ValidateNoLeadZero, 409);
- RUN_TEST(test_tableSelect, 426);
- RUN_TEST(test_loadFileExpire, 466);
- RUN_TEST(test_loadFileTTL, 487);
- RUN_TEST(test_lsQueryPristineState, 522);
- RUN_TEST(test_ls2009faraway, 538);
- RUN_TEST(test_ls2009weekaway, 559);
- RUN_TEST(test_ls2009houraway, 580);
- RUN_TEST(test_ls2009secaway, 601);
- RUN_TEST(test_ls2009onspot, 622);
- RUN_TEST(test_ls2009nodata, 643);
- RUN_TEST(test_ls2009limdata, 664);
- RUN_TEST(test_qryJumpFarAhead, 689);
- RUN_TEST(test_qryJumpAheadToTransition, 712);
- RUN_TEST(test_qryJumpAheadOverTransition, 737);
- RUN_TEST(test_addDynamic, 767);
- RUN_TEST(test_taiEmptyTable, 961);
- RUN_TEST(test_taiTableFixed, 974);
- RUN_TEST(test_taiTableDynamic, 990);
- RUN_TEST(test_taiTableDynamicDeadZone, 1020);
- RUN_TEST(test_ls2009seqInsElectric, 1044);
- RUN_TEST(test_ls2009seqInsDumb, 1091);
- RUN_TEST(test_ls2009seqDelElectric, 1143);
- RUN_TEST(test_ls2009seqDelDumb, 1190);
- RUN_TEST(test_ls2012seqInsElectric, 1236);
- RUN_TEST(test_ls2012seqInsDumb, 1283);
- RUN_TEST(test_lsEmptyTableDumb, 1336);
- RUN_TEST(test_lsEmptyTableElectric, 1365);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/ntpd/run-ntp_prio_q.c b/contrib/ntp/tests/ntpd/run-ntp_prio_q.c
deleted file mode 100644
index 35af443..0000000
--- a/contrib/ntp/tests/ntpd/run-ntp_prio_q.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-#include "ntp_prio_q.h"
-#include <string.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_AllocateDeallocateNode(void);
-extern void test_EmptyQueue(void);
-extern void test_OneElementQueue(void);
-extern void test_MultipleElementQueue(void);
-extern void test_CustomOrderQueue(void);
-extern void test_DestroyNonEmptyQueue(void);
-extern void test_AppendQueues(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("ntp_prio_q.c");
- RUN_TEST(test_AllocateDeallocateNode, 39);
- RUN_TEST(test_EmptyQueue, 46);
- RUN_TEST(test_OneElementQueue, 60);
- RUN_TEST(test_MultipleElementQueue, 88);
- RUN_TEST(test_CustomOrderQueue, 126);
- RUN_TEST(test_DestroyNonEmptyQueue, 183);
- RUN_TEST(test_AppendQueues, 205);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/ntpd/run-ntp_restrict.c b/contrib/ntp/tests/ntpd/run-ntp_restrict.c
deleted file mode 100644
index d884462..0000000
--- a/contrib/ntp/tests/ntpd/run-ntp_restrict.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntpd.h"
-#include "ntp_lists.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_RestrictionsAreEmptyAfterInit(void);
-extern void test_ReturnsCorrectDefaultRestrictions(void);
-extern void test_HackingDefaultRestriction(void);
-extern void test_CantRemoveDefaultEntry(void);
-extern void test_AddingNewRestriction(void);
-extern void test_TheMostFittingRestrictionIsMatched(void);
-extern void test_DeletedRestrictionIsNotMatched(void);
-extern void test_RestrictUnflagWorks(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("ntp_restrict.c");
- RUN_TEST(test_RestrictionsAreEmptyAfterInit, 60);
- RUN_TEST(test_ReturnsCorrectDefaultRestrictions, 86);
- RUN_TEST(test_HackingDefaultRestriction, 97);
- RUN_TEST(test_CantRemoveDefaultEntry, 120);
- RUN_TEST(test_AddingNewRestriction, 131);
- RUN_TEST(test_TheMostFittingRestrictionIsMatched, 144);
- RUN_TEST(test_DeletedRestrictionIsNotMatched, 166);
- RUN_TEST(test_RestrictUnflagWorks, 190);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/ntpd/run-rc_cmdlength.c b/contrib/ntp/tests/ntpd/run-rc_cmdlength.c
deleted file mode 100644
index 927a45e..0000000
--- a/contrib/ntp/tests/ntpd/run-rc_cmdlength.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-#include "rc_cmdlength.h"
-#include "test-libntp.h"
-#include <string.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_EvaluateCommandLength(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("rc_cmdlength.c");
- RUN_TEST(test_EvaluateCommandLength, 16);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/ntpd/run-t-ntp_scanner.c b/contrib/ntp/tests/ntpd/run-t-ntp_scanner.c
deleted file mode 100644
index 62d3ed3..0000000
--- a/contrib/ntp/tests/ntpd/run-t-ntp_scanner.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* 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>
-#include "config.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_keywordIncorrectToken(void);
-extern void test_keywordServerToken(void);
-extern void test_DropUninitializedStack(void);
-extern void test_IncorrectlyInitializeLexStack(void);
-extern void test_InitializeLexStack(void);
-extern void test_PopEmptyStack(void);
-extern void test_IsInteger(void);
-extern void test_IsUint(void);
-extern void test_IsDouble(void);
-extern void test_SpecialSymbols(void);
-extern void test_EOC(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("t-ntp_scanner.c");
- RUN_TEST(test_keywordIncorrectToken, 21);
- RUN_TEST(test_keywordServerToken, 22);
- RUN_TEST(test_DropUninitializedStack, 23);
- RUN_TEST(test_IncorrectlyInitializeLexStack, 24);
- RUN_TEST(test_InitializeLexStack, 25);
- RUN_TEST(test_PopEmptyStack, 61);
- RUN_TEST(test_IsInteger, 69);
- RUN_TEST(test_IsUint, 87);
- RUN_TEST(test_IsDouble, 99);
- RUN_TEST(test_SpecialSymbols, 111);
- RUN_TEST(test_EOC, 120);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/ntpd/run-t-ntp_signd.c b/contrib/ntp/tests/ntpd/run-t-ntp_signd.c
deleted file mode 100644
index 5226f7f..0000000
--- a/contrib/ntp/tests/ntpd/run-t-ntp_signd.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* 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>
-#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);
-extern void test_connect_incorrect_socket(void);
-extern void test_connect_correct_socket(void);
-extern void test_write_all(void);
-extern void test_send_packet(void);
-extern void test_recv_packet(void);
-extern void test_send_via_ntp_signd(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("t-ntp_signd.c");
- RUN_TEST(test_connect_incorrect_socket, 67);
- RUN_TEST(test_connect_correct_socket, 68);
- RUN_TEST(test_write_all, 69);
- RUN_TEST(test_send_packet, 70);
- RUN_TEST(test_recv_packet, 71);
- RUN_TEST(test_send_via_ntp_signd, 72);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/ntpd/t-ntp_scanner.c b/contrib/ntp/tests/ntpd/t-ntp_scanner.c
deleted file mode 100644
index 862a2ee..0000000
--- a/contrib/ntp/tests/ntpd/t-ntp_scanner.c
+++ /dev/null
@@ -1,136 +0,0 @@
-#include "config.h"
-
-#include "unity.h"
-
-//#include <stdio.h>
-//#include <ctype.h>
-//#include <stdlib.h>
-//#include <errno.h>
-//#include <string.h>
-
-//#include "ntpd.h"
-//#include "ntp_config.h"
-//#include "ntpsim.h"
-//#include "ntp_scanner.h"
-//#include "ntp_parser.h"
-
-#include "ntp_scanner.c"
-/* ntp_keyword.h declares finite state machine and token text */
-//#include "ntp_keyword.h"
-
-void test_keywordIncorrectToken(void);
-void test_keywordServerToken(void);
-void test_DropUninitializedStack(void);
-void test_IncorrectlyInitializeLexStack(void);
-void test_InitializeLexStack(void);
-
-
-void test_keywordIncorrectToken(void){
- const char * temp = keyword(999);
- //printf("%s\n",temp);
- TEST_ASSERT_EQUAL_STRING("(keyword not found)",temp);
-}
-
-void test_keywordServerToken(void){
- const char * temp = keyword(T_Server);
- //printf("%s",temp); //143 or 401 ?
- TEST_ASSERT_EQUAL_STRING("server",temp);
-}
-
-void test_DropUninitializedStack(void){
- lex_drop_stack();
-}
-
-void test_IncorrectlyInitializeLexStack(void){
-
- TEST_ASSERT_FALSE(lex_init_stack(NULL,NULL));
- lex_drop_stack();
-}
-
-void test_InitializeLexStack(void){
-
- //Some sort of server is required for this to work.
- sockaddr_u * remote_addr;
- char origin[128] ={ "" } ;
- strcat(origin,"127.0.0.1");
- //snprintf(origin, sizeof(origin), "remote config from %s", stoa(remote_addr));
- TEST_ASSERT_TRUE(lex_init_stack(origin,NULL)); //path, mode -> NULL is ok!
- lex_drop_stack();
-}
-
-void test_PopEmptyStack(void){
- int temp = lex_pop_file();
-
- TEST_ASSERT_FALSE(temp);
-}
-
-
-
-void test_IsInteger(void){ //boolean
- int temp = is_integer("123");
- TEST_ASSERT_TRUE(temp);
- temp = is_integer("-999");
- TEST_ASSERT_TRUE(temp);
- temp = is_integer("0"); //what about -0?
- TEST_ASSERT_TRUE(temp);
- temp = is_integer("16.5");
- TEST_ASSERT_FALSE(temp);
- temp = is_integer("12ab");
- TEST_ASSERT_FALSE(temp);
- temp = is_integer("2147483647");
- TEST_ASSERT_TRUE(temp);
- temp = is_integer("2347483647"); //too big for signed int
- TEST_ASSERT_FALSE(temp);
-
-}
-
-void test_IsUint(void){
- int temp;
- temp = is_u_int("-123");
- TEST_ASSERT_FALSE(temp);
- temp = is_u_int("0");
- TEST_ASSERT_TRUE(temp); //-0 fails btw
- temp = is_u_int("2347483647"); //fits into u_int
- TEST_ASSERT_TRUE(temp);
- temp = is_u_int("112347483647"); //too big even for uint
- TEST_ASSERT_TRUE(temp);
-}
-
-void test_IsDouble(void){
- int temp;
- temp = is_double("0");
- TEST_ASSERT_TRUE(temp);
- temp = is_double("123");
- TEST_ASSERT_TRUE(temp);
- temp = is_double("123.45"); //DOESN'T WORK WITH 123,45, not sure if intented?
- TEST_ASSERT_TRUE(temp);
- temp = is_double("-123.45"); //DOESN'T WORK WITH 123,45, not sure if intented?
- TEST_ASSERT_TRUE(temp);
-}
-
-void test_SpecialSymbols(void){
- int temp ;
- temp = is_special('a');
- TEST_ASSERT_FALSE(temp);
- temp = is_special('?');
- TEST_ASSERT_FALSE(temp);
-
-}
-
-void test_EOC(void){
- int temp;
- if(old_config_style){
- temp = is_EOC('\n');
- TEST_ASSERT_TRUE(temp);
- }
- else {
- temp = is_EOC(';');
- TEST_ASSERT_TRUE(temp);
- }
- temp = is_EOC('A');
- TEST_ASSERT_FALSE(temp);
- temp = is_EOC('1');
- TEST_ASSERT_FALSE(temp);
-
-}
-
diff --git a/contrib/ntp/tests/ntpd/t-ntp_signd.c b/contrib/ntp/tests/ntpd/t-ntp_signd.c
deleted file mode 100644
index 40e7ac0..0000000
--- a/contrib/ntp/tests/ntpd/t-ntp_signd.c
+++ /dev/null
@@ -1,185 +0,0 @@
-#include "config.h"
-
-#include "ntp.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
-
-#include "unity.h"
-
-#include "test-libntp.h"
-
-
-#define HAVE_NTP_SIGND
-
-#include "ntp_signd.c"
-
-extern int ux_socket_connect(const char *name);
-
-
-//MOCKED FUNCTIONS
-
-//this connect function overrides/mocks connect() from <sys/socket.h>
-int
-connect(int socket, const struct sockaddr *address, socklen_t address_len)
-{
- return 1;
-}
-
-/*
-** Mocked read() and write() calls.
-**
-** These will only operate 4 bytes at a time.
-**
-** This is so write_all can be properly tested.
-*/
-
-static char rw_buf[4];
-
-ssize_t
-write(int fd, void const * buf, size_t len)
-{
- REQUIRE(0 <= len);
- if (len >= 4) len = 4; /* 4 bytes, max */
- (void)memcpy(rw_buf, buf, len);
-
- return len;
-}
-
-ssize_t
-read(int fd, void * buf, size_t len)
-{
- REQUIRE(0 <= len);
- if (len >= 4) len = 4;
- (void)memcpy(buf, rw_buf, len);
- return len;
-}
-
-
-//END OF MOCKED FUNCTIONS
-
-static int
-isGE(int a,int b)
-{
- if (a >= b) {return 1;}
- else {return 0;}
-}
-
-extern void test_connect_incorrect_socket(void);
-extern void test_connect_correct_socket(void);
-extern void test_write_all(void);
-extern void test_send_packet(void);
-extern void test_recv_packet(void);
-extern void test_send_via_ntp_signd(void);
-
-
-void
-test_connect_incorrect_socket(void)
-{
- TEST_ASSERT_EQUAL(-1, ux_socket_connect(NULL));
-
- return;
-}
-
-void
-test_connect_correct_socket(void)
-{
- int temp = ux_socket_connect("/socket");
-
- //risky, what if something is listening on :123, or localhost isnt 127.0.0.1?
- //TEST_ASSERT_EQUAL(-1, ux_socket_connect("127.0.0.1:123"));
-
- //printf("%d\n",temp);
- TEST_ASSERT_TRUE(isGE(temp,0));
-
- //write_all();
- //char *socketName = "Random_Socket_Name";
- //int length = strlen(socketName);
-
- return;
-}
-
-
-void
-test_write_all(void)
-{
- int fd = ux_socket_connect("/socket");
-
- TEST_ASSERT_TRUE(isGE(fd, 0));
-
- char * str = "TEST123";
- int temp = write_all(fd, str,strlen(str));
- TEST_ASSERT_EQUAL(strlen(str), temp);
-
- (void)close(fd);
- return;
-}
-
-
-void
-test_send_packet(void)
-{
- int fd = ux_socket_connect("/socket");
-
- TEST_ASSERT_TRUE(isGE(fd, 0));
-
- char * str2 = "PACKET12345";
- int temp = send_packet(fd, str2, strlen(str2));
-
- TEST_ASSERT_EQUAL(0,temp);
-
- (void)close(fd);
- return;
-}
-
-
-/*
-** HMS: What's going on here?
-** Looks like this needs more work.
-*/
-void
-test_recv_packet(void)
-{
-#if 0
- int fd = ux_socket_connect("/socket");
-
- TEST_ASSERT_TRUE(isGE(fd, 0));
-
- uint32_t size = 256;
- char *str = NULL;
- int temp = recv_packet(fd, &str, &size);
-
- send_packet(fd, str, strlen(str));
- free(str);
- TEST_ASSERT_EQUAL(0,temp); //0 because nobody sent us anything (yet!)
-
- (void)close(fd);
-#else
- TEST_IGNORE_MESSAGE("test_recv_packet() needs work");
-#endif
- return;
-}
-
-void
-test_send_via_ntp_signd(void)
-{
- struct recvbuf *rbufp = (struct recvbuf *) malloc(sizeof(struct recvbuf));
- int xmode = 1;
- keyid_t xkeyid = 12345;
- int flags = 0;
- struct pkt *xpkt = (struct pkt *) malloc(sizeof(struct pkt)); //defined in ntp.h
-
- TEST_ASSERT_NOT_NULL(rbufp);
- TEST_ASSERT_NOT_NULL(xpkt);
- memset(xpkt, 0, sizeof(struct pkt));
-
- //send_via_ntp_signd(NULL,NULL,NULL,NULL,NULL); //doesn't work
- /*
- ** Send the xpkt to Samba, read the response back in rbufp
- */
- send_via_ntp_signd(rbufp,xmode,xkeyid,flags,xpkt);
-
- free(rbufp);
- free(xpkt);
-
- return;
-}
diff --git a/contrib/ntp/tests/ntpq/Makefile.am b/contrib/ntp/tests/ntpq/Makefile.am
deleted file mode 100644
index 136b8f3..0000000
--- a/contrib/ntp/tests/ntpq/Makefile.am
+++ /dev/null
@@ -1,97 +0,0 @@
-NULL =
-BUILT_SOURCES =
-CLEANFILES =
-
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-check_PROGRAMS = \
- test-ntpq \
- $(NULL)
-
-LDADD = \
- $(top_builddir)/ntpq/libntpq.a \
- $(top_builddir)/ntpd/libntpd.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-unity_tests_LDADD = \
- $(LDADD) \
- $(top_builddir)/sntp/unity/libunity.a \
- $(LIBM) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-AM_CPPFLAGS = $(NTP_INCS)
-AM_CPPFLAGS += -I$(top_srcdir)/ntpq
-AM_CPPFLAGS += $(CPPFLAGS_NTP)
-AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-AM_CPPFLAGS += $(LIBOPTS_CFLAGS)
-
-AM_LDFLAGS = $(LDFLAGS_NTP)
-
-BUILT_SOURCES += \
- $(srcdir)/run-t-ntpq.c \
- $(NULL)
-
-noinst_HEADERS = \
- $(NULL)
-
-###
-
-test_ntpq_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_ntpq_SOURCES = \
- t-ntpq.c \
- run-t-ntpq.c \
- $(NULL)
-
-$(srcdir)/run-t-ntpq.c: $(srcdir)/t-ntpq.c $(std_unity_list)
- $(run_unity) t-ntpq.c run-t-ntpq.c
-
-
-TESTS =
-
-if !NTP_CROSSCOMPILE
-TESTS += $(check_PROGRAMS)
-endif
-
-## check-libntp.mf - automake fragment
-## slightly adapted for deeper directory
-
-BUILT_SOURCES += check-libntpd check-libntp check-libunity
-CLEANFILES += check-libntpd check-libntp check-libunity
-
-check-libntpd: ../../ntpd/libntpd.a
- @echo stamp > $@
-
-../../ntpd/libntpd.a:
- cd ../../ntpd && $(MAKE) $(AM_MAKEFLAGS) libntpd.a
-
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-
-include $(top_srcdir)/depsver.mf
-include $(top_srcdir)/includes.mf
diff --git a/contrib/ntp/tests/ntpq/Makefile.in b/contrib/ntp/tests/ntpq/Makefile.in
deleted file mode 100644
index 47e15d6..0000000
--- a/contrib/ntp/tests/ntpq/Makefile.in
+++ /dev/null
@@ -1,1287 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-check_PROGRAMS = test-ntpq$(EXEEXT) $(am__EXEEXT_1)
-@NTP_CROSSCOMPILE_FALSE@am__append_1 = $(check_PROGRAMS)
-subdir = tests/ntpq
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
- $(top_srcdir)/sntp/libopts/m4/stdnoreturn.m4 \
- $(top_srcdir)/sntp/m4/ax_c99_struct_init.m4 \
- $(top_srcdir)/sntp/m4/define_dir.m4 \
- $(top_srcdir)/sntp/m4/hms_search_lib.m4 \
- $(top_srcdir)/sntp/m4/libtool.m4 \
- $(top_srcdir)/sntp/m4/ltoptions.m4 \
- $(top_srcdir)/sntp/m4/ltsugar.m4 \
- $(top_srcdir)/sntp/m4/ltversion.m4 \
- $(top_srcdir)/sntp/m4/lt~obsolete.m4 \
- $(top_srcdir)/sntp/m4/ntp_cacheversion.m4 \
- $(top_srcdir)/sntp/m4/ntp_compiler.m4 \
- $(top_srcdir)/sntp/m4/ntp_crosscompile.m4 \
- $(top_srcdir)/sntp/m4/ntp_crypto_rand.m4 \
- $(top_srcdir)/sntp/m4/ntp_debug.m4 \
- $(top_srcdir)/sntp/m4/ntp_dir_sep.m4 \
- $(top_srcdir)/sntp/m4/ntp_facilitynames.m4 \
- $(top_srcdir)/sntp/m4/ntp_googletest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ipv6.m4 \
- $(top_srcdir)/sntp/m4/ntp_lib_m.m4 \
- $(top_srcdir)/sntp/m4/ntp_libevent.m4 \
- $(top_srcdir)/sntp/m4/ntp_libntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_lineeditlibs.m4 \
- $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \
- $(top_srcdir)/sntp/m4/ntp_openssl.m4 \
- $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \
- $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \
- $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \
- $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \
- $(top_srcdir)/sntp/m4/ntp_sntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_unitytest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ver_suffix.m4 \
- $(top_srcdir)/sntp/m4/ntp_vpathhack.m4 \
- $(top_srcdir)/sntp/m4/openldap-thread-check.m4 \
- $(top_srcdir)/sntp/m4/openldap.m4 \
- $(top_srcdir)/sntp/m4/os_cflags.m4 \
- $(top_srcdir)/sntp/m4/snprintf.m4 \
- $(top_srcdir)/sntp/m4/version.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
- $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__EXEEXT_1 =
-am__objects_1 =
-am_test_ntpq_OBJECTS = t-ntpq.$(OBJEXT) run-t-ntpq.$(OBJEXT) \
- $(am__objects_1)
-test_ntpq_OBJECTS = $(am_test_ntpq_OBJECTS)
-am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = $(top_builddir)/ntpq/libntpq.a \
- $(top_builddir)/ntpd/libntpd.a $(top_builddir)/libntp/libntp.a \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
-am__DEPENDENCIES_3 = $(am__DEPENDENCIES_2) \
- $(top_builddir)/sntp/unity/libunity.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-test_ntpq_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/sntp/libevent/build-aux/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(test_ntpq_SOURCES)
-DIST_SOURCES = $(test_ntpq_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depsver.mf \
- $(top_srcdir)/includes.mf \
- $(top_srcdir)/sntp/libevent/build-aux/depcomp \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BUILD_THREAD = @BUILD_THREAD@
-CALC_TICKADJ_DB = @CALC_TICKADJ_DB@
-CALC_TICKADJ_DL = @CALC_TICKADJ_DL@
-CALC_TICKADJ_DS = @CALC_TICKADJ_DS@
-CALC_TICKADJ_MS = @CALC_TICKADJ_MS@
-CALC_TICKADJ_NI = @CALC_TICKADJ_NI@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@
-CFLAGS_NTP = @CFLAGS_NTP@
-CHUTEST = @CHUTEST@
-CONFIG_SHELL = @CONFIG_SHELL@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CPPFLAGS_LIBEVENT = @CPPFLAGS_LIBEVENT@
-CPPFLAGS_NTP = @CPPFLAGS_NTP@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCFD = @DCFD@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EDITLINE_LIBS = @EDITLINE_LIBS@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-GTEST_CONFIG = @GTEST_CONFIG@
-GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
-GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
-GTEST_LDFLAGS = @GTEST_LDFLAGS@
-GTEST_LIBS = @GTEST_LIBS@
-HAVE_INLINE = @HAVE_INLINE@
-HAVE_LEAPSMEARINTERVAL = @HAVE_LEAPSMEARINTERVAL@
-HAVE_RLIMIT_MEMLOCK = @HAVE_RLIMIT_MEMLOCK@
-HAVE_RLIMIT_STACK = @HAVE_RLIMIT_STACK@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDADD_LIBEVENT = @LDADD_LIBEVENT@
-LDADD_LIBNTP = @LDADD_LIBNTP@
-LDADD_LIBUTIL = @LDADD_LIBUTIL@
-LDADD_NLIST = @LDADD_NLIST@
-LDADD_NTP = @LDADD_NTP@
-LDFLAGS = @LDFLAGS@
-LDFLAGS_NTP = @LDFLAGS_NTP@
-LIBISC_PTHREADS_NOTHREADS = @LIBISC_PTHREADS_NOTHREADS@
-LIBM = @LIBM@
-LIBOBJS = @LIBOBJS@
-LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
-LIBOPTS_DIR = @LIBOPTS_DIR@
-LIBOPTS_LDADD = @LIBOPTS_LDADD@
-LIBPARSE = @LIBPARSE@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LSCF = @LSCF@
-LTHREAD_LIBS = @LTHREAD_LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAKE_ADJTIMED = @MAKE_ADJTIMED@
-MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
-MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
-MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
-MAKE_LIBPARSE = @MAKE_LIBPARSE@
-MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
-MAKE_NTPDSIM = @MAKE_NTPDSIM@
-MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
-MAKE_NTPTIME = @MAKE_NTPTIME@
-MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
-MAKE_TICKADJ = @MAKE_TICKADJ@
-MAKE_TIMETRIM = @MAKE_TIMETRIM@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MANTAGFMT = @MANTAGFMT@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NTPDATE_DB = @NTPDATE_DB@
-NTPDATE_DL = @NTPDATE_DL@
-NTPDATE_DS = @NTPDATE_DS@
-NTPDATE_MS = @NTPDATE_MS@
-NTPDATE_NI = @NTPDATE_NI@
-NTPDC_DB = @NTPDC_DB@
-NTPDC_DL = @NTPDC_DL@
-NTPDC_DS = @NTPDC_DS@
-NTPDC_MS = @NTPDC_MS@
-NTPDC_NI = @NTPDC_NI@
-NTPDSIM_DB = @NTPDSIM_DB@
-NTPDSIM_DL = @NTPDSIM_DL@
-NTPDSIM_DS = @NTPDSIM_DS@
-NTPDSIM_MS = @NTPDSIM_MS@
-NTPDSIM_NI = @NTPDSIM_NI@
-NTPD_DB = @NTPD_DB@
-NTPD_DL = @NTPD_DL@
-NTPD_DS = @NTPD_DS@
-NTPD_MS = @NTPD_MS@
-NTPD_NI = @NTPD_NI@
-NTPQ_DB = @NTPQ_DB@
-NTPQ_DL = @NTPQ_DL@
-NTPQ_DS = @NTPQ_DS@
-NTPQ_MS = @NTPQ_MS@
-NTPQ_NI = @NTPQ_NI@
-NTPSNMPD_DB = @NTPSNMPD_DB@
-NTPSNMPD_DL = @NTPSNMPD_DL@
-NTPSNMPD_DS = @NTPSNMPD_DS@
-NTPSNMPD_MS = @NTPSNMPD_MS@
-NTPSNMPD_NI = @NTPSNMPD_NI@
-NTPSWEEP_DB = @NTPSWEEP_DB@
-NTPSWEEP_DL = @NTPSWEEP_DL@
-NTPSWEEP_DS = @NTPSWEEP_DS@
-NTPSWEEP_MS = @NTPSWEEP_MS@
-NTPSWEEP_NI = @NTPSWEEP_NI@
-NTPTIME_DB = @NTPTIME_DB@
-NTPTIME_DL = @NTPTIME_DL@
-NTPTIME_DS = @NTPTIME_DS@
-NTPTIME_MS = @NTPTIME_MS@
-NTPTIME_NI = @NTPTIME_NI@
-NTPTRACE_DB = @NTPTRACE_DB@
-NTPTRACE_DL = @NTPTRACE_DL@
-NTPTRACE_DS = @NTPTRACE_DS@
-NTPTRACE_MS = @NTPTRACE_MS@
-NTPTRACE_NI = @NTPTRACE_NI@
-NTP_KEYGEN_DB = @NTP_KEYGEN_DB@
-NTP_KEYGEN_DL = @NTP_KEYGEN_DL@
-NTP_KEYGEN_DS = @NTP_KEYGEN_DS@
-NTP_KEYGEN_MS = @NTP_KEYGEN_MS@
-NTP_KEYGEN_NI = @NTP_KEYGEN_NI@
-NTP_KEYSDIR = @NTP_KEYSDIR@
-NTP_WAIT_DB = @NTP_WAIT_DB@
-NTP_WAIT_DL = @NTP_WAIT_DL@
-NTP_WAIT_DS = @NTP_WAIT_DS@
-NTP_WAIT_MS = @NTP_WAIT_MS@
-NTP_WAIT_NI = @NTP_WAIT_NI@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
-PATH_PERL = @PATH_PERL@
-PATH_RUBY = @PATH_RUBY@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TEST = @PATH_TEST@
-PERLLIBDIR = @PERLLIBDIR@
-PKG_CONFIG = @PKG_CONFIG@
-POSIX_SHELL = @POSIX_SHELL@
-PROPDELAY = @PROPDELAY@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SNMP_CFLAGS = @SNMP_CFLAGS@
-SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
-SNMP_LIBS = @SNMP_LIBS@
-SNTP = @SNTP@
-SNTP_DB = @SNTP_DB@
-SNTP_DL = @SNTP_DL@
-SNTP_DS = @SNTP_DS@
-SNTP_MS = @SNTP_MS@
-SNTP_NI = @SNTP_NI@
-STDNORETURN_H = @STDNORETURN_H@
-STRIP = @STRIP@
-TESTDCF = @TESTDCF@
-TICKADJ_DB = @TICKADJ_DB@
-TICKADJ_DL = @TICKADJ_DL@
-TICKADJ_DS = @TICKADJ_DS@
-TICKADJ_MS = @TICKADJ_MS@
-TICKADJ_NI = @TICKADJ_NI@
-TIMETRIM_DB = @TIMETRIM_DB@
-TIMETRIM_DL = @TIMETRIM_DL@
-TIMETRIM_DS = @TIMETRIM_DS@
-TIMETRIM_MS = @TIMETRIM_MS@
-TIMETRIM_NI = @TIMETRIM_NI@
-UPDATE_LEAP_DB = @UPDATE_LEAP_DB@
-UPDATE_LEAP_DL = @UPDATE_LEAP_DL@
-UPDATE_LEAP_DS = @UPDATE_LEAP_DS@
-UPDATE_LEAP_MS = @UPDATE_LEAP_MS@
-UPDATE_LEAP_NI = @UPDATE_LEAP_NI@
-VERSION = @VERSION@
-VER_SUFFIX = @VER_SUFFIX@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-NULL =
-BUILT_SOURCES = $(srcdir)/run-t-ntpq.c $(NULL) check-libntpd \
- check-libntp check-libunity .deps-ver
-CLEANFILES = check-libntpd check-libntp check-libunity .deps-ver
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-LDADD = \
- $(top_builddir)/ntpq/libntpq.a \
- $(top_builddir)/ntpd/libntpd.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-unity_tests_LDADD = \
- $(LDADD) \
- $(top_builddir)/sntp/unity/libunity.a \
- $(LIBM) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-AM_CPPFLAGS = $(NTP_INCS) -I$(top_srcdir)/ntpq $(CPPFLAGS_NTP) \
- -DUNITY_INCLUDE_CONFIG_H -I$(top_srcdir)/sntp/unity \
- $(LIBOPTS_CFLAGS)
-AM_LDFLAGS = $(LDFLAGS_NTP)
-noinst_HEADERS = \
- $(NULL)
-
-
-###
-test_ntpq_LDADD = \
- $(unity_tests_LDADD) \
- $(NULL)
-
-test_ntpq_SOURCES = \
- t-ntpq.c \
- run-t-ntpq.c \
- $(NULL)
-
-TESTS = $(am__append_1)
-NTP_INCS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
- -I$(top_srcdir)/lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/include \
- -I$(top_srcdir)/lib/isc/unix/include
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/ntpq/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign tests/ntpq/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__empty):
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-
-test-ntpq$(EXEEXT): $(test_ntpq_OBJECTS) $(test_ntpq_DEPENDENCIES) $(EXTRA_test_ntpq_DEPENDENCIES)
- @rm -f test-ntpq$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_ntpq_OBJECTS) $(test_ntpq_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-t-ntpq.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/t-ntpq.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- elif test -n "$$redo_logs"; then \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-test-ntpq.log: test-ntpq$(EXEEXT)
- @p='test-ntpq$(EXEEXT)'; \
- b='test-ntpq'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile $(HEADERS)
-installdirs:
-install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: all check check-am install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
- ctags ctags-am distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- recheck tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-$(srcdir)/run-t-ntpq.c: $(srcdir)/t-ntpq.c $(std_unity_list)
- $(run_unity) t-ntpq.c run-t-ntpq.c
-
-check-libntpd: ../../ntpd/libntpd.a
- @echo stamp > $@
-
-../../ntpd/libntpd.a:
- cd ../../ntpd && $(MAKE) $(AM_MAKEFLAGS) libntpd.a
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
- @[ -f $@ ] || \
- cp $(top_srcdir)/deps-ver $@
- @[ -w $@ ] || \
- chmod ug+w $@
- @cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
- $(MAKE) $(AM_MAKEFLAGS) clean && \
- echo -n "Prior $(subdir)/$(DEPDIR) version " && \
- cat $@ && \
- rm -rf $(DEPDIR) && \
- mkdir $(DEPDIR) && \
- case "$(top_builddir)" in \
- .) \
- ./config.status Makefile depfiles \
- ;; \
- *) \
- cd "$(top_builddir)" && \
- ./config.status $(subdir)/Makefile depfiles && \
- cd $(subdir) \
- ;; \
- esac && \
- echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
- cat $(top_srcdir)/deps-ver \
- )
- cp $(top_srcdir)/deps-ver $@
-
-.deps-ver: $(top_srcdir)/deps-ver
- @[ ! -d $(DEPDIR) ] || $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/deps-ver
- @touch $@
-
-#
-# depsver.mf included in Makefile.am for directories with .deps
-#
-# When building in the same directory with sources that change over
-# time, such as when tracking using bk, the .deps files can become
-# stale with respect to moved, deleted, or superceded headers. Most
-# commonly, this would exhibit as make reporting a failure to make a
-# header file which is no longer in the location given. To address
-# this issue, we use a deps-ver file which is updated with each change
-# that breaks old .deps files. A copy of deps-ver is made into
-# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
-# with different contents than deps-ver, we make clean to ensure all
-# .o files built before the incompatible change are rebuilt along with
-# their updated .deps files, then remove $(DEPDIR) and recreate it as
-# empty stubs.
-#
-# It is normal when configured with --disable-dependency-tracking for
-# the DEPDIR to not have been created. For this reason, we use the
-# intermediate target .deps-ver, which invokes make recursively if
-# DEPDIR exists.
-#
-# If you modify depsver.mf, please make the changes to the master
-# copy, the one in sntp is copied by the bootstrap script from it.
-#
-# This comment block follows rather than leads the related code so that
-# it stays with it in the generated Makefile.in and Makefile.
-#
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/contrib/ntp/tests/ntpq/run-t-ntpq.c b/contrib/ntp/tests/ntpq/run-t-ntpq.c
deleted file mode 100644
index ccf2a06..0000000
--- a/contrib/ntp/tests/ntpq/run-t-ntpq.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp.h"
-#include "ntpq.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void testPrimary(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("t-ntpq.c");
- RUN_TEST(testPrimary, 20);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/ntpq/t-ntpq.c b/contrib/ntp/tests/ntpq/t-ntpq.c
deleted file mode 100644
index f4b35c5..0000000
--- a/contrib/ntp/tests/ntpq/t-ntpq.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "config.h"
-
-#include "ntp.h"
-//#include "ntp_stdlib.h"
-
-
-//#include "ntp_calendar.h"
-
-#include "unity.h"
-#include "ntpq.h"
-
-//very tricky to test static functions. It might be a good idea to use cmock here
-//#define HAVE_NTPQ
-//#include "ntpq.c"
-
-
-
-//extern int main(int argc, char *argv[]);
-
-void testPrimary(void);
-
-void testPrimary(void){
- //main(NULL,NULL);
-/*
- char ** tokens;
- int * num = 0;
- tokenize("a bc de1 234",tokens, num);
-*/
-}
-
-
-
-
-
-
-
-#define HAVE_NTP_SIGND
diff --git a/contrib/ntp/tests/sandbox/Makefile.am b/contrib/ntp/tests/sandbox/Makefile.am
deleted file mode 100644
index c146b14..0000000
--- a/contrib/ntp/tests/sandbox/Makefile.am
+++ /dev/null
@@ -1,98 +0,0 @@
-#AUTOMAKE_OPTIONS = foreign 2.9 subdir-objects
-
-NULL =
-BUILT_SOURCES =
-CLEANFILES =
-
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-check_PROGRAMS = \
- first-test \
- smeartest \
- $(NULL)
-
-EXTRA_PROGRAMS = \
- bug-2803 \
- second-test \
- $(NULL)
-
-# HMS: we may not need some of these:
-LDADD = \
- $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-# HMS: we may not need some of these:
-AM_CPPFLAGS = $(NTP_INCS)
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-AM_CPPFLAGS += -I$(top_srcdir)/include
-AM_CPPFLAGS += $(CPPFLAGS_NTP)
-AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-
-AM_LDFLAGS = $(LDFLAGS_NTP)
-
-bug_2803_SOURCES = \
- bug-2803.c \
- run-ut-2803.c \
- ut-2803.c \
- $(NULL)
-
-$(srcdir)/run-ut-2803.c: $(srcdir)/ut-2803.c $(std_unity_list)
- $(run_unity) ut-2803.c run-ut-2803.c
-BUILT_SOURCES += run-ut-2803.c
-
-first_test_SOURCES = \
- uglydate.c \
- run-uglydate.c \
- $(NULL)
-
-$(srcdir)/run-uglydate.c: $(srcdir)/uglydate.c $(std_unity_list)
- $(run_unity) uglydate.c run-uglydate.c
-BUILT_SOURCES += run-uglydate.c
-
-second_test_SOURCES = \
- modetoa.c \
- run-modetoa.c \
- $(NULL)
-
-$(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
- $(run_unity) modetoa.c run-modetoa.c
-BUILT_SOURCES += run-modetoa.c
-
-
-TESTS =
-
-if !NTP_CROSSCOMPILE
-TESTS += $(check_PROGRAMS)
-endif
-
-## check-libntp.mf - automake fragment
-## slightly adapted for deeper directory
-
-BUILT_SOURCES += check-libntp check-libunity
-CLEANFILES += check-libntp check-libunity
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../libunity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-include $(top_srcdir)/depsver.mf
-include $(top_srcdir)/includes.mf
diff --git a/contrib/ntp/tests/sandbox/Makefile.in b/contrib/ntp/tests/sandbox/Makefile.in
deleted file mode 100644
index e524c70..0000000
--- a/contrib/ntp/tests/sandbox/Makefile.in
+++ /dev/null
@@ -1,1335 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-#AUTOMAKE_OPTIONS = foreign 2.9 subdir-objects
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-check_PROGRAMS = first-test$(EXEEXT) smeartest$(EXEEXT) \
- $(am__EXEEXT_1)
-EXTRA_PROGRAMS = bug-2803$(EXEEXT) second-test$(EXEEXT) \
- $(am__EXEEXT_1)
-@NTP_CROSSCOMPILE_FALSE@am__append_1 = $(check_PROGRAMS)
-subdir = tests/sandbox
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
- $(top_srcdir)/sntp/libopts/m4/stdnoreturn.m4 \
- $(top_srcdir)/sntp/m4/ax_c99_struct_init.m4 \
- $(top_srcdir)/sntp/m4/define_dir.m4 \
- $(top_srcdir)/sntp/m4/hms_search_lib.m4 \
- $(top_srcdir)/sntp/m4/libtool.m4 \
- $(top_srcdir)/sntp/m4/ltoptions.m4 \
- $(top_srcdir)/sntp/m4/ltsugar.m4 \
- $(top_srcdir)/sntp/m4/ltversion.m4 \
- $(top_srcdir)/sntp/m4/lt~obsolete.m4 \
- $(top_srcdir)/sntp/m4/ntp_cacheversion.m4 \
- $(top_srcdir)/sntp/m4/ntp_compiler.m4 \
- $(top_srcdir)/sntp/m4/ntp_crosscompile.m4 \
- $(top_srcdir)/sntp/m4/ntp_crypto_rand.m4 \
- $(top_srcdir)/sntp/m4/ntp_debug.m4 \
- $(top_srcdir)/sntp/m4/ntp_dir_sep.m4 \
- $(top_srcdir)/sntp/m4/ntp_facilitynames.m4 \
- $(top_srcdir)/sntp/m4/ntp_googletest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ipv6.m4 \
- $(top_srcdir)/sntp/m4/ntp_lib_m.m4 \
- $(top_srcdir)/sntp/m4/ntp_libevent.m4 \
- $(top_srcdir)/sntp/m4/ntp_libntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_lineeditlibs.m4 \
- $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \
- $(top_srcdir)/sntp/m4/ntp_openssl.m4 \
- $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \
- $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \
- $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \
- $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \
- $(top_srcdir)/sntp/m4/ntp_sntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_unitytest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ver_suffix.m4 \
- $(top_srcdir)/sntp/m4/ntp_vpathhack.m4 \
- $(top_srcdir)/sntp/m4/openldap-thread-check.m4 \
- $(top_srcdir)/sntp/m4/openldap.m4 \
- $(top_srcdir)/sntp/m4/os_cflags.m4 \
- $(top_srcdir)/sntp/m4/snprintf.m4 \
- $(top_srcdir)/sntp/m4/version.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__EXEEXT_1 =
-am__objects_1 =
-am_bug_2803_OBJECTS = bug-2803.$(OBJEXT) run-ut-2803.$(OBJEXT) \
- ut-2803.$(OBJEXT) $(am__objects_1)
-bug_2803_OBJECTS = $(am_bug_2803_OBJECTS)
-bug_2803_LDADD = $(LDADD)
-am__DEPENDENCIES_1 =
-bug_2803_DEPENDENCIES = $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-am_first_test_OBJECTS = uglydate.$(OBJEXT) run-uglydate.$(OBJEXT) \
- $(am__objects_1)
-first_test_OBJECTS = $(am_first_test_OBJECTS)
-first_test_LDADD = $(LDADD)
-first_test_DEPENDENCIES = $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-am_second_test_OBJECTS = modetoa.$(OBJEXT) run-modetoa.$(OBJEXT) \
- $(am__objects_1)
-second_test_OBJECTS = $(am_second_test_OBJECTS)
-second_test_LDADD = $(LDADD)
-second_test_DEPENDENCIES = $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-smeartest_SOURCES = smeartest.c
-smeartest_OBJECTS = smeartest.$(OBJEXT)
-smeartest_LDADD = $(LDADD)
-smeartest_DEPENDENCIES = $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/sntp/libevent/build-aux/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(bug_2803_SOURCES) $(first_test_SOURCES) \
- $(second_test_SOURCES) smeartest.c
-DIST_SOURCES = $(bug_2803_SOURCES) $(first_test_SOURCES) \
- $(second_test_SOURCES) smeartest.c
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depsver.mf \
- $(top_srcdir)/includes.mf \
- $(top_srcdir)/sntp/libevent/build-aux/depcomp \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BUILD_THREAD = @BUILD_THREAD@
-CALC_TICKADJ_DB = @CALC_TICKADJ_DB@
-CALC_TICKADJ_DL = @CALC_TICKADJ_DL@
-CALC_TICKADJ_DS = @CALC_TICKADJ_DS@
-CALC_TICKADJ_MS = @CALC_TICKADJ_MS@
-CALC_TICKADJ_NI = @CALC_TICKADJ_NI@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@
-CFLAGS_NTP = @CFLAGS_NTP@
-CHUTEST = @CHUTEST@
-CONFIG_SHELL = @CONFIG_SHELL@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CPPFLAGS_LIBEVENT = @CPPFLAGS_LIBEVENT@
-CPPFLAGS_NTP = @CPPFLAGS_NTP@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCFD = @DCFD@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EDITLINE_LIBS = @EDITLINE_LIBS@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-GTEST_CONFIG = @GTEST_CONFIG@
-GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
-GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
-GTEST_LDFLAGS = @GTEST_LDFLAGS@
-GTEST_LIBS = @GTEST_LIBS@
-HAVE_INLINE = @HAVE_INLINE@
-HAVE_LEAPSMEARINTERVAL = @HAVE_LEAPSMEARINTERVAL@
-HAVE_RLIMIT_MEMLOCK = @HAVE_RLIMIT_MEMLOCK@
-HAVE_RLIMIT_STACK = @HAVE_RLIMIT_STACK@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDADD_LIBEVENT = @LDADD_LIBEVENT@
-LDADD_LIBNTP = @LDADD_LIBNTP@
-LDADD_LIBUTIL = @LDADD_LIBUTIL@
-LDADD_NLIST = @LDADD_NLIST@
-LDADD_NTP = @LDADD_NTP@
-LDFLAGS = @LDFLAGS@
-LDFLAGS_NTP = @LDFLAGS_NTP@
-LIBISC_PTHREADS_NOTHREADS = @LIBISC_PTHREADS_NOTHREADS@
-LIBM = @LIBM@
-LIBOBJS = @LIBOBJS@
-LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
-LIBOPTS_DIR = @LIBOPTS_DIR@
-LIBOPTS_LDADD = @LIBOPTS_LDADD@
-LIBPARSE = @LIBPARSE@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LSCF = @LSCF@
-LTHREAD_LIBS = @LTHREAD_LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAKE_ADJTIMED = @MAKE_ADJTIMED@
-MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
-MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
-MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
-MAKE_LIBPARSE = @MAKE_LIBPARSE@
-MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
-MAKE_NTPDSIM = @MAKE_NTPDSIM@
-MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
-MAKE_NTPTIME = @MAKE_NTPTIME@
-MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
-MAKE_TICKADJ = @MAKE_TICKADJ@
-MAKE_TIMETRIM = @MAKE_TIMETRIM@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MANTAGFMT = @MANTAGFMT@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NTPDATE_DB = @NTPDATE_DB@
-NTPDATE_DL = @NTPDATE_DL@
-NTPDATE_DS = @NTPDATE_DS@
-NTPDATE_MS = @NTPDATE_MS@
-NTPDATE_NI = @NTPDATE_NI@
-NTPDC_DB = @NTPDC_DB@
-NTPDC_DL = @NTPDC_DL@
-NTPDC_DS = @NTPDC_DS@
-NTPDC_MS = @NTPDC_MS@
-NTPDC_NI = @NTPDC_NI@
-NTPDSIM_DB = @NTPDSIM_DB@
-NTPDSIM_DL = @NTPDSIM_DL@
-NTPDSIM_DS = @NTPDSIM_DS@
-NTPDSIM_MS = @NTPDSIM_MS@
-NTPDSIM_NI = @NTPDSIM_NI@
-NTPD_DB = @NTPD_DB@
-NTPD_DL = @NTPD_DL@
-NTPD_DS = @NTPD_DS@
-NTPD_MS = @NTPD_MS@
-NTPD_NI = @NTPD_NI@
-NTPQ_DB = @NTPQ_DB@
-NTPQ_DL = @NTPQ_DL@
-NTPQ_DS = @NTPQ_DS@
-NTPQ_MS = @NTPQ_MS@
-NTPQ_NI = @NTPQ_NI@
-NTPSNMPD_DB = @NTPSNMPD_DB@
-NTPSNMPD_DL = @NTPSNMPD_DL@
-NTPSNMPD_DS = @NTPSNMPD_DS@
-NTPSNMPD_MS = @NTPSNMPD_MS@
-NTPSNMPD_NI = @NTPSNMPD_NI@
-NTPSWEEP_DB = @NTPSWEEP_DB@
-NTPSWEEP_DL = @NTPSWEEP_DL@
-NTPSWEEP_DS = @NTPSWEEP_DS@
-NTPSWEEP_MS = @NTPSWEEP_MS@
-NTPSWEEP_NI = @NTPSWEEP_NI@
-NTPTIME_DB = @NTPTIME_DB@
-NTPTIME_DL = @NTPTIME_DL@
-NTPTIME_DS = @NTPTIME_DS@
-NTPTIME_MS = @NTPTIME_MS@
-NTPTIME_NI = @NTPTIME_NI@
-NTPTRACE_DB = @NTPTRACE_DB@
-NTPTRACE_DL = @NTPTRACE_DL@
-NTPTRACE_DS = @NTPTRACE_DS@
-NTPTRACE_MS = @NTPTRACE_MS@
-NTPTRACE_NI = @NTPTRACE_NI@
-NTP_KEYGEN_DB = @NTP_KEYGEN_DB@
-NTP_KEYGEN_DL = @NTP_KEYGEN_DL@
-NTP_KEYGEN_DS = @NTP_KEYGEN_DS@
-NTP_KEYGEN_MS = @NTP_KEYGEN_MS@
-NTP_KEYGEN_NI = @NTP_KEYGEN_NI@
-NTP_KEYSDIR = @NTP_KEYSDIR@
-NTP_WAIT_DB = @NTP_WAIT_DB@
-NTP_WAIT_DL = @NTP_WAIT_DL@
-NTP_WAIT_DS = @NTP_WAIT_DS@
-NTP_WAIT_MS = @NTP_WAIT_MS@
-NTP_WAIT_NI = @NTP_WAIT_NI@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
-PATH_PERL = @PATH_PERL@
-PATH_RUBY = @PATH_RUBY@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TEST = @PATH_TEST@
-PERLLIBDIR = @PERLLIBDIR@
-PKG_CONFIG = @PKG_CONFIG@
-POSIX_SHELL = @POSIX_SHELL@
-PROPDELAY = @PROPDELAY@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SNMP_CFLAGS = @SNMP_CFLAGS@
-SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
-SNMP_LIBS = @SNMP_LIBS@
-SNTP = @SNTP@
-SNTP_DB = @SNTP_DB@
-SNTP_DL = @SNTP_DL@
-SNTP_DS = @SNTP_DS@
-SNTP_MS = @SNTP_MS@
-SNTP_NI = @SNTP_NI@
-STDNORETURN_H = @STDNORETURN_H@
-STRIP = @STRIP@
-TESTDCF = @TESTDCF@
-TICKADJ_DB = @TICKADJ_DB@
-TICKADJ_DL = @TICKADJ_DL@
-TICKADJ_DS = @TICKADJ_DS@
-TICKADJ_MS = @TICKADJ_MS@
-TICKADJ_NI = @TICKADJ_NI@
-TIMETRIM_DB = @TIMETRIM_DB@
-TIMETRIM_DL = @TIMETRIM_DL@
-TIMETRIM_DS = @TIMETRIM_DS@
-TIMETRIM_MS = @TIMETRIM_MS@
-TIMETRIM_NI = @TIMETRIM_NI@
-UPDATE_LEAP_DB = @UPDATE_LEAP_DB@
-UPDATE_LEAP_DL = @UPDATE_LEAP_DL@
-UPDATE_LEAP_DS = @UPDATE_LEAP_DS@
-UPDATE_LEAP_MS = @UPDATE_LEAP_MS@
-UPDATE_LEAP_NI = @UPDATE_LEAP_NI@
-VERSION = @VERSION@
-VER_SUFFIX = @VER_SUFFIX@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-NULL =
-BUILT_SOURCES = run-ut-2803.c run-uglydate.c run-modetoa.c \
- check-libntp check-libunity .deps-ver
-CLEANFILES = check-libntp check-libunity .deps-ver
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-# HMS: we may not need some of these:
-LDADD = \
- $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/libntp/libntp.a \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-# HMS: we may not need some of these:
-AM_CPPFLAGS = $(NTP_INCS) -I$(top_srcdir)/sntp/unity \
- -I$(top_srcdir)/include $(CPPFLAGS_NTP) \
- -DUNITY_INCLUDE_CONFIG_H -I$(top_srcdir)/sntp/unity
-AM_LDFLAGS = $(LDFLAGS_NTP)
-bug_2803_SOURCES = \
- bug-2803.c \
- run-ut-2803.c \
- ut-2803.c \
- $(NULL)
-
-first_test_SOURCES = \
- uglydate.c \
- run-uglydate.c \
- $(NULL)
-
-second_test_SOURCES = \
- modetoa.c \
- run-modetoa.c \
- $(NULL)
-
-TESTS = $(am__append_1)
-NTP_INCS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
- -I$(top_srcdir)/lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/include \
- -I$(top_srcdir)/lib/isc/unix/include
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/sandbox/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign tests/sandbox/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__empty):
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-
-bug-2803$(EXEEXT): $(bug_2803_OBJECTS) $(bug_2803_DEPENDENCIES) $(EXTRA_bug_2803_DEPENDENCIES)
- @rm -f bug-2803$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(bug_2803_OBJECTS) $(bug_2803_LDADD) $(LIBS)
-
-first-test$(EXEEXT): $(first_test_OBJECTS) $(first_test_DEPENDENCIES) $(EXTRA_first_test_DEPENDENCIES)
- @rm -f first-test$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(first_test_OBJECTS) $(first_test_LDADD) $(LIBS)
-
-second-test$(EXEEXT): $(second_test_OBJECTS) $(second_test_DEPENDENCIES) $(EXTRA_second_test_DEPENDENCIES)
- @rm -f second-test$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(second_test_OBJECTS) $(second_test_LDADD) $(LIBS)
-
-smeartest$(EXEEXT): $(smeartest_OBJECTS) $(smeartest_DEPENDENCIES) $(EXTRA_smeartest_DEPENDENCIES)
- @rm -f smeartest$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(smeartest_OBJECTS) $(smeartest_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bug-2803.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/modetoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-modetoa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-uglydate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-ut-2803.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smeartest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uglydate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ut-2803.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- elif test -n "$$redo_logs"; then \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-first-test.log: first-test$(EXEEXT)
- @p='first-test$(EXEEXT)'; \
- b='first-test'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-smeartest.log: smeartest$(EXEEXT)
- @p='smeartest$(EXEEXT)'; \
- b='smeartest'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile
-installdirs:
-install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: all check check-am install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
- ctags ctags-am distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- recheck tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-$(srcdir)/run-ut-2803.c: $(srcdir)/ut-2803.c $(std_unity_list)
- $(run_unity) ut-2803.c run-ut-2803.c
-
-$(srcdir)/run-uglydate.c: $(srcdir)/uglydate.c $(std_unity_list)
- $(run_unity) uglydate.c run-uglydate.c
-
-$(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
- $(run_unity) modetoa.c run-modetoa.c
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../libunity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
- @[ -f $@ ] || \
- cp $(top_srcdir)/deps-ver $@
- @[ -w $@ ] || \
- chmod ug+w $@
- @cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
- $(MAKE) $(AM_MAKEFLAGS) clean && \
- echo -n "Prior $(subdir)/$(DEPDIR) version " && \
- cat $@ && \
- rm -rf $(DEPDIR) && \
- mkdir $(DEPDIR) && \
- case "$(top_builddir)" in \
- .) \
- ./config.status Makefile depfiles \
- ;; \
- *) \
- cd "$(top_builddir)" && \
- ./config.status $(subdir)/Makefile depfiles && \
- cd $(subdir) \
- ;; \
- esac && \
- echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
- cat $(top_srcdir)/deps-ver \
- )
- cp $(top_srcdir)/deps-ver $@
-
-.deps-ver: $(top_srcdir)/deps-ver
- @[ ! -d $(DEPDIR) ] || $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/deps-ver
- @touch $@
-
-#
-# depsver.mf included in Makefile.am for directories with .deps
-#
-# When building in the same directory with sources that change over
-# time, such as when tracking using bk, the .deps files can become
-# stale with respect to moved, deleted, or superceded headers. Most
-# commonly, this would exhibit as make reporting a failure to make a
-# header file which is no longer in the location given. To address
-# this issue, we use a deps-ver file which is updated with each change
-# that breaks old .deps files. A copy of deps-ver is made into
-# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
-# with different contents than deps-ver, we make clean to ensure all
-# .o files built before the incompatible change are rebuilt along with
-# their updated .deps files, then remove $(DEPDIR) and recreate it as
-# empty stubs.
-#
-# It is normal when configured with --disable-dependency-tracking for
-# the DEPDIR to not have been created. For this reason, we use the
-# intermediate target .deps-ver, which invokes make recursively if
-# DEPDIR exists.
-#
-# If you modify depsver.mf, please make the changes to the master
-# copy, the one in sntp is copied by the bootstrap script from it.
-#
-# This comment block follows rather than leads the related code so that
-# it stays with it in the generated Makefile.in and Makefile.
-#
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/contrib/ntp/tests/sandbox/bug-2803.c b/contrib/ntp/tests/sandbox/bug-2803.c
deleted file mode 100644
index 1806c6d..0000000
--- a/contrib/ntp/tests/sandbox/bug-2803.c
+++ /dev/null
@@ -1,99 +0,0 @@
-#include <config.h>
-
-#include <stdio.h>
-#include <sys/time.h>
-
-#include <ntp_fp.h>
-#include <timevalops.h>
-
-/* microseconds per second */
-#define MICROSECONDS 1000000
-
-
-static int verbose = 1; // if not 0, also print results if test passed
-static int exit_on_err = 0; // if not 0, exit if test failed
-
-
-/*
- * Test function calling the old and new code mentioned in
- * http://bugs.ntp.org/show_bug.cgi?id=2803#c22
- */
-static
-int do_test( struct timeval timetv, struct timeval tvlast )
-{
- struct timeval tvdiff_old;
- struct timeval tvdiff_new;
-
- int cond_old;
- int cond_new;
- int failed;
-
- cond_old = 0;
- cond_new = 0;
-
- // Here is the old code:
- tvdiff_old = abs_tval(sub_tval(timetv, tvlast));
- if (tvdiff_old.tv_sec > 0) {
- cond_old = 1;
- }
-
- // Here is the new code:
- tvdiff_new = sub_tval(timetv, tvlast);
- if (tvdiff_new.tv_sec != 0) {
- cond_new = 1;
- }
-
- failed = cond_new != cond_old;
-
- if ( failed || verbose )
- printf( "timetv %lli|%07li, tvlast %lli|%07li: tvdiff_old: %lli|%07li -> %i, tvdiff_new: %lli|%07li -> %i, same cond: %s\n",
- (long long) timetv.tv_sec, timetv.tv_usec,
- (long long) tvlast.tv_sec, tvlast.tv_usec,
- (long long) tvdiff_old.tv_sec, tvdiff_old.tv_usec, cond_old,
- (long long) tvdiff_new.tv_sec, tvdiff_new.tv_usec, cond_new,
- failed ? "NO <<" : "yes" );
-
- return failed ? -1 : 0;
-}
-
-
-
-/*
- * Call the test function in a loop for a given set of parameters.
- * Both timetv and tvlast iterate over the given range, in all combinations.
- */
-static
-int test_loop( long long start_sec, long start_usec,
- long long stop_sec, long stop_usec,
- long long step_sec, long step_usec )
-{
- struct timeval timetv;
- struct timeval tvlast;
-
- for ( timetv.tv_sec = start_sec; timetv.tv_sec <= stop_sec; timetv.tv_sec += step_sec )
- for ( timetv.tv_usec = start_usec; timetv.tv_usec <= stop_usec; timetv.tv_usec += step_usec )
- for ( tvlast.tv_sec = start_sec; tvlast.tv_sec <= stop_sec; tvlast.tv_sec += step_sec )
- for ( tvlast.tv_usec = start_usec; tvlast.tv_usec <= stop_usec; tvlast.tv_usec += step_usec )
- {
- int rc = do_test( timetv, tvlast );
- if (rc < 0 && exit_on_err )
- return rc;
- }
-
- return 0;
-}
-
-
-
-int main2( void )
-{
-
- // loop from {0.0} to {1.1000000} stepping by tv_sec by 1 and tv_usec by 100000
- test_loop( 0, 0, 1, MICROSECONDS, 1, MICROSECONDS / 10 );
-
- // test_loop( 0, 0, 5, MICROSECONDS, 1, MICROSECONDS / 1000 );
- // test_loop( 0, 0, -5, -MICROSECONDS, -1, -MICROSECONDS / 1000 );
-
- return 0;
-}
-
diff --git a/contrib/ntp/tests/sandbox/modetoa.c b/contrib/ntp/tests/sandbox/modetoa.c
deleted file mode 100644
index 811eef6..0000000
--- a/contrib/ntp/tests/sandbox/modetoa.c
+++ /dev/null
@@ -1,20 +0,0 @@
-//#include "config.h"
-//#include "libntptest.h"
-#include "unity.h"
-//#include "ntp_stdlib.h"
-
-
-
-void test_KnownMode(void) {
- const int MODE = 3; // Should be "client"
- TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE));
-
-// EXPECT_STREQ("client", modetoa(MODE));
-}
-
-void test_UnknownMode(void) {
- const int MODE = 100;
-
- TEST_ASSERT_EQUAL_STRING("mode#1001", modetoa(MODE));
-// EXPECT_STREQ("mode#100", modetoa(MODE));
-}
diff --git a/contrib/ntp/tests/sandbox/run-modetoa.c b/contrib/ntp/tests/sandbox/run-modetoa.c
deleted file mode 100644
index 143bd75..0000000
--- a/contrib/ntp/tests/sandbox/run-modetoa.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* 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_KnownMode(void);
-extern void test_UnknownMode(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("modetoa.c");
- RUN_TEST(test_KnownMode, 8);
- RUN_TEST(test_UnknownMode, 15);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/sandbox/run-uglydate.c b/contrib/ntp/tests/sandbox/run-uglydate.c
deleted file mode 100644
index 5a5a716..0000000
--- a/contrib/ntp/tests/sandbox/run-uglydate.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* 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>
-#include "config.h"
-#include "ntp_fp.h"
-#include "ntp_stdlib.h"
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_ConstantDateTime(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("uglydate.c");
- RUN_TEST(test_ConstantDateTime, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/sandbox/run-ut-2803.c b/contrib/ntp/tests/sandbox/run-ut-2803.c
deleted file mode 100644
index b948c4a..0000000
--- a/contrib/ntp/tests/sandbox/run-ut-2803.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* 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_main(void );
-extern void test_XPASS(void);
-extern void test_XFAIL(void);
-extern void test_XFAIL_WITH_MESSAGE(void);
-extern void test_main_incorrect(void);
-extern void test_ignored(void);
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("ut-2803.c");
- RUN_TEST(test_main, 30);
- RUN_TEST(test_XPASS, 37);
- RUN_TEST(test_XFAIL, 49);
- RUN_TEST(test_XFAIL_WITH_MESSAGE, 61);
- RUN_TEST(test_main_incorrect, 73);
- RUN_TEST(test_ignored, 77);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/sandbox/smeartest.c b/contrib/ntp/tests/sandbox/smeartest.c
deleted file mode 100644
index cc4e503..0000000
--- a/contrib/ntp/tests/sandbox/smeartest.c
+++ /dev/null
@@ -1,186 +0,0 @@
-#include <config.h>
-
-#include <ntp.h>
-#include <ntp_fp.h>
-#include <ntp_assert.h>
-
-/*
- * we want to test a refid format of:
- * 254.x.y.x
- *
- * where x.y.z are 24 bits containing 2 (signed) integer bits
- * and 22 fractional bits.
- *
- * we want functions to convert to/from this format, with unit tests.
- *
- * Interesting test cases include:
- * 254.0.0.0
- * 254.0.0.1
- * 254.127.255.255
- * 254.128.0.0
- * 254.255.255.255
- */
-
-char *progname = "";
-
-l_fp convertRefIDToLFP(uint32_t r);
-uint32_t convertLFPToRefID(l_fp num);
-
-
-/*
- * The smear data in the refid is the bottom 3 bytes of the refid,
- * 2 bits of integer
- * 22 bits of fraction
- */
-l_fp
-convertRefIDToLFP(uint32_t r)
-{
- l_fp temp;
-
- r = ntohl(r);
-
- printf("%03d %08x: ", (r >> 24) & 0xFF, (r & 0x00FFFFFF) );
-
- temp.l_uf = (r << 10); /* 22 fractional bits */
-
- temp.l_ui = (r >> 22) & 0x3;
- temp.l_ui |= ~(temp.l_ui & 2) + 1;
-
- return temp;
-}
-
-
-uint32_t
-convertLFPToRefID(l_fp num)
-{
- uint32_t temp;
-
- /* round the input with the highest bit to shift out from the
- * fraction, then keep just two bits from the integral part.
- *
- * TODO: check for overflows; should we clamp/saturate or just
- * complain?
- */
- L_ADDUF(&num, 0x200);
- num.l_ui &= 3;
-
- /* combine integral and fractional part to 24 bits */
- temp = (num.l_ui << 22) | (num.l_uf >> 10);
-
- /* put in the leading 254.0.0.0 */
- temp |= UINT32_C(0xFE000000);
-
- printf("%03d %08x: ", (temp >> 24) & 0xFF, (temp & 0x00FFFFFF) );
-
- return htonl(temp);
-}
-
-/* Tests start here */
-
-void rtol(uint32_t r);
-
-void
-rtol(uint32_t r)
-{
- l_fp l;
-
- printf("rtol: ");
-
- l = convertRefIDToLFP(htonl(r));
- printf("refid %#x, smear %s\n", r, lfptoa(&l, 8));
-
- return;
-}
-
-
-void rtoltor(uint32_t r);
-
-void
-rtoltor(uint32_t r)
-{
- l_fp l;
-
- printf("rtoltor: ");
- l = convertRefIDToLFP(htonl(r));
-
- r = convertLFPToRefID(l);
- printf("smear %s, refid %#.8x\n", lfptoa(&l, 8), ntohl(r));
-
- return;
-}
-
-
-void ltor(l_fp l);
-
-void
-ltor(l_fp l)
-{
- uint32_t r;
-
- printf("ltor: ");
-
- r = convertLFPToRefID(l);
- printf("smear %s, refid %#.8x\n", lfptoa(&l, 8), ntohl(r));
-
- return;
-}
-
-
-int
-main()
-{
- l_fp l;
- int rc;
-
- init_lib();
-
- rtol(0xfe800000);
- rtol(0xfe800001);
- rtol(0xfe8ffffe);
- rtol(0xfe8fffff);
- rtol(0xfef00000);
- rtol(0xfef00001);
- rtol(0xfefffffe);
- rtol(0xfeffffff);
-
- rtol(0xfe000000);
- rtol(0xfe000001);
- rtol(0xfe6ffffe);
- rtol(0xfe6fffff);
- rtol(0xfe700000);
- rtol(0xfe700001);
- rtol(0xfe7ffffe);
- rtol(0xfe7fffff);
-
- rtoltor(0xfe800000);
- rtoltor(0xfe800001);
- rtoltor(0xfe8ffffe);
- rtoltor(0xfe8fffff);
- rtoltor(0xfef00000);
- rtoltor(0xfef00001);
- rtoltor(0xfefffffe);
- rtoltor(0xfeffffff);
-
- rtoltor(0xfe000000);
- rtoltor(0xfe000001);
- rtoltor(0xfe6ffffe);
- rtoltor(0xfe6fffff);
- rtoltor(0xfe700000);
- rtoltor(0xfe700001);
- rtoltor(0xfe7ffffe);
- rtoltor(0xfe7fffff);
-
- rc = atolfp("-.932087", &l);
- INSIST(1 == rc);
-
- ltor(l);
- rtol(0xfec458b0);
- printf("%x -> %d.%d.%d.%d\n",
- 0xfec458b0,
- 0xfe,
- 0xc4,
- 0x58,
- 0xb0);
-
- return 0;
-}
diff --git a/contrib/ntp/tests/sandbox/uglydate.c b/contrib/ntp/tests/sandbox/uglydate.c
deleted file mode 100644
index ba8377e..0000000
--- a/contrib/ntp/tests/sandbox/uglydate.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "config.h"
-#include "ntp_fp.h"
-#include "unity.h"
-
-#include "ntp_stdlib.h"
-
-//#include "libntptest.h"
-
-void setUp(void);
-void test_ConstantDateTime(void);
-
-
-void
-setUp(void)
-{
- init_lib();
-
- return;
-}
-
-
-void
-test_ConstantDateTime(void)
-{
- const u_int32 HALF = 2147483648UL;
-
- l_fp e_time = {{3485080800UL}, HALF}; // 2010-06-09 14:00:00.5
-
- TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500",
- uglydate(&e_time));
-}
diff --git a/contrib/ntp/tests/sandbox/ut-2803.c b/contrib/ntp/tests/sandbox/ut-2803.c
deleted file mode 100644
index bb3ee97..0000000
--- a/contrib/ntp/tests/sandbox/ut-2803.c
+++ /dev/null
@@ -1,80 +0,0 @@
-//#include "bug-2803.h"
-#include "unity.h"
-//#include "code-2803.h"
-
-#define VERSION 5 //change this to 5 and the test wont fail.
-
-
-void setUp(void)
-{
-
-}
-
-void tearDown(void)
-{
-}
-
-/*
-int main( void )
-{
-
- // loop from {0.0} to {1.1000000} stepping by tv_sec by 1 and tv_usec by 100000
- test_loop( 0, 0, 1, MICROSECONDS, 1, MICROSECONDS / 10 );
-
- // test_loop( 0, 0, 5, MICROSECONDS, 1, MICROSECONDS / 1000 );
- // test_loop( 0, 0, -5, -MICROSECONDS, -1, -MICROSECONDS / 1000 );
-
- return 0;
-}
-*/
-void test_main( void )
-{
- TEST_ASSERT_EQUAL(0, main2());
-}
-
-//VERSION defined at the top of the file
-
-void test_XPASS(void) //expecting fail but passes, should we get an alert about that?
-{
- //TEST_ABORT
- TEST_EXPECT_FAIL();
-
- if(VERSION < 4 ){
- TEST_FAIL_MESSAGE("expected to fail");
- }
-
- else TEST_ASSERT_EQUAL(1,1);
-}
-
-void test_XFAIL(void) //expecting fail, and XFAILs
-{
-
- TEST_EXPECT_FAIL();
-
- if(VERSION < 4 ){
- TEST_FAIL_MESSAGE("Expected to fail");
- }
-
- else TEST_ASSERT_EQUAL(1,2);
-}
-
-void test_XFAIL_WITH_MESSAGE(void) //expecting fail, and XFAILs
-{
- //TEST_ABORT
- TEST_EXPECT_FAIL_MESSAGE("Doesn't work on this OS");
-
- if(VERSION < 4 ){
- TEST_FAIL_MESSAGE("Expected to fail");
- }
-
- else TEST_ASSERT_EQUAL(1,2);
-}
-
-void test_main_incorrect(void){
- TEST_ASSERT_EQUAL(3, main2());
-}
-
-void test_ignored(void){
- //TEST_IGNORE();
- TEST_IGNORE_MESSAGE("This test is being ignored!");
-}
diff --git a/contrib/ntp/tests/sec-2853/Makefile.am b/contrib/ntp/tests/sec-2853/Makefile.am
deleted file mode 100644
index 59734da..0000000
--- a/contrib/ntp/tests/sec-2853/Makefile.am
+++ /dev/null
@@ -1,80 +0,0 @@
-#AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
-NULL =
-BUILT_SOURCES =
-CLEANFILES =
-
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-check_PROGRAMS = sec-2853
-
-# HMS: we may not need some of these:
-LDADD = \
- $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/ntpd/rc_cmdlength.o \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-# HMS: we may not need some of these:
-AM_CPPFLAGS = $(NTP_INCS)
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-AM_CPPFLAGS += -I$(top_srcdir)/include
-AM_CPPFLAGS += $(CPPFLAGS_NTP)
-AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
-AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
-
-AM_LDFLAGS = $(LDFLAGS_NTP)
-
-sec_2853_SOURCES = \
- run-sec-2853.c \
- sec-2853.c \
- $(NULL)
-
-BUILT_SOURCES += $(srcdir)/run-sec-2853.c
-
-$(srcdir)/run-sec-2853.c: $(srcdir)/sec-2853.c $(std_unity_list)
- $(run_unity) sec-2853.c run-sec-2853.c
-
-# HMS: we may not need some of these:
-#noinst_HEADERS = ntpdtest.h \
-# $(NULL)
-
-TESTS =
-
-if !NTP_CROSSCOMPILE
-TESTS += $(check_PROGRAMS)
-endif
-
-## check-libntp.mf - automake fragment
-## slightly adapted for deeper directory
-
-BUILT_SOURCES += check-libntp check-libunity check-rc-cmdlength
-CLEANFILES += check-libntp check-libunity check-rc-cmdlength
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../libunity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-check-rc-cmdlength: ../../ntpd/rc_cmdlength.o
- @echo stamp > $@
-
-../../ntpd/rc_cmdlength.o:
- cd ../../ntpd && $(MAKE) $(AM_MAKEFLAGS) rc_cmdlength.o
-
-include $(top_srcdir)/depsver.mf
-include $(top_srcdir)/includes.mf
diff --git a/contrib/ntp/tests/sec-2853/Makefile.in b/contrib/ntp/tests/sec-2853/Makefile.in
deleted file mode 100644
index 3f581c7..0000000
--- a/contrib/ntp/tests/sec-2853/Makefile.in
+++ /dev/null
@@ -1,1274 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-check_PROGRAMS = sec-2853$(EXEEXT)
-@NTP_CROSSCOMPILE_FALSE@am__append_1 = $(check_PROGRAMS)
-subdir = tests/sec-2853
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
- $(top_srcdir)/sntp/libopts/m4/stdnoreturn.m4 \
- $(top_srcdir)/sntp/m4/ax_c99_struct_init.m4 \
- $(top_srcdir)/sntp/m4/define_dir.m4 \
- $(top_srcdir)/sntp/m4/hms_search_lib.m4 \
- $(top_srcdir)/sntp/m4/libtool.m4 \
- $(top_srcdir)/sntp/m4/ltoptions.m4 \
- $(top_srcdir)/sntp/m4/ltsugar.m4 \
- $(top_srcdir)/sntp/m4/ltversion.m4 \
- $(top_srcdir)/sntp/m4/lt~obsolete.m4 \
- $(top_srcdir)/sntp/m4/ntp_cacheversion.m4 \
- $(top_srcdir)/sntp/m4/ntp_compiler.m4 \
- $(top_srcdir)/sntp/m4/ntp_crosscompile.m4 \
- $(top_srcdir)/sntp/m4/ntp_crypto_rand.m4 \
- $(top_srcdir)/sntp/m4/ntp_debug.m4 \
- $(top_srcdir)/sntp/m4/ntp_dir_sep.m4 \
- $(top_srcdir)/sntp/m4/ntp_facilitynames.m4 \
- $(top_srcdir)/sntp/m4/ntp_googletest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ipv6.m4 \
- $(top_srcdir)/sntp/m4/ntp_lib_m.m4 \
- $(top_srcdir)/sntp/m4/ntp_libevent.m4 \
- $(top_srcdir)/sntp/m4/ntp_libntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_lineeditlibs.m4 \
- $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \
- $(top_srcdir)/sntp/m4/ntp_openssl.m4 \
- $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \
- $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \
- $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \
- $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \
- $(top_srcdir)/sntp/m4/ntp_sntp.m4 \
- $(top_srcdir)/sntp/m4/ntp_unitytest.m4 \
- $(top_srcdir)/sntp/m4/ntp_ver_suffix.m4 \
- $(top_srcdir)/sntp/m4/ntp_vpathhack.m4 \
- $(top_srcdir)/sntp/m4/openldap-thread-check.m4 \
- $(top_srcdir)/sntp/m4/openldap.m4 \
- $(top_srcdir)/sntp/m4/os_cflags.m4 \
- $(top_srcdir)/sntp/m4/snprintf.m4 \
- $(top_srcdir)/sntp/m4/version.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__objects_1 =
-am_sec_2853_OBJECTS = run-sec-2853.$(OBJEXT) sec-2853.$(OBJEXT) \
- $(am__objects_1)
-sec_2853_OBJECTS = $(am_sec_2853_OBJECTS)
-sec_2853_LDADD = $(LDADD)
-am__DEPENDENCIES_1 =
-sec_2853_DEPENDENCIES = $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/ntpd/rc_cmdlength.o $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/sntp/libevent/build-aux/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(sec_2853_SOURCES)
-DIST_SOURCES = $(sec_2853_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depsver.mf \
- $(top_srcdir)/includes.mf \
- $(top_srcdir)/sntp/libevent/build-aux/depcomp \
- $(top_srcdir)/sntp/libevent/build-aux/test-driver
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BUILD_THREAD = @BUILD_THREAD@
-CALC_TICKADJ_DB = @CALC_TICKADJ_DB@
-CALC_TICKADJ_DL = @CALC_TICKADJ_DL@
-CALC_TICKADJ_DS = @CALC_TICKADJ_DS@
-CALC_TICKADJ_MS = @CALC_TICKADJ_MS@
-CALC_TICKADJ_NI = @CALC_TICKADJ_NI@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@
-CFLAGS_NTP = @CFLAGS_NTP@
-CHUTEST = @CHUTEST@
-CONFIG_SHELL = @CONFIG_SHELL@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CPPFLAGS_LIBEVENT = @CPPFLAGS_LIBEVENT@
-CPPFLAGS_NTP = @CPPFLAGS_NTP@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCFD = @DCFD@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EDITLINE_LIBS = @EDITLINE_LIBS@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-GTEST_CONFIG = @GTEST_CONFIG@
-GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
-GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
-GTEST_LDFLAGS = @GTEST_LDFLAGS@
-GTEST_LIBS = @GTEST_LIBS@
-HAVE_INLINE = @HAVE_INLINE@
-HAVE_LEAPSMEARINTERVAL = @HAVE_LEAPSMEARINTERVAL@
-HAVE_RLIMIT_MEMLOCK = @HAVE_RLIMIT_MEMLOCK@
-HAVE_RLIMIT_STACK = @HAVE_RLIMIT_STACK@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDADD_LIBEVENT = @LDADD_LIBEVENT@
-LDADD_LIBNTP = @LDADD_LIBNTP@
-LDADD_LIBUTIL = @LDADD_LIBUTIL@
-LDADD_NLIST = @LDADD_NLIST@
-LDADD_NTP = @LDADD_NTP@
-LDFLAGS = @LDFLAGS@
-LDFLAGS_NTP = @LDFLAGS_NTP@
-LIBISC_PTHREADS_NOTHREADS = @LIBISC_PTHREADS_NOTHREADS@
-LIBM = @LIBM@
-LIBOBJS = @LIBOBJS@
-LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
-LIBOPTS_DIR = @LIBOPTS_DIR@
-LIBOPTS_LDADD = @LIBOPTS_LDADD@
-LIBPARSE = @LIBPARSE@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LSCF = @LSCF@
-LTHREAD_LIBS = @LTHREAD_LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAKE_ADJTIMED = @MAKE_ADJTIMED@
-MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
-MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
-MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
-MAKE_LIBPARSE = @MAKE_LIBPARSE@
-MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
-MAKE_NTPDSIM = @MAKE_NTPDSIM@
-MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
-MAKE_NTPTIME = @MAKE_NTPTIME@
-MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
-MAKE_TICKADJ = @MAKE_TICKADJ@
-MAKE_TIMETRIM = @MAKE_TIMETRIM@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MANTAGFMT = @MANTAGFMT@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NTPDATE_DB = @NTPDATE_DB@
-NTPDATE_DL = @NTPDATE_DL@
-NTPDATE_DS = @NTPDATE_DS@
-NTPDATE_MS = @NTPDATE_MS@
-NTPDATE_NI = @NTPDATE_NI@
-NTPDC_DB = @NTPDC_DB@
-NTPDC_DL = @NTPDC_DL@
-NTPDC_DS = @NTPDC_DS@
-NTPDC_MS = @NTPDC_MS@
-NTPDC_NI = @NTPDC_NI@
-NTPDSIM_DB = @NTPDSIM_DB@
-NTPDSIM_DL = @NTPDSIM_DL@
-NTPDSIM_DS = @NTPDSIM_DS@
-NTPDSIM_MS = @NTPDSIM_MS@
-NTPDSIM_NI = @NTPDSIM_NI@
-NTPD_DB = @NTPD_DB@
-NTPD_DL = @NTPD_DL@
-NTPD_DS = @NTPD_DS@
-NTPD_MS = @NTPD_MS@
-NTPD_NI = @NTPD_NI@
-NTPQ_DB = @NTPQ_DB@
-NTPQ_DL = @NTPQ_DL@
-NTPQ_DS = @NTPQ_DS@
-NTPQ_MS = @NTPQ_MS@
-NTPQ_NI = @NTPQ_NI@
-NTPSNMPD_DB = @NTPSNMPD_DB@
-NTPSNMPD_DL = @NTPSNMPD_DL@
-NTPSNMPD_DS = @NTPSNMPD_DS@
-NTPSNMPD_MS = @NTPSNMPD_MS@
-NTPSNMPD_NI = @NTPSNMPD_NI@
-NTPSWEEP_DB = @NTPSWEEP_DB@
-NTPSWEEP_DL = @NTPSWEEP_DL@
-NTPSWEEP_DS = @NTPSWEEP_DS@
-NTPSWEEP_MS = @NTPSWEEP_MS@
-NTPSWEEP_NI = @NTPSWEEP_NI@
-NTPTIME_DB = @NTPTIME_DB@
-NTPTIME_DL = @NTPTIME_DL@
-NTPTIME_DS = @NTPTIME_DS@
-NTPTIME_MS = @NTPTIME_MS@
-NTPTIME_NI = @NTPTIME_NI@
-NTPTRACE_DB = @NTPTRACE_DB@
-NTPTRACE_DL = @NTPTRACE_DL@
-NTPTRACE_DS = @NTPTRACE_DS@
-NTPTRACE_MS = @NTPTRACE_MS@
-NTPTRACE_NI = @NTPTRACE_NI@
-NTP_KEYGEN_DB = @NTP_KEYGEN_DB@
-NTP_KEYGEN_DL = @NTP_KEYGEN_DL@
-NTP_KEYGEN_DS = @NTP_KEYGEN_DS@
-NTP_KEYGEN_MS = @NTP_KEYGEN_MS@
-NTP_KEYGEN_NI = @NTP_KEYGEN_NI@
-NTP_KEYSDIR = @NTP_KEYSDIR@
-NTP_WAIT_DB = @NTP_WAIT_DB@
-NTP_WAIT_DL = @NTP_WAIT_DL@
-NTP_WAIT_DS = @NTP_WAIT_DS@
-NTP_WAIT_MS = @NTP_WAIT_MS@
-NTP_WAIT_NI = @NTP_WAIT_NI@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
-PATH_PERL = @PATH_PERL@
-PATH_RUBY = @PATH_RUBY@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TEST = @PATH_TEST@
-PERLLIBDIR = @PERLLIBDIR@
-PKG_CONFIG = @PKG_CONFIG@
-POSIX_SHELL = @POSIX_SHELL@
-PROPDELAY = @PROPDELAY@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SNMP_CFLAGS = @SNMP_CFLAGS@
-SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
-SNMP_LIBS = @SNMP_LIBS@
-SNTP = @SNTP@
-SNTP_DB = @SNTP_DB@
-SNTP_DL = @SNTP_DL@
-SNTP_DS = @SNTP_DS@
-SNTP_MS = @SNTP_MS@
-SNTP_NI = @SNTP_NI@
-STDNORETURN_H = @STDNORETURN_H@
-STRIP = @STRIP@
-TESTDCF = @TESTDCF@
-TICKADJ_DB = @TICKADJ_DB@
-TICKADJ_DL = @TICKADJ_DL@
-TICKADJ_DS = @TICKADJ_DS@
-TICKADJ_MS = @TICKADJ_MS@
-TICKADJ_NI = @TICKADJ_NI@
-TIMETRIM_DB = @TIMETRIM_DB@
-TIMETRIM_DL = @TIMETRIM_DL@
-TIMETRIM_DS = @TIMETRIM_DS@
-TIMETRIM_MS = @TIMETRIM_MS@
-TIMETRIM_NI = @TIMETRIM_NI@
-UPDATE_LEAP_DB = @UPDATE_LEAP_DB@
-UPDATE_LEAP_DL = @UPDATE_LEAP_DL@
-UPDATE_LEAP_DS = @UPDATE_LEAP_DS@
-UPDATE_LEAP_MS = @UPDATE_LEAP_MS@
-UPDATE_LEAP_NI = @UPDATE_LEAP_NI@
-VERSION = @VERSION@
-VER_SUFFIX = @VER_SUFFIX@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-
-#AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
-NULL =
-BUILT_SOURCES = $(srcdir)/run-sec-2853.c check-libntp check-libunity \
- check-rc-cmdlength .deps-ver
-CLEANFILES = check-libntp check-libunity check-rc-cmdlength .deps-ver
-std_unity_list = \
- $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
- $(NULL)
-
-run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
-
-# HMS: we may not need some of these:
-LDADD = \
- $(top_builddir)/sntp/unity/libunity.a \
- $(top_builddir)/ntpd/rc_cmdlength.o \
- $(LDADD_LIBNTP) \
- $(PTHREAD_LIBS) \
- $(LDADD_NTP) \
- $(NULL)
-
-AM_CFLAGS = $(CFLAGS_NTP)
-
-# HMS: we may not need some of these:
-AM_CPPFLAGS = $(NTP_INCS) -I$(top_srcdir)/sntp/unity \
- -I$(top_srcdir)/include $(CPPFLAGS_NTP) \
- -DUNITY_INCLUDE_CONFIG_H -I$(top_srcdir)/sntp/unity
-AM_LDFLAGS = $(LDFLAGS_NTP)
-sec_2853_SOURCES = \
- run-sec-2853.c \
- sec-2853.c \
- $(NULL)
-
-
-# HMS: we may not need some of these:
-#noinst_HEADERS = ntpdtest.h \
-# $(NULL)
-TESTS = $(am__append_1)
-NTP_INCS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
- -I$(top_srcdir)/lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/include \
- -I$(top_srcdir)/lib/isc/unix/include
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/sec-2853/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign tests/sec-2853/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/depsver.mf $(top_srcdir)/includes.mf $(am__empty):
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-
-sec-2853$(EXEEXT): $(sec_2853_OBJECTS) $(sec_2853_DEPENDENCIES) $(EXTRA_sec_2853_DEPENDENCIES)
- @rm -f sec-2853$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(sec_2853_OBJECTS) $(sec_2853_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run-sec-2853.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sec-2853.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- elif test -n "$$redo_logs"; then \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-sec-2853.log: sec-2853$(EXEEXT)
- @p='sec-2853$(EXEEXT)'; \
- b='sec-2853'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile
-installdirs:
-install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: all check check-am install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
- ctags ctags-am distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- recheck tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-$(srcdir)/run-sec-2853.c: $(srcdir)/sec-2853.c $(std_unity_list)
- $(run_unity) sec-2853.c run-sec-2853.c
-
-check-libntp: ../../libntp/libntp.a
- @echo stamp > $@
-
-../../libntp/libntp.a:
- cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
-
-check-libunity: ../../sntp/unity/libunity.a
- @echo stamp > $@
-
-../../sntp/unity/libunity.a:
- cd ../../libunity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
-
-check-rc-cmdlength: ../../ntpd/rc_cmdlength.o
- @echo stamp > $@
-
-../../ntpd/rc_cmdlength.o:
- cd ../../ntpd && $(MAKE) $(AM_MAKEFLAGS) rc_cmdlength.o
-$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
- @[ -f $@ ] || \
- cp $(top_srcdir)/deps-ver $@
- @[ -w $@ ] || \
- chmod ug+w $@
- @cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
- $(MAKE) $(AM_MAKEFLAGS) clean && \
- echo -n "Prior $(subdir)/$(DEPDIR) version " && \
- cat $@ && \
- rm -rf $(DEPDIR) && \
- mkdir $(DEPDIR) && \
- case "$(top_builddir)" in \
- .) \
- ./config.status Makefile depfiles \
- ;; \
- *) \
- cd "$(top_builddir)" && \
- ./config.status $(subdir)/Makefile depfiles && \
- cd $(subdir) \
- ;; \
- esac && \
- echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
- cat $(top_srcdir)/deps-ver \
- )
- cp $(top_srcdir)/deps-ver $@
-
-.deps-ver: $(top_srcdir)/deps-ver
- @[ ! -d $(DEPDIR) ] || $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/deps-ver
- @touch $@
-
-#
-# depsver.mf included in Makefile.am for directories with .deps
-#
-# When building in the same directory with sources that change over
-# time, such as when tracking using bk, the .deps files can become
-# stale with respect to moved, deleted, or superceded headers. Most
-# commonly, this would exhibit as make reporting a failure to make a
-# header file which is no longer in the location given. To address
-# this issue, we use a deps-ver file which is updated with each change
-# that breaks old .deps files. A copy of deps-ver is made into
-# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
-# with different contents than deps-ver, we make clean to ensure all
-# .o files built before the incompatible change are rebuilt along with
-# their updated .deps files, then remove $(DEPDIR) and recreate it as
-# empty stubs.
-#
-# It is normal when configured with --disable-dependency-tracking for
-# the DEPDIR to not have been created. For this reason, we use the
-# intermediate target .deps-ver, which invokes make recursively if
-# DEPDIR exists.
-#
-# If you modify depsver.mf, please make the changes to the master
-# copy, the one in sntp is copied by the bootstrap script from it.
-#
-# This comment block follows rather than leads the related code so that
-# it stays with it in the generated Makefile.in and Makefile.
-#
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/contrib/ntp/tests/sec-2853/run-sec-2853.c b/contrib/ntp/tests/sec-2853/run-sec-2853.c
deleted file mode 100644
index 1159a77..0000000
--- a/contrib/ntp/tests/sec-2853/run-sec-2853.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* 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>
-#include <config.h>
-#include <rc_cmdlength.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_main(void );
-
-
-//=======Test Reset Option=====
-void resetTest(void);
-void resetTest(void)
-{
- tearDown();
- setUp();
-}
-
-char const *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- UnityBegin("sec-2853.c");
- RUN_TEST(test_main, 10);
-
- return (UnityEnd());
-}
diff --git a/contrib/ntp/tests/sec-2853/sec-2853.c b/contrib/ntp/tests/sec-2853/sec-2853.c
deleted file mode 100644
index f9255b0..0000000
--- a/contrib/ntp/tests/sec-2853/sec-2853.c
+++ /dev/null
@@ -1,117 +0,0 @@
-#include <config.h>
-
-#include <rc_cmdlength.h>
-
-#include "unity.h"
-
-void setUp(void);
-void tearDown(void);
-
-void test_main( void );
-int basic_good( void );
-int embedded_nul( void );
-int trailing_space( void );
-
-static int verbose = 1; // if not 0, also print results if test passed
-// static int exit_on_err = 0; // if not 0, exit if test failed
-
-
-void setUp(void)
-{
-}
-
-
-void tearDown(void)
-{
-}
-
-
-/*
- * Test function calling the remote config buffer checker
- * http://bugs.ntp.org/show_bug.cgi?id=2853
- *
- * size_t remoteconfig_cmdlength(const char *src_buf, const char *src_end)
- * - trims whitespace & garbage from the right
- * then looks for only \tSP-\127 starting from the left.
- * It returns the number of "good" characters it found.
- */
-
-
-void test_main( void )
-{
- TEST_ASSERT_EQUAL(0, basic_good());
- TEST_ASSERT_EQUAL(0, embedded_nul());
- TEST_ASSERT_EQUAL(0, trailing_space());
-}
-
-
-int basic_good( void )
-{
- const char string[] = "good";
- const char *EOstring;
- size_t len;
- int failed;
-
- EOstring = string + sizeof string;
-
- len = remoteconfig_cmdlength(string, EOstring);
-
- failed = ( 4 != len );
-
- if ( failed || verbose )
- printf( "remoteconfig_cmdlength(\"%s\") returned %llu, expected %u: %s\n",
- string,
- (unsigned long long)len,
- 4,
- failed ? "NO <<" : "yes" );
-
- return failed ? -1 : 0;
-}
-
-
-int embedded_nul( void )
-{
- const char string[] = "nul\0 there";
- const char *EOstring;
- size_t len;
- int failed;
-
- EOstring = string + sizeof string;
-
- len = remoteconfig_cmdlength(string, EOstring);
-
- failed = ( 3 != len );
-
- if ( failed || verbose )
- printf( "remoteconfig_cmdlength(\"%s\") returned %llu, expected %u: %s\n",
- string,
- (unsigned long long)len,
- 3,
- failed ? "NO <<" : "yes" );
-
- return failed ? -1 : 0;
-}
-
-
-int trailing_space( void )
-{
- const char string[] = "trailing space ";
- const char *EOstring;
- size_t len;
- int failed;
-
- EOstring = string + sizeof string;
-
- len = remoteconfig_cmdlength(string, EOstring);
-
- failed = ( 14 != len );
-
- if ( failed || verbose )
- printf( "remoteconfig_cmdlength(\"%s\") returned %llu, expected %u: %s\n",
- string,
- (unsigned long long)len,
- 14,
- failed ? "NO <<" : "yes" );
-
- return failed ? -1 : 0;
-}
OpenPOWER on IntegriCloud