From 2a25cee78ab1d37e7d2bc40ae675646974d99f56 Mon Sep 17 00:00:00 2001 From: delphij Date: Wed, 15 Jul 2015 19:21:26 +0000 Subject: MFC r280849,280915-280916,281015-281016,282097,282408,282415,283542, 284864,285169-285170,285435: ntp 4.2.8p3. Relnotes: yes Approved by: re (?) --- contrib/ntp/tests/libntp/Makefile.am | 901 ++++++ contrib/ntp/tests/libntp/Makefile.in | 4131 +++++++++++++++++++++++++++ contrib/ntp/tests/libntp/a_md5encrypt.c | 99 + contrib/ntp/tests/libntp/atoint.c | 51 + contrib/ntp/tests/libntp/atouint.c | 43 + contrib/ntp/tests/libntp/authkeys.c | 119 + contrib/ntp/tests/libntp/buftvtots.c | 78 + contrib/ntp/tests/libntp/calendar.c | 416 +++ contrib/ntp/tests/libntp/caljulian.c | 116 + contrib/ntp/tests/libntp/caltontp.c | 48 + contrib/ntp/tests/libntp/calyearstart.c | 44 + contrib/ntp/tests/libntp/clocktime.c | 201 ++ contrib/ntp/tests/libntp/decodenetnum.c | 96 + contrib/ntp/tests/libntp/g_a_md5encrypt.cpp | 89 + contrib/ntp/tests/libntp/g_atoint.cpp | 48 + contrib/ntp/tests/libntp/g_atouint.cpp | 40 + contrib/ntp/tests/libntp/g_authkeys.cpp | 100 + contrib/ntp/tests/libntp/g_buftvtots.cpp | 61 + contrib/ntp/tests/libntp/g_calendar.cpp | 337 +++ contrib/ntp/tests/libntp/g_caljulian.cpp | 94 + contrib/ntp/tests/libntp/g_caltontp.cpp | 49 + contrib/ntp/tests/libntp/g_calyearstart.cpp | 43 + contrib/ntp/tests/libntp/g_clocktime.cpp | 187 ++ contrib/ntp/tests/libntp/g_decodenetnum.cpp | 93 + contrib/ntp/tests/libntp/g_hextoint.cpp | 42 + contrib/ntp/tests/libntp/g_hextolfp.cpp | 58 + contrib/ntp/tests/libntp/g_humandate.cpp | 41 + contrib/ntp/tests/libntp/g_lfpfunc.cpp | 547 ++++ contrib/ntp/tests/libntp/g_lfptest.h | 32 + contrib/ntp/tests/libntp/g_lfptostr.cpp | 103 + contrib/ntp/tests/libntp/g_libntptest.cpp | 27 + contrib/ntp/tests/libntp/g_libntptest.h | 15 + contrib/ntp/tests/libntp/g_modetoa.cpp | 16 + contrib/ntp/tests/libntp/g_msyslog.cpp | 137 + contrib/ntp/tests/libntp/g_netof.cpp | 69 + contrib/ntp/tests/libntp/g_numtoa.cpp | 18 + contrib/ntp/tests/libntp/g_numtohost.cpp | 15 + contrib/ntp/tests/libntp/g_octtoint.cpp | 57 + contrib/ntp/tests/libntp/g_prettydate.cpp | 16 + contrib/ntp/tests/libntp/g_recvbuff.cpp | 38 + contrib/ntp/tests/libntp/g_refnumtoa.cpp | 52 + contrib/ntp/tests/libntp/g_sfptostr.cpp | 71 + contrib/ntp/tests/libntp/g_sockaddrtest.h | 59 + contrib/ntp/tests/libntp/g_socktoa.cpp | 100 + contrib/ntp/tests/libntp/g_ssl_init.cpp | 50 + contrib/ntp/tests/libntp/g_statestr.cpp | 28 + contrib/ntp/tests/libntp/g_strtolfp.cpp | 107 + contrib/ntp/tests/libntp/g_timespecops.cpp | 475 +++ contrib/ntp/tests/libntp/g_timestructs.cpp | 156 + contrib/ntp/tests/libntp/g_timestructs.h | 185 ++ contrib/ntp/tests/libntp/g_timevalops.cpp | 480 ++++ contrib/ntp/tests/libntp/g_tstotv.cpp | 57 + contrib/ntp/tests/libntp/g_tvtots.cpp | 54 + contrib/ntp/tests/libntp/g_uglydate.cpp | 18 + contrib/ntp/tests/libntp/g_vi64ops.cpp | 64 + contrib/ntp/tests/libntp/g_ymd2yd.cpp | 23 + contrib/ntp/tests/libntp/hextoint.c | 47 + contrib/ntp/tests/libntp/hextolfp.c | 63 + contrib/ntp/tests/libntp/humandate.c | 36 + contrib/ntp/tests/libntp/lfpfunc.c | 561 ++++ contrib/ntp/tests/libntp/lfptest.h | 30 + contrib/ntp/tests/libntp/lfptostr.c | 103 + contrib/ntp/tests/libntp/modetoa.c | 20 + contrib/ntp/tests/libntp/msyslog.c | 136 + contrib/ntp/tests/libntp/netof.c | 74 + contrib/ntp/tests/libntp/numtoa.c | 31 + contrib/ntp/tests/libntp/numtohost.c | 19 + contrib/ntp/tests/libntp/octtoint.c | 64 + contrib/ntp/tests/libntp/prettydate.c | 17 + contrib/ntp/tests/libntp/recvbuff.c | 42 + contrib/ntp/tests/libntp/refidsmear.c | 141 + contrib/ntp/tests/libntp/refnumtoa.c | 64 + contrib/ntp/tests/libntp/run-a_md5encrypt.c | 59 + contrib/ntp/tests/libntp/run-atoint.c | 61 + contrib/ntp/tests/libntp/run-atouint.c | 59 + contrib/ntp/tests/libntp/run-authkeys.c | 61 + contrib/ntp/tests/libntp/run-buftvtots.c | 57 + contrib/ntp/tests/libntp/run-calendar.c | 71 + contrib/ntp/tests/libntp/run-caljulian.c | 58 + contrib/ntp/tests/libntp/run-caltontp.c | 57 + contrib/ntp/tests/libntp/run-calyearstart.c | 55 + contrib/ntp/tests/libntp/run-clocktime.c | 65 + contrib/ntp/tests/libntp/run-decodenetnum.c | 62 + contrib/ntp/tests/libntp/run-hextoint.c | 59 + contrib/ntp/tests/libntp/run-hextolfp.c | 62 + contrib/ntp/tests/libntp/run-humandate.c | 53 + contrib/ntp/tests/libntp/run-lfpfunc.c | 68 + contrib/ntp/tests/libntp/run-lfptostr.c | 71 + contrib/ntp/tests/libntp/run-modetoa.c | 53 + contrib/ntp/tests/libntp/run-msyslog.c | 66 + contrib/ntp/tests/libntp/run-netof.c | 58 + contrib/ntp/tests/libntp/run-numtoa.c | 53 + contrib/ntp/tests/libntp/run-numtohost.c | 51 + contrib/ntp/tests/libntp/run-octtoint.c | 63 + contrib/ntp/tests/libntp/run-prettydate.c | 51 + contrib/ntp/tests/libntp/run-recvbuff.c | 55 + contrib/ntp/tests/libntp/run-refidsmear.c | 52 + contrib/ntp/tests/libntp/run-refnumtoa.c | 53 + contrib/ntp/tests/libntp/run-sfptostr.c | 66 + contrib/ntp/tests/libntp/run-socktoa.c | 61 + contrib/ntp/tests/libntp/run-ssl_init.c | 59 + contrib/ntp/tests/libntp/run-statestr.c | 57 + contrib/ntp/tests/libntp/run-strtolfp.c | 63 + contrib/ntp/tests/libntp/run-timespecops.c | 105 + contrib/ntp/tests/libntp/run-timevalops.c | 105 + contrib/ntp/tests/libntp/run-tstotv.c | 55 + contrib/ntp/tests/libntp/run-tvtots.c | 55 + contrib/ntp/tests/libntp/run-uglydate.c | 51 + contrib/ntp/tests/libntp/run-vi64ops.c | 56 + contrib/ntp/tests/libntp/run-ymd2yd.c | 57 + contrib/ntp/tests/libntp/sfptostr.c | 73 + contrib/ntp/tests/libntp/sockaddrtest.h | 57 + contrib/ntp/tests/libntp/socktoa.c | 109 + contrib/ntp/tests/libntp/ssl_init.c | 58 + contrib/ntp/tests/libntp/statestr.c | 36 + contrib/ntp/tests/libntp/strtolfp.c | 114 + contrib/ntp/tests/libntp/test-libntp.c | 32 + contrib/ntp/tests/libntp/test-libntp.h | 3 + contrib/ntp/tests/libntp/timespecops.c | 587 ++++ contrib/ntp/tests/libntp/timevalops.c | 598 ++++ contrib/ntp/tests/libntp/tstotv.c | 44 + contrib/ntp/tests/libntp/tvtots.c | 54 + contrib/ntp/tests/libntp/uglydate.c | 18 + contrib/ntp/tests/libntp/vi64ops.c | 72 + contrib/ntp/tests/libntp/ymd2yd.c | 35 + 125 files changed, 16355 insertions(+) create mode 100644 contrib/ntp/tests/libntp/Makefile.am create mode 100644 contrib/ntp/tests/libntp/Makefile.in create mode 100644 contrib/ntp/tests/libntp/a_md5encrypt.c create mode 100644 contrib/ntp/tests/libntp/atoint.c create mode 100644 contrib/ntp/tests/libntp/atouint.c create mode 100644 contrib/ntp/tests/libntp/authkeys.c create mode 100644 contrib/ntp/tests/libntp/buftvtots.c create mode 100644 contrib/ntp/tests/libntp/calendar.c create mode 100644 contrib/ntp/tests/libntp/caljulian.c create mode 100644 contrib/ntp/tests/libntp/caltontp.c create mode 100644 contrib/ntp/tests/libntp/calyearstart.c create mode 100644 contrib/ntp/tests/libntp/clocktime.c create mode 100644 contrib/ntp/tests/libntp/decodenetnum.c create mode 100644 contrib/ntp/tests/libntp/g_a_md5encrypt.cpp create mode 100644 contrib/ntp/tests/libntp/g_atoint.cpp create mode 100644 contrib/ntp/tests/libntp/g_atouint.cpp create mode 100644 contrib/ntp/tests/libntp/g_authkeys.cpp create mode 100644 contrib/ntp/tests/libntp/g_buftvtots.cpp create mode 100644 contrib/ntp/tests/libntp/g_calendar.cpp create mode 100644 contrib/ntp/tests/libntp/g_caljulian.cpp create mode 100644 contrib/ntp/tests/libntp/g_caltontp.cpp create mode 100644 contrib/ntp/tests/libntp/g_calyearstart.cpp create mode 100644 contrib/ntp/tests/libntp/g_clocktime.cpp create mode 100644 contrib/ntp/tests/libntp/g_decodenetnum.cpp create mode 100644 contrib/ntp/tests/libntp/g_hextoint.cpp create mode 100644 contrib/ntp/tests/libntp/g_hextolfp.cpp create mode 100644 contrib/ntp/tests/libntp/g_humandate.cpp create mode 100644 contrib/ntp/tests/libntp/g_lfpfunc.cpp create mode 100644 contrib/ntp/tests/libntp/g_lfptest.h create mode 100644 contrib/ntp/tests/libntp/g_lfptostr.cpp create mode 100644 contrib/ntp/tests/libntp/g_libntptest.cpp create mode 100644 contrib/ntp/tests/libntp/g_libntptest.h create mode 100644 contrib/ntp/tests/libntp/g_modetoa.cpp create mode 100644 contrib/ntp/tests/libntp/g_msyslog.cpp create mode 100644 contrib/ntp/tests/libntp/g_netof.cpp create mode 100644 contrib/ntp/tests/libntp/g_numtoa.cpp create mode 100644 contrib/ntp/tests/libntp/g_numtohost.cpp create mode 100644 contrib/ntp/tests/libntp/g_octtoint.cpp create mode 100644 contrib/ntp/tests/libntp/g_prettydate.cpp create mode 100644 contrib/ntp/tests/libntp/g_recvbuff.cpp create mode 100644 contrib/ntp/tests/libntp/g_refnumtoa.cpp create mode 100644 contrib/ntp/tests/libntp/g_sfptostr.cpp create mode 100644 contrib/ntp/tests/libntp/g_sockaddrtest.h create mode 100644 contrib/ntp/tests/libntp/g_socktoa.cpp create mode 100644 contrib/ntp/tests/libntp/g_ssl_init.cpp create mode 100644 contrib/ntp/tests/libntp/g_statestr.cpp create mode 100644 contrib/ntp/tests/libntp/g_strtolfp.cpp create mode 100644 contrib/ntp/tests/libntp/g_timespecops.cpp create mode 100644 contrib/ntp/tests/libntp/g_timestructs.cpp create mode 100644 contrib/ntp/tests/libntp/g_timestructs.h create mode 100644 contrib/ntp/tests/libntp/g_timevalops.cpp create mode 100644 contrib/ntp/tests/libntp/g_tstotv.cpp create mode 100644 contrib/ntp/tests/libntp/g_tvtots.cpp create mode 100644 contrib/ntp/tests/libntp/g_uglydate.cpp create mode 100644 contrib/ntp/tests/libntp/g_vi64ops.cpp create mode 100644 contrib/ntp/tests/libntp/g_ymd2yd.cpp create mode 100644 contrib/ntp/tests/libntp/hextoint.c create mode 100644 contrib/ntp/tests/libntp/hextolfp.c create mode 100644 contrib/ntp/tests/libntp/humandate.c create mode 100644 contrib/ntp/tests/libntp/lfpfunc.c create mode 100644 contrib/ntp/tests/libntp/lfptest.h create mode 100644 contrib/ntp/tests/libntp/lfptostr.c create mode 100644 contrib/ntp/tests/libntp/modetoa.c create mode 100644 contrib/ntp/tests/libntp/msyslog.c create mode 100644 contrib/ntp/tests/libntp/netof.c create mode 100644 contrib/ntp/tests/libntp/numtoa.c create mode 100644 contrib/ntp/tests/libntp/numtohost.c create mode 100644 contrib/ntp/tests/libntp/octtoint.c create mode 100644 contrib/ntp/tests/libntp/prettydate.c create mode 100644 contrib/ntp/tests/libntp/recvbuff.c create mode 100644 contrib/ntp/tests/libntp/refidsmear.c create mode 100644 contrib/ntp/tests/libntp/refnumtoa.c create mode 100644 contrib/ntp/tests/libntp/run-a_md5encrypt.c create mode 100644 contrib/ntp/tests/libntp/run-atoint.c create mode 100644 contrib/ntp/tests/libntp/run-atouint.c create mode 100644 contrib/ntp/tests/libntp/run-authkeys.c create mode 100644 contrib/ntp/tests/libntp/run-buftvtots.c create mode 100644 contrib/ntp/tests/libntp/run-calendar.c create mode 100644 contrib/ntp/tests/libntp/run-caljulian.c create mode 100644 contrib/ntp/tests/libntp/run-caltontp.c create mode 100644 contrib/ntp/tests/libntp/run-calyearstart.c create mode 100644 contrib/ntp/tests/libntp/run-clocktime.c create mode 100644 contrib/ntp/tests/libntp/run-decodenetnum.c create mode 100644 contrib/ntp/tests/libntp/run-hextoint.c create mode 100644 contrib/ntp/tests/libntp/run-hextolfp.c create mode 100644 contrib/ntp/tests/libntp/run-humandate.c create mode 100644 contrib/ntp/tests/libntp/run-lfpfunc.c create mode 100644 contrib/ntp/tests/libntp/run-lfptostr.c create mode 100644 contrib/ntp/tests/libntp/run-modetoa.c create mode 100644 contrib/ntp/tests/libntp/run-msyslog.c create mode 100644 contrib/ntp/tests/libntp/run-netof.c create mode 100644 contrib/ntp/tests/libntp/run-numtoa.c create mode 100644 contrib/ntp/tests/libntp/run-numtohost.c create mode 100644 contrib/ntp/tests/libntp/run-octtoint.c create mode 100644 contrib/ntp/tests/libntp/run-prettydate.c create mode 100644 contrib/ntp/tests/libntp/run-recvbuff.c create mode 100644 contrib/ntp/tests/libntp/run-refidsmear.c create mode 100644 contrib/ntp/tests/libntp/run-refnumtoa.c create mode 100644 contrib/ntp/tests/libntp/run-sfptostr.c create mode 100644 contrib/ntp/tests/libntp/run-socktoa.c create mode 100644 contrib/ntp/tests/libntp/run-ssl_init.c create mode 100644 contrib/ntp/tests/libntp/run-statestr.c create mode 100644 contrib/ntp/tests/libntp/run-strtolfp.c create mode 100644 contrib/ntp/tests/libntp/run-timespecops.c create mode 100644 contrib/ntp/tests/libntp/run-timevalops.c create mode 100644 contrib/ntp/tests/libntp/run-tstotv.c create mode 100644 contrib/ntp/tests/libntp/run-tvtots.c create mode 100644 contrib/ntp/tests/libntp/run-uglydate.c create mode 100644 contrib/ntp/tests/libntp/run-vi64ops.c create mode 100644 contrib/ntp/tests/libntp/run-ymd2yd.c create mode 100644 contrib/ntp/tests/libntp/sfptostr.c create mode 100644 contrib/ntp/tests/libntp/sockaddrtest.h create mode 100644 contrib/ntp/tests/libntp/socktoa.c create mode 100644 contrib/ntp/tests/libntp/ssl_init.c create mode 100644 contrib/ntp/tests/libntp/statestr.c create mode 100644 contrib/ntp/tests/libntp/strtolfp.c create mode 100644 contrib/ntp/tests/libntp/test-libntp.c create mode 100644 contrib/ntp/tests/libntp/test-libntp.h create mode 100644 contrib/ntp/tests/libntp/timespecops.c create mode 100644 contrib/ntp/tests/libntp/timevalops.c create mode 100644 contrib/ntp/tests/libntp/tstotv.c create mode 100644 contrib/ntp/tests/libntp/tvtots.c create mode 100644 contrib/ntp/tests/libntp/uglydate.c create mode 100644 contrib/ntp/tests/libntp/vi64ops.c create mode 100644 contrib/ntp/tests/libntp/ymd2yd.c (limited to 'contrib/ntp/tests/libntp') diff --git a/contrib/ntp/tests/libntp/Makefile.am b/contrib/ntp/tests/libntp/Makefile.am new file mode 100644 index 0000000..288d38c --- /dev/null +++ b/contrib/ntp/tests/libntp/Makefile.am @@ -0,0 +1,901 @@ +NULL = +BUILT_SOURCES = +CLEANFILES = + +run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb + +#removed test-libntp +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-tstotv \ + test-tvtots \ + test-uglydate \ + test-vi64ops \ + test-ymd2yd \ + $(NULL) + +if GTEST_AVAILABLE +check_PROGRAMS += tests +else +EXTRA_PROGRAMS = tests +endif + +LDADD = \ + $(top_builddir)/libntp/libntp.a \ + $(LDADD_LIBNTP) \ + $(PTHREAD_LIBS) \ + $(LDADD_NTP) \ + $(LIBM) \ + $(NULL) + +tests_LDADD = \ + $(LDADD) \ + $(GTEST_LDFLAGS) \ + $(GTEST_LIBS) \ + $(NULL) + +unity_tests_LDADD = \ + $(LDADD) \ + $(top_builddir)/sntp/unity/libunity.a \ + $(NULL) + +AM_CFLAGS = $(CFLAGS_NTP) +AM_CXXFLAGS = $(GTEST_CXXFLAGS) + +AM_CPPFLAGS = $(NTP_INCS) +AM_CPPFLAGS += -I$(top_srcdir)/sntp +AM_CPPFLAGS += $(GTEST_CPPFLAGS) +AM_CPPFLAGS += $(CPPFLAGS_NTP) + +AM_LDFLAGS = $(LDFLAGS_NTP) + +tests_SOURCES = \ + $(top_srcdir)/sntp/tests_main.cpp \ + g_libntptest.cpp \ + g_a_md5encrypt.cpp \ + g_atoint.cpp \ + g_atouint.cpp \ + g_authkeys.cpp \ + g_buftvtots.cpp \ + g_calendar.cpp \ + g_caljulian.cpp \ + g_caltontp.cpp \ + g_calyearstart.cpp \ + g_clocktime.cpp \ + g_decodenetnum.cpp \ + g_hextoint.cpp \ + g_hextolfp.cpp \ + g_humandate.cpp \ + g_lfpfunc.cpp \ + g_lfptostr.cpp \ + g_modetoa.cpp \ + g_msyslog.cpp \ + g_netof.cpp \ + g_numtoa.cpp \ + g_numtohost.cpp \ + g_octtoint.cpp \ + g_prettydate.cpp \ + g_recvbuff.cpp \ + g_refnumtoa.cpp \ + g_sfptostr.cpp \ + g_socktoa.cpp \ + g_ssl_init.cpp \ + g_statestr.cpp \ + g_strtolfp.cpp \ + g_timespecops.cpp \ + g_timestructs.cpp \ + g_timevalops.cpp \ + g_tstotv.cpp \ + g_tvtots.cpp \ + g_uglydate.cpp \ + g_vi64ops.cpp \ + g_ymd2yd.cpp \ + $(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-tstotv.c \ + $(srcdir)/run-tvtots.c \ + $(srcdir)/run-uglydate.c \ + $(srcdir)/run-vi64ops.c \ + $(srcdir)/run-ymd2yd.c \ + $(NULL) + +noinst_HEADERS = \ + g_lfptest.h \ + lfptest.h \ + g_libntptest.h \ + g_sockaddrtest.h \ + sockaddrtest.h \ + g_timestructs.h \ + test-libntp.h \ + $(NULL) + +### + +test_a_md5encrypt_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_a_md5encrypt_LDADD = \ + $(unity_tests_LDADD) \ + $(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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_atoint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_atouint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_authkeys_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_buftvtots_SOURCES = \ + buftvtots.c \ + run-buftvtots.c \ + $(NULL) + +test_buftvtots_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + +$(srcdir)/run-buftvtots.c: $(srcdir)/buftvtots.c $(std_unity_list) + $(run_unity) buftvtots.c run-buftvtots.c + +### + +test_calendar_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_calendar_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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 = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_caltontp_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(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 = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_caljulian_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_calyearstart_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_clocktime_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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 = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_decodenetnum_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(NULL) + +test_decodenetnum_SOURCES = \ + decodenetnum.c \ + run-decodenetnum.c \ + $(NULL) + +$(srcdir)/run-decodenetnum.c: $(srcdir)/decodenetnum.c $(std_unity_list) + $(run_unity) decodenetnum.c run-decodenetnum.c + +### + +test_hextoint_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_hextoint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_hextolfp_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_hextolfp_SOURCES = \ + hextolfp.c \ + run-hextolfp.c \ + $(NULL) + +$(srcdir)/run-hextolfp.c: $(srcdir)/hextolfp.c $(std_unity_list) + $(run_unity) hextolfp.c run-hextolfp.c + +### + +test_humandate_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_humandate_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + +test_lfpfunc_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_lfptostr_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_modetoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_msyslog_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_netof_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_netof_SOURCES = \ + netof.c \ + run-netof.c \ + $(NULL) + +$(srcdir)/run-netof.c: $(srcdir)/netof.c $(std_unity_list) + $(run_unity) netof.c run-netof.c + +### + +test_numtoa_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_numtoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_numtohost_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_octtoint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_prettydate_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_recvbuff_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_refidsmear_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_refnumtoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + +test_sfptostr_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_socktoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_socktoa_SOURCES = \ + socktoa.c \ + run-socktoa.c \ + $(NULL) + +$(srcdir)/run-socktoa.c: $(srcdir)/socktoa.c $(std_unity_list) + $(run_unity) socktoa.c run-socktoa.c + +### + +test_ssl_init_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_ssl_init_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_statestr_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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 = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_strtolfp_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(NULL) + +test_strtolfp_SOURCES = \ + strtolfp.c \ + run-strtolfp.c \ + $(NULL) + +$(srcdir)/run-strtolfp.c: $(srcdir)/strtolfp.c $(std_unity_list) + $(run_unity) strtolfp.c run-strtolfp.c + +### + +test_timespecops_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_timespecops_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_timevalops_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_tstotv_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_tstotv_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + +test_tvtots_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_tvtots_SOURCES = \ + tvtots.c \ + run-tvtots.c \ + $(NULL) + +$(srcdir)/run-tvtots.c: $(srcdir)/tvtots.c $(std_unity_list) + $(run_unity) tvtots.c run-tvtots.c + +### + +test_uglydate_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_uglydate_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_vi64ops_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_ymd2yd_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +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 new file mode 100644 index 0000000..e0f9222 --- /dev/null +++ b/contrib/ntp/tests/libntp/Makefile.in @@ -0,0 +1,4131 @@ +# 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-tstotv$(EXEEXT) \ + test-tvtots$(EXEEXT) test-uglydate$(EXEEXT) \ + test-vi64ops$(EXEEXT) test-ymd2yd$(EXEEXT) $(am__EXEEXT_1) \ + $(am__EXEEXT_2) +@GTEST_AVAILABLE_TRUE@am__append_1 = tests +@GTEST_AVAILABLE_FALSE@EXTRA_PROGRAMS = tests$(EXEEXT) +@NTP_CROSSCOMPILE_FALSE@am__append_2 = $(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_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 = +@GTEST_AVAILABLE_TRUE@am__EXEEXT_2 = tests$(EXEEXT) +am__objects_1 = +am_test_a_md5encrypt_OBJECTS = \ + test_a_md5encrypt-a_md5encrypt.$(OBJEXT) \ + test_a_md5encrypt-run-a_md5encrypt.$(OBJEXT) $(am__objects_1) +test_a_md5encrypt_OBJECTS = $(am_test_a_md5encrypt_OBJECTS) +am__DEPENDENCIES_1 = +am__DEPENDENCIES_2 = $(top_builddir)/libntp/libntp.a \ + $(am__DEPENDENCIES_1) $(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) +test_a_md5encrypt_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_a_md5encrypt_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_a_md5encrypt_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +am_test_atoint_OBJECTS = test_atoint-atoint.$(OBJEXT) \ + test_atoint-run-atoint.$(OBJEXT) $(am__objects_1) +test_atoint_OBJECTS = $(am_test_atoint_OBJECTS) +test_atoint_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) +test_atoint_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_atoint_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_atouint_OBJECTS = test_atouint-atouint.$(OBJEXT) \ + test_atouint-run-atouint.$(OBJEXT) $(am__objects_1) +test_atouint_OBJECTS = $(am_test_atouint_OBJECTS) +test_atouint_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_atouint_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_atouint_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_authkeys_OBJECTS = test_authkeys-authkeys.$(OBJEXT) \ + test_authkeys-run-authkeys.$(OBJEXT) $(am__objects_1) +test_authkeys_OBJECTS = $(am_test_authkeys_OBJECTS) +test_authkeys_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_authkeys_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_authkeys_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_buftvtots_OBJECTS = test_buftvtots-buftvtots.$(OBJEXT) \ + test_buftvtots-run-buftvtots.$(OBJEXT) $(am__objects_1) +test_buftvtots_OBJECTS = $(am_test_buftvtots_OBJECTS) +test_buftvtots_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_buftvtots_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_buftvtots_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ +am_test_calendar_OBJECTS = test_calendar-calendar.$(OBJEXT) \ + test_calendar-run-calendar.$(OBJEXT) \ + test_calendar-test-libntp.$(OBJEXT) $(am__objects_1) +test_calendar_OBJECTS = $(am_test_calendar_OBJECTS) +test_calendar_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_calendar_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_calendar_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +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_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(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_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(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 = \ + test_calyearstart-calyearstart.$(OBJEXT) \ + test_calyearstart-run-calyearstart.$(OBJEXT) \ + test_calyearstart-test-libntp.$(OBJEXT) $(am__objects_1) +test_calyearstart_OBJECTS = $(am_test_calyearstart_OBJECTS) +test_calyearstart_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_calyearstart_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_calyearstart_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +am_test_clocktime_OBJECTS = test_clocktime-clocktime.$(OBJEXT) \ + test_clocktime-run-clocktime.$(OBJEXT) \ + test_clocktime-test-libntp.$(OBJEXT) $(am__objects_1) +test_clocktime_OBJECTS = $(am_test_clocktime_OBJECTS) +test_clocktime_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_clocktime_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_clocktime_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ +am_test_decodenetnum_OBJECTS = \ + test_decodenetnum-decodenetnum.$(OBJEXT) \ + test_decodenetnum-run-decodenetnum.$(OBJEXT) $(am__objects_1) +test_decodenetnum_OBJECTS = $(am_test_decodenetnum_OBJECTS) +test_decodenetnum_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(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 = test_hextoint-hextoint.$(OBJEXT) \ + test_hextoint-run-hextoint.$(OBJEXT) $(am__objects_1) +test_hextoint_OBJECTS = $(am_test_hextoint_OBJECTS) +test_hextoint_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_hextoint_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_hextoint_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_hextolfp_OBJECTS = test_hextolfp-hextolfp.$(OBJEXT) \ + test_hextolfp-run-hextolfp.$(OBJEXT) $(am__objects_1) +test_hextolfp_OBJECTS = $(am_test_hextolfp_OBJECTS) +test_hextolfp_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_hextolfp_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_hextolfp_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_humandate_OBJECTS = test_humandate-humandate.$(OBJEXT) \ + test_humandate-run-humandate.$(OBJEXT) $(am__objects_1) +test_humandate_OBJECTS = $(am_test_humandate_OBJECTS) +test_humandate_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_humandate_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_humandate_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ +am_test_lfpfunc_OBJECTS = test_lfpfunc-lfpfunc.$(OBJEXT) \ + test_lfpfunc-run-lfpfunc.$(OBJEXT) $(am__objects_1) +test_lfpfunc_OBJECTS = $(am_test_lfpfunc_OBJECTS) +test_lfpfunc_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_lfpfunc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_lfpfunc_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_lfptostr_OBJECTS = test_lfptostr-lfptostr.$(OBJEXT) \ + test_lfptostr-run-lfptostr.$(OBJEXT) $(am__objects_1) +test_lfptostr_OBJECTS = $(am_test_lfptostr_OBJECTS) +test_lfptostr_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_lfptostr_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_lfptostr_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_modetoa_OBJECTS = test_modetoa-modetoa.$(OBJEXT) \ + test_modetoa-run-modetoa.$(OBJEXT) $(am__objects_1) +test_modetoa_OBJECTS = $(am_test_modetoa_OBJECTS) +test_modetoa_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_modetoa_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_modetoa_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_msyslog_OBJECTS = test_msyslog-msyslog.$(OBJEXT) \ + test_msyslog-run-msyslog.$(OBJEXT) $(am__objects_1) +test_msyslog_OBJECTS = $(am_test_msyslog_OBJECTS) +test_msyslog_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_msyslog_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_msyslog_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_netof_OBJECTS = test_netof-netof.$(OBJEXT) \ + test_netof-run-netof.$(OBJEXT) $(am__objects_1) +test_netof_OBJECTS = $(am_test_netof_OBJECTS) +test_netof_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) +test_netof_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_netof_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_numtoa_OBJECTS = test_numtoa-numtoa.$(OBJEXT) \ + test_numtoa-run-numtoa.$(OBJEXT) $(am__objects_1) +test_numtoa_OBJECTS = $(am_test_numtoa_OBJECTS) +test_numtoa_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) +test_numtoa_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_numtoa_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_numtohost_OBJECTS = test_numtohost-numtohost.$(OBJEXT) \ + test_numtohost-run-numtohost.$(OBJEXT) $(am__objects_1) +test_numtohost_OBJECTS = $(am_test_numtohost_OBJECTS) +test_numtohost_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_numtohost_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_numtohost_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ +am_test_octtoint_OBJECTS = test_octtoint-octtoint.$(OBJEXT) \ + test_octtoint-run-octtoint.$(OBJEXT) $(am__objects_1) +test_octtoint_OBJECTS = $(am_test_octtoint_OBJECTS) +test_octtoint_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_octtoint_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_octtoint_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_prettydate_OBJECTS = test_prettydate-prettydate.$(OBJEXT) \ + test_prettydate-run-prettydate.$(OBJEXT) $(am__objects_1) +test_prettydate_OBJECTS = $(am_test_prettydate_OBJECTS) +test_prettydate_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_prettydate_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_prettydate_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +am_test_recvbuff_OBJECTS = test_recvbuff-recvbuff.$(OBJEXT) \ + test_recvbuff-run-recvbuff.$(OBJEXT) $(am__objects_1) +test_recvbuff_OBJECTS = $(am_test_recvbuff_OBJECTS) +test_recvbuff_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_recvbuff_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_recvbuff_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_refidsmear_OBJECTS = test_refidsmear-refidsmear.$(OBJEXT) \ + test_refidsmear-run-refidsmear.$(OBJEXT) $(am__objects_1) +test_refidsmear_OBJECTS = $(am_test_refidsmear_OBJECTS) +test_refidsmear_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_refidsmear_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_refidsmear_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +am_test_refnumtoa_OBJECTS = test_refnumtoa-refnumtoa.$(OBJEXT) \ + test_refnumtoa-run-refnumtoa.$(OBJEXT) $(am__objects_1) +test_refnumtoa_OBJECTS = $(am_test_refnumtoa_OBJECTS) +test_refnumtoa_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_refnumtoa_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_refnumtoa_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ +am_test_sfptostr_OBJECTS = test_sfptostr-sfptostr.$(OBJEXT) \ + test_sfptostr-run-sfptostr.$(OBJEXT) $(am__objects_1) +test_sfptostr_OBJECTS = $(am_test_sfptostr_OBJECTS) +test_sfptostr_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_sfptostr_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_sfptostr_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_socktoa_OBJECTS = test_socktoa-socktoa.$(OBJEXT) \ + test_socktoa-run-socktoa.$(OBJEXT) $(am__objects_1) +test_socktoa_OBJECTS = $(am_test_socktoa_OBJECTS) +test_socktoa_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_socktoa_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_socktoa_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_ssl_init_OBJECTS = test_ssl_init-ssl_init.$(OBJEXT) \ + test_ssl_init-run-ssl_init.$(OBJEXT) $(am__objects_1) +test_ssl_init_OBJECTS = $(am_test_ssl_init_OBJECTS) +test_ssl_init_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_ssl_init_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_ssl_init_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_statestr_OBJECTS = test_statestr-statestr.$(OBJEXT) \ + test_statestr-run-statestr.$(OBJEXT) $(am__objects_1) +test_statestr_OBJECTS = $(am_test_statestr_OBJECTS) +test_statestr_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_statestr_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_statestr_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_strtolfp_OBJECTS = test_strtolfp-strtolfp.$(OBJEXT) \ + test_strtolfp-run-strtolfp.$(OBJEXT) $(am__objects_1) +test_strtolfp_OBJECTS = $(am_test_strtolfp_OBJECTS) +test_strtolfp_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(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 = test_timespecops-timespecops.$(OBJEXT) \ + test_timespecops-run-timespecops.$(OBJEXT) $(am__objects_1) +test_timespecops_OBJECTS = $(am_test_timespecops_OBJECTS) +test_timespecops_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_timespecops_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_timespecops_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +am_test_timevalops_OBJECTS = test_timevalops-timevalops.$(OBJEXT) \ + test_timevalops-run-timevalops.$(OBJEXT) $(am__objects_1) +test_timevalops_OBJECTS = $(am_test_timevalops_OBJECTS) +test_timevalops_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_timevalops_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(test_timevalops_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +am_test_tstotv_OBJECTS = test_tstotv-tstotv.$(OBJEXT) \ + test_tstotv-run-tstotv.$(OBJEXT) $(am__objects_1) +test_tstotv_OBJECTS = $(am_test_tstotv_OBJECTS) +test_tstotv_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) +test_tstotv_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_tstotv_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_tvtots_OBJECTS = test_tvtots-tvtots.$(OBJEXT) \ + test_tvtots-run-tvtots.$(OBJEXT) $(am__objects_1) +test_tvtots_OBJECTS = $(am_test_tvtots_OBJECTS) +test_tvtots_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) +test_tvtots_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_tvtots_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_uglydate_OBJECTS = test_uglydate-uglydate.$(OBJEXT) \ + test_uglydate-run-uglydate.$(OBJEXT) $(am__objects_1) +test_uglydate_OBJECTS = $(am_test_uglydate_OBJECTS) +test_uglydate_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_uglydate_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_uglydate_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_vi64ops_OBJECTS = test_vi64ops-vi64ops.$(OBJEXT) \ + test_vi64ops-run-vi64ops.$(OBJEXT) $(am__objects_1) +test_vi64ops_OBJECTS = $(am_test_vi64ops_OBJECTS) +test_vi64ops_DEPENDENCIES = $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_1) +test_vi64ops_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_vi64ops_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_test_ymd2yd_OBJECTS = test_ymd2yd-ymd2yd.$(OBJEXT) \ + test_ymd2yd-run-ymd2yd.$(OBJEXT) $(am__objects_1) +test_ymd2yd_OBJECTS = $(am_test_ymd2yd_OBJECTS) +test_ymd2yd_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) +test_ymd2yd_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_ymd2yd_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_tests_OBJECTS = tests_main.$(OBJEXT) g_libntptest.$(OBJEXT) \ + g_a_md5encrypt.$(OBJEXT) g_atoint.$(OBJEXT) \ + g_atouint.$(OBJEXT) g_authkeys.$(OBJEXT) g_buftvtots.$(OBJEXT) \ + g_calendar.$(OBJEXT) g_caljulian.$(OBJEXT) \ + g_caltontp.$(OBJEXT) g_calyearstart.$(OBJEXT) \ + g_clocktime.$(OBJEXT) g_decodenetnum.$(OBJEXT) \ + g_hextoint.$(OBJEXT) g_hextolfp.$(OBJEXT) \ + g_humandate.$(OBJEXT) g_lfpfunc.$(OBJEXT) g_lfptostr.$(OBJEXT) \ + g_modetoa.$(OBJEXT) g_msyslog.$(OBJEXT) g_netof.$(OBJEXT) \ + g_numtoa.$(OBJEXT) g_numtohost.$(OBJEXT) g_octtoint.$(OBJEXT) \ + g_prettydate.$(OBJEXT) g_recvbuff.$(OBJEXT) \ + g_refnumtoa.$(OBJEXT) g_sfptostr.$(OBJEXT) g_socktoa.$(OBJEXT) \ + g_ssl_init.$(OBJEXT) g_statestr.$(OBJEXT) g_strtolfp.$(OBJEXT) \ + g_timespecops.$(OBJEXT) g_timestructs.$(OBJEXT) \ + g_timevalops.$(OBJEXT) g_tstotv.$(OBJEXT) g_tvtots.$(OBJEXT) \ + g_uglydate.$(OBJEXT) g_vi64ops.$(OBJEXT) g_ymd2yd.$(OBJEXT) \ + $(am__objects_1) +tests_OBJECTS = $(am_tests_OBJECTS) +tests_DEPENDENCIES = $(am__DEPENDENCIES_2) $(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 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_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_tstotv_SOURCES) \ + $(test_tvtots_SOURCES) $(test_uglydate_SOURCES) \ + $(test_vi64ops_SOURCES) $(test_ymd2yd_SOURCES) \ + $(tests_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_tstotv_SOURCES) \ + $(test_tvtots_SOURCES) $(test_uglydate_SOURCES) \ + $(test_vi64ops_SOURCES) $(test_ymd2yd_SOURCES) \ + $(tests_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@ +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_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@ +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-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 +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) \ + $(NULL) + +tests_LDADD = \ + $(LDADD) \ + $(GTEST_LDFLAGS) \ + $(GTEST_LIBS) \ + $(NULL) + +unity_tests_LDADD = \ + $(LDADD) \ + $(top_builddir)/sntp/unity/libunity.a \ + $(NULL) + +AM_CFLAGS = $(CFLAGS_NTP) +AM_CXXFLAGS = $(GTEST_CXXFLAGS) +AM_CPPFLAGS = $(NTP_INCS) -I$(top_srcdir)/sntp $(GTEST_CPPFLAGS) \ + $(CPPFLAGS_NTP) +AM_LDFLAGS = $(LDFLAGS_NTP) +tests_SOURCES = \ + $(top_srcdir)/sntp/tests_main.cpp \ + g_libntptest.cpp \ + g_a_md5encrypt.cpp \ + g_atoint.cpp \ + g_atouint.cpp \ + g_authkeys.cpp \ + g_buftvtots.cpp \ + g_calendar.cpp \ + g_caljulian.cpp \ + g_caltontp.cpp \ + g_calyearstart.cpp \ + g_clocktime.cpp \ + g_decodenetnum.cpp \ + g_hextoint.cpp \ + g_hextolfp.cpp \ + g_humandate.cpp \ + g_lfpfunc.cpp \ + g_lfptostr.cpp \ + g_modetoa.cpp \ + g_msyslog.cpp \ + g_netof.cpp \ + g_numtoa.cpp \ + g_numtohost.cpp \ + g_octtoint.cpp \ + g_prettydate.cpp \ + g_recvbuff.cpp \ + g_refnumtoa.cpp \ + g_sfptostr.cpp \ + g_socktoa.cpp \ + g_ssl_init.cpp \ + g_statestr.cpp \ + g_strtolfp.cpp \ + g_timespecops.cpp \ + g_timestructs.cpp \ + g_timevalops.cpp \ + g_tstotv.cpp \ + g_tvtots.cpp \ + g_uglydate.cpp \ + g_vi64ops.cpp \ + g_ymd2yd.cpp \ + $(NULL) + +noinst_HEADERS = \ + g_lfptest.h \ + lfptest.h \ + g_libntptest.h \ + g_sockaddrtest.h \ + sockaddrtest.h \ + g_timestructs.h \ + test-libntp.h \ + $(NULL) + + +### +test_a_md5encrypt_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_a_md5encrypt_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_a_md5encrypt_SOURCES = \ + a_md5encrypt.c \ + run-a_md5encrypt.c \ + $(NULL) + + +### +test_atoint_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_atoint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_atoint_SOURCES = \ + atoint.c \ + run-atoint.c \ + $(NULL) + + +### +test_atouint_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_atouint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_atouint_SOURCES = \ + atouint.c \ + run-atouint.c \ + $(NULL) + + +### +test_authkeys_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_authkeys_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_authkeys_SOURCES = \ + authkeys.c \ + run-authkeys.c \ + $(NULL) + + +### +test_buftvtots_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_buftvtots_SOURCES = \ + buftvtots.c \ + run-buftvtots.c \ + $(NULL) + +test_buftvtots_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + + +### +test_calendar_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_calendar_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_calendar_SOURCES = \ + calendar.c \ + run-calendar.c \ + test-libntp.c \ + $(NULL) + + +### +test_caltontp_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_caltontp_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(NULL) + +test_caltontp_SOURCES = \ + caltontp.c \ + run-caltontp.c \ + $(NULL) + + +### +test_caljulian_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_caljulian_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(NULL) + +test_caljulian_SOURCES = \ + caljulian.c \ + run-caljulian.c \ + test-libntp.c \ + $(NULL) + + +### +test_calyearstart_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_calyearstart_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_calyearstart_SOURCES = \ + calyearstart.c \ + run-calyearstart.c \ + test-libntp.c \ + $(NULL) + + +### +test_clocktime_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_clocktime_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_clocktime_SOURCES = \ + clocktime.c \ + run-clocktime.c \ + test-libntp.c \ + $(NULL) + + +### +test_decodenetnum_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_decodenetnum_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(NULL) + +test_decodenetnum_SOURCES = \ + decodenetnum.c \ + run-decodenetnum.c \ + $(NULL) + + +### +test_hextoint_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_hextoint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_hextoint_SOURCES = \ + hextoint.c \ + run-hextoint.c \ + $(NULL) + + +### +test_hextolfp_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_hextolfp_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_hextolfp_SOURCES = \ + hextolfp.c \ + run-hextolfp.c \ + $(NULL) + + +### +test_humandate_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_humandate_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_humandate_SOURCES = \ + humandate.c \ + run-humandate.c \ + $(NULL) + + +### +test_lfpfunc_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + +test_lfpfunc_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_lfpfunc_SOURCES = \ + lfpfunc.c \ + run-lfpfunc.c \ + $(NULL) + + +### +test_lfptostr_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_lfptostr_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_lfptostr_SOURCES = \ + lfptostr.c \ + run-lfptostr.c \ + $(NULL) + + +### +test_modetoa_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_modetoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_modetoa_SOURCES = \ + modetoa.c \ + run-modetoa.c \ + $(NULL) + + +### +test_msyslog_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_msyslog_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_msyslog_SOURCES = \ + msyslog.c \ + run-msyslog.c \ + $(NULL) + + +### +test_netof_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_netof_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_netof_SOURCES = \ + netof.c \ + run-netof.c \ + $(NULL) + + +### +test_numtoa_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_numtoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_numtoa_SOURCES = \ + numtoa.c \ + run-numtoa.c \ + $(NULL) + + +### +test_numtohost_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_numtohost_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_numtohost_SOURCES = \ + numtohost.c \ + run-numtohost.c \ + $(NULL) + + +### +test_octtoint_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_octtoint_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_octtoint_SOURCES = \ + octtoint.c \ + run-octtoint.c \ + $(NULL) + + +### +test_prettydate_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_prettydate_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_prettydate_SOURCES = \ + prettydate.c \ + run-prettydate.c \ + $(NULL) + + +### +test_recvbuff_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_recvbuff_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_recvbuff_SOURCES = \ + recvbuff.c \ + run-recvbuff.c \ + $(NULL) + + +### +test_refidsmear_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_refidsmear_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_refidsmear_SOURCES = \ + refidsmear.c \ + run-refidsmear.c \ + $(NULL) + + +### +test_refnumtoa_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_refnumtoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_refnumtoa_SOURCES = \ + refnumtoa.c \ + run-refnumtoa.c \ + $(NULL) + + +### +test_sfptostr_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + +test_sfptostr_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_sfptostr_SOURCES = \ + sfptostr.c \ + run-sfptostr.c \ + $(NULL) + + +### +test_socktoa_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_socktoa_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_socktoa_SOURCES = \ + socktoa.c \ + run-socktoa.c \ + $(NULL) + + +### +test_ssl_init_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_ssl_init_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_ssl_init_SOURCES = \ + ssl_init.c \ + run-ssl_init.c \ + $(NULL) + + +### +test_statestr_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_statestr_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_statestr_SOURCES = \ + statestr.c \ + run-statestr.c \ + $(NULL) + + +### +test_strtolfp_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_strtolfp_LDADD = \ + $(unity_tests_LDADD) \ + -lpthread \ + $(NULL) + +test_strtolfp_SOURCES = \ + strtolfp.c \ + run-strtolfp.c \ + $(NULL) + + +### +test_timespecops_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_timespecops_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_timespecops_SOURCES = \ + timespecops.c \ + run-timespecops.c \ + $(NULL) + + +### +test_timevalops_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_timevalops_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_timevalops_SOURCES = \ + timevalops.c \ + run-timevalops.c \ + $(NULL) + + +### +test_tstotv_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_tstotv_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_tstotv_SOURCES = \ + tstotv.c \ + run-tstotv.c \ + $(NULL) + + +### +test_tvtots_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + -DUNITY_INCLUDE_DOUBLE \ + $(NULL) + +test_tvtots_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_tvtots_SOURCES = \ + tvtots.c \ + run-tvtots.c \ + $(NULL) + + +### +test_uglydate_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_uglydate_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_uglydate_SOURCES = \ + uglydate.c \ + run-uglydate.c \ + $(NULL) + + +### +test_vi64ops_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_vi64ops_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_vi64ops_SOURCES = \ + vi64ops.c \ + run-vi64ops.c \ + $(NULL) + + +### +test_ymd2yd_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_ymd2yd_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_ymd2yd_SOURCES = \ + ymd2yd.c \ + run-ymd2yd.c \ + $(NULL) + + +### +TESTS = $(am__append_2) +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 .cpp .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)$(test_a_md5encrypt_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)$(test_atoint_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)$(test_atouint_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)$(test_authkeys_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)$(test_buftvtots_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)$(test_calendar_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)$(test_calyearstart_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)$(test_clocktime_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)$(test_hextoint_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)$(test_hextolfp_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)$(test_humandate_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)$(test_lfpfunc_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)$(test_lfptostr_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)$(test_modetoa_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)$(test_msyslog_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)$(test_netof_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)$(test_numtoa_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)$(test_numtohost_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)$(test_octtoint_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)$(test_prettydate_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)$(test_recvbuff_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)$(test_refidsmear_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)$(test_refnumtoa_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)$(test_sfptostr_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)$(test_socktoa_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)$(test_ssl_init_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)$(test_statestr_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)$(test_timespecops_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)$(test_timevalops_LINK) $(test_timevalops_OBJECTS) $(test_timevalops_LDADD) $(LIBS) + +test-tstotv$(EXEEXT): $(test_tstotv_OBJECTS) $(test_tstotv_DEPENDENCIES) $(EXTRA_test_tstotv_DEPENDENCIES) + @rm -f test-tstotv$(EXEEXT) + $(AM_V_CCLD)$(test_tstotv_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)$(test_tvtots_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)$(test_uglydate_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)$(test_vi64ops_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)$(test_ymd2yd_LINK) $(test_ymd2yd_OBJECTS) $(test_ymd2yd_LDADD) $(LIBS) + +tests$(EXEEXT): $(tests_OBJECTS) $(tests_DEPENDENCIES) $(EXTRA_tests_DEPENDENCIES) + @rm -f tests$(EXEEXT) + $(AM_V_CXXLD)$(CXXLINK) $(tests_OBJECTS) $(tests_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_a_md5encrypt.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_atoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_atouint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_authkeys.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_buftvtots.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_calendar.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_caljulian.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_caltontp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_calyearstart.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_clocktime.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_decodenetnum.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_hextoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_hextolfp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_humandate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_lfpfunc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_lfptostr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_libntptest.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_modetoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_msyslog.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_netof.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_numtoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_numtohost.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_octtoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_prettydate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_recvbuff.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_refnumtoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_sfptostr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_socktoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_ssl_init.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_statestr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_strtolfp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_timespecops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_timestructs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_timevalops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_tstotv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_tvtots.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_uglydate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_vi64ops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_ymd2yd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_a_md5encrypt-a_md5encrypt.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_a_md5encrypt-run-a_md5encrypt.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_atoint-atoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_atoint-run-atoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_atouint-atouint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_atouint-run-atouint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_authkeys-authkeys.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_authkeys-run-authkeys.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_buftvtots-buftvtots.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_buftvtots-run-buftvtots.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_calendar-calendar.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_calendar-run-calendar.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_calendar-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_calyearstart-calyearstart.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_calyearstart-run-calyearstart.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_calyearstart-test-libntp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_clocktime-clocktime.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_clocktime-run-clocktime.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_clocktime-test-libntp.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_hextoint-hextoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_hextoint-run-hextoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_hextolfp-hextolfp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_hextolfp-run-hextolfp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_humandate-humandate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_humandate-run-humandate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_lfpfunc-lfpfunc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_lfpfunc-run-lfpfunc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_lfptostr-lfptostr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_lfptostr-run-lfptostr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_modetoa-modetoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_modetoa-run-modetoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_msyslog-msyslog.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_msyslog-run-msyslog.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_netof-netof.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_netof-run-netof.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_numtoa-numtoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_numtoa-run-numtoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_numtohost-numtohost.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_numtohost-run-numtohost.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_octtoint-octtoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_octtoint-run-octtoint.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_prettydate-prettydate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_prettydate-run-prettydate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_recvbuff-recvbuff.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_recvbuff-run-recvbuff.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_refidsmear-refidsmear.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_refidsmear-run-refidsmear.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_refnumtoa-refnumtoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_refnumtoa-run-refnumtoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_sfptostr-run-sfptostr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_sfptostr-sfptostr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_socktoa-run-socktoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_socktoa-socktoa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ssl_init-run-ssl_init.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ssl_init-ssl_init.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_statestr-run-statestr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_statestr-statestr.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)/test_timespecops-run-timespecops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_timespecops-timespecops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_timevalops-run-timevalops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_timevalops-timevalops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_tstotv-run-tstotv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_tstotv-tstotv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_tvtots-run-tvtots.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_tvtots-tvtots.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_uglydate-run-uglydate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_uglydate-uglydate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_vi64ops-run-vi64ops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_vi64ops-vi64ops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ymd2yd-run-ymd2yd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ymd2yd-ymd2yd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tests_main.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_a_md5encrypt-a_md5encrypt.o: a_md5encrypt.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_a_md5encrypt_CFLAGS) $(CFLAGS) -MT test_a_md5encrypt-a_md5encrypt.o -MD -MP -MF $(DEPDIR)/test_a_md5encrypt-a_md5encrypt.Tpo -c -o test_a_md5encrypt-a_md5encrypt.o `test -f 'a_md5encrypt.c' || echo '$(srcdir)/'`a_md5encrypt.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_a_md5encrypt-a_md5encrypt.Tpo $(DEPDIR)/test_a_md5encrypt-a_md5encrypt.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='a_md5encrypt.c' object='test_a_md5encrypt-a_md5encrypt.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_a_md5encrypt_CFLAGS) $(CFLAGS) -c -o test_a_md5encrypt-a_md5encrypt.o `test -f 'a_md5encrypt.c' || echo '$(srcdir)/'`a_md5encrypt.c + +test_a_md5encrypt-a_md5encrypt.obj: a_md5encrypt.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_a_md5encrypt_CFLAGS) $(CFLAGS) -MT test_a_md5encrypt-a_md5encrypt.obj -MD -MP -MF $(DEPDIR)/test_a_md5encrypt-a_md5encrypt.Tpo -c -o test_a_md5encrypt-a_md5encrypt.obj `if test -f 'a_md5encrypt.c'; then $(CYGPATH_W) 'a_md5encrypt.c'; else $(CYGPATH_W) '$(srcdir)/a_md5encrypt.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_a_md5encrypt-a_md5encrypt.Tpo $(DEPDIR)/test_a_md5encrypt-a_md5encrypt.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='a_md5encrypt.c' object='test_a_md5encrypt-a_md5encrypt.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_a_md5encrypt_CFLAGS) $(CFLAGS) -c -o test_a_md5encrypt-a_md5encrypt.obj `if test -f 'a_md5encrypt.c'; then $(CYGPATH_W) 'a_md5encrypt.c'; else $(CYGPATH_W) '$(srcdir)/a_md5encrypt.c'; fi` + +test_a_md5encrypt-run-a_md5encrypt.o: run-a_md5encrypt.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_a_md5encrypt_CFLAGS) $(CFLAGS) -MT test_a_md5encrypt-run-a_md5encrypt.o -MD -MP -MF $(DEPDIR)/test_a_md5encrypt-run-a_md5encrypt.Tpo -c -o test_a_md5encrypt-run-a_md5encrypt.o `test -f 'run-a_md5encrypt.c' || echo '$(srcdir)/'`run-a_md5encrypt.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_a_md5encrypt-run-a_md5encrypt.Tpo $(DEPDIR)/test_a_md5encrypt-run-a_md5encrypt.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-a_md5encrypt.c' object='test_a_md5encrypt-run-a_md5encrypt.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_a_md5encrypt_CFLAGS) $(CFLAGS) -c -o test_a_md5encrypt-run-a_md5encrypt.o `test -f 'run-a_md5encrypt.c' || echo '$(srcdir)/'`run-a_md5encrypt.c + +test_a_md5encrypt-run-a_md5encrypt.obj: run-a_md5encrypt.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_a_md5encrypt_CFLAGS) $(CFLAGS) -MT test_a_md5encrypt-run-a_md5encrypt.obj -MD -MP -MF $(DEPDIR)/test_a_md5encrypt-run-a_md5encrypt.Tpo -c -o test_a_md5encrypt-run-a_md5encrypt.obj `if test -f 'run-a_md5encrypt.c'; then $(CYGPATH_W) 'run-a_md5encrypt.c'; else $(CYGPATH_W) '$(srcdir)/run-a_md5encrypt.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_a_md5encrypt-run-a_md5encrypt.Tpo $(DEPDIR)/test_a_md5encrypt-run-a_md5encrypt.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-a_md5encrypt.c' object='test_a_md5encrypt-run-a_md5encrypt.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_a_md5encrypt_CFLAGS) $(CFLAGS) -c -o test_a_md5encrypt-run-a_md5encrypt.obj `if test -f 'run-a_md5encrypt.c'; then $(CYGPATH_W) 'run-a_md5encrypt.c'; else $(CYGPATH_W) '$(srcdir)/run-a_md5encrypt.c'; fi` + +test_atoint-atoint.o: atoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoint_CFLAGS) $(CFLAGS) -MT test_atoint-atoint.o -MD -MP -MF $(DEPDIR)/test_atoint-atoint.Tpo -c -o test_atoint-atoint.o `test -f 'atoint.c' || echo '$(srcdir)/'`atoint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atoint-atoint.Tpo $(DEPDIR)/test_atoint-atoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='atoint.c' object='test_atoint-atoint.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_atoint_CFLAGS) $(CFLAGS) -c -o test_atoint-atoint.o `test -f 'atoint.c' || echo '$(srcdir)/'`atoint.c + +test_atoint-atoint.obj: atoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoint_CFLAGS) $(CFLAGS) -MT test_atoint-atoint.obj -MD -MP -MF $(DEPDIR)/test_atoint-atoint.Tpo -c -o test_atoint-atoint.obj `if test -f 'atoint.c'; then $(CYGPATH_W) 'atoint.c'; else $(CYGPATH_W) '$(srcdir)/atoint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atoint-atoint.Tpo $(DEPDIR)/test_atoint-atoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='atoint.c' object='test_atoint-atoint.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_atoint_CFLAGS) $(CFLAGS) -c -o test_atoint-atoint.obj `if test -f 'atoint.c'; then $(CYGPATH_W) 'atoint.c'; else $(CYGPATH_W) '$(srcdir)/atoint.c'; fi` + +test_atoint-run-atoint.o: run-atoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoint_CFLAGS) $(CFLAGS) -MT test_atoint-run-atoint.o -MD -MP -MF $(DEPDIR)/test_atoint-run-atoint.Tpo -c -o test_atoint-run-atoint.o `test -f 'run-atoint.c' || echo '$(srcdir)/'`run-atoint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atoint-run-atoint.Tpo $(DEPDIR)/test_atoint-run-atoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-atoint.c' object='test_atoint-run-atoint.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_atoint_CFLAGS) $(CFLAGS) -c -o test_atoint-run-atoint.o `test -f 'run-atoint.c' || echo '$(srcdir)/'`run-atoint.c + +test_atoint-run-atoint.obj: run-atoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoint_CFLAGS) $(CFLAGS) -MT test_atoint-run-atoint.obj -MD -MP -MF $(DEPDIR)/test_atoint-run-atoint.Tpo -c -o test_atoint-run-atoint.obj `if test -f 'run-atoint.c'; then $(CYGPATH_W) 'run-atoint.c'; else $(CYGPATH_W) '$(srcdir)/run-atoint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atoint-run-atoint.Tpo $(DEPDIR)/test_atoint-run-atoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-atoint.c' object='test_atoint-run-atoint.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_atoint_CFLAGS) $(CFLAGS) -c -o test_atoint-run-atoint.obj `if test -f 'run-atoint.c'; then $(CYGPATH_W) 'run-atoint.c'; else $(CYGPATH_W) '$(srcdir)/run-atoint.c'; fi` + +test_atouint-atouint.o: atouint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atouint_CFLAGS) $(CFLAGS) -MT test_atouint-atouint.o -MD -MP -MF $(DEPDIR)/test_atouint-atouint.Tpo -c -o test_atouint-atouint.o `test -f 'atouint.c' || echo '$(srcdir)/'`atouint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atouint-atouint.Tpo $(DEPDIR)/test_atouint-atouint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='atouint.c' object='test_atouint-atouint.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_atouint_CFLAGS) $(CFLAGS) -c -o test_atouint-atouint.o `test -f 'atouint.c' || echo '$(srcdir)/'`atouint.c + +test_atouint-atouint.obj: atouint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atouint_CFLAGS) $(CFLAGS) -MT test_atouint-atouint.obj -MD -MP -MF $(DEPDIR)/test_atouint-atouint.Tpo -c -o test_atouint-atouint.obj `if test -f 'atouint.c'; then $(CYGPATH_W) 'atouint.c'; else $(CYGPATH_W) '$(srcdir)/atouint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atouint-atouint.Tpo $(DEPDIR)/test_atouint-atouint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='atouint.c' object='test_atouint-atouint.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_atouint_CFLAGS) $(CFLAGS) -c -o test_atouint-atouint.obj `if test -f 'atouint.c'; then $(CYGPATH_W) 'atouint.c'; else $(CYGPATH_W) '$(srcdir)/atouint.c'; fi` + +test_atouint-run-atouint.o: run-atouint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atouint_CFLAGS) $(CFLAGS) -MT test_atouint-run-atouint.o -MD -MP -MF $(DEPDIR)/test_atouint-run-atouint.Tpo -c -o test_atouint-run-atouint.o `test -f 'run-atouint.c' || echo '$(srcdir)/'`run-atouint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atouint-run-atouint.Tpo $(DEPDIR)/test_atouint-run-atouint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-atouint.c' object='test_atouint-run-atouint.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_atouint_CFLAGS) $(CFLAGS) -c -o test_atouint-run-atouint.o `test -f 'run-atouint.c' || echo '$(srcdir)/'`run-atouint.c + +test_atouint-run-atouint.obj: run-atouint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atouint_CFLAGS) $(CFLAGS) -MT test_atouint-run-atouint.obj -MD -MP -MF $(DEPDIR)/test_atouint-run-atouint.Tpo -c -o test_atouint-run-atouint.obj `if test -f 'run-atouint.c'; then $(CYGPATH_W) 'run-atouint.c'; else $(CYGPATH_W) '$(srcdir)/run-atouint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atouint-run-atouint.Tpo $(DEPDIR)/test_atouint-run-atouint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-atouint.c' object='test_atouint-run-atouint.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_atouint_CFLAGS) $(CFLAGS) -c -o test_atouint-run-atouint.obj `if test -f 'run-atouint.c'; then $(CYGPATH_W) 'run-atouint.c'; else $(CYGPATH_W) '$(srcdir)/run-atouint.c'; fi` + +test_authkeys-authkeys.o: authkeys.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_authkeys_CFLAGS) $(CFLAGS) -MT test_authkeys-authkeys.o -MD -MP -MF $(DEPDIR)/test_authkeys-authkeys.Tpo -c -o test_authkeys-authkeys.o `test -f 'authkeys.c' || echo '$(srcdir)/'`authkeys.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_authkeys-authkeys.Tpo $(DEPDIR)/test_authkeys-authkeys.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='authkeys.c' object='test_authkeys-authkeys.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_authkeys_CFLAGS) $(CFLAGS) -c -o test_authkeys-authkeys.o `test -f 'authkeys.c' || echo '$(srcdir)/'`authkeys.c + +test_authkeys-authkeys.obj: authkeys.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_authkeys_CFLAGS) $(CFLAGS) -MT test_authkeys-authkeys.obj -MD -MP -MF $(DEPDIR)/test_authkeys-authkeys.Tpo -c -o test_authkeys-authkeys.obj `if test -f 'authkeys.c'; then $(CYGPATH_W) 'authkeys.c'; else $(CYGPATH_W) '$(srcdir)/authkeys.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_authkeys-authkeys.Tpo $(DEPDIR)/test_authkeys-authkeys.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='authkeys.c' object='test_authkeys-authkeys.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_authkeys_CFLAGS) $(CFLAGS) -c -o test_authkeys-authkeys.obj `if test -f 'authkeys.c'; then $(CYGPATH_W) 'authkeys.c'; else $(CYGPATH_W) '$(srcdir)/authkeys.c'; fi` + +test_authkeys-run-authkeys.o: run-authkeys.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_authkeys_CFLAGS) $(CFLAGS) -MT test_authkeys-run-authkeys.o -MD -MP -MF $(DEPDIR)/test_authkeys-run-authkeys.Tpo -c -o test_authkeys-run-authkeys.o `test -f 'run-authkeys.c' || echo '$(srcdir)/'`run-authkeys.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_authkeys-run-authkeys.Tpo $(DEPDIR)/test_authkeys-run-authkeys.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-authkeys.c' object='test_authkeys-run-authkeys.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_authkeys_CFLAGS) $(CFLAGS) -c -o test_authkeys-run-authkeys.o `test -f 'run-authkeys.c' || echo '$(srcdir)/'`run-authkeys.c + +test_authkeys-run-authkeys.obj: run-authkeys.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_authkeys_CFLAGS) $(CFLAGS) -MT test_authkeys-run-authkeys.obj -MD -MP -MF $(DEPDIR)/test_authkeys-run-authkeys.Tpo -c -o test_authkeys-run-authkeys.obj `if test -f 'run-authkeys.c'; then $(CYGPATH_W) 'run-authkeys.c'; else $(CYGPATH_W) '$(srcdir)/run-authkeys.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_authkeys-run-authkeys.Tpo $(DEPDIR)/test_authkeys-run-authkeys.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-authkeys.c' object='test_authkeys-run-authkeys.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_authkeys_CFLAGS) $(CFLAGS) -c -o test_authkeys-run-authkeys.obj `if test -f 'run-authkeys.c'; then $(CYGPATH_W) 'run-authkeys.c'; else $(CYGPATH_W) '$(srcdir)/run-authkeys.c'; fi` + +test_buftvtots-buftvtots.o: buftvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_buftvtots_CFLAGS) $(CFLAGS) -MT test_buftvtots-buftvtots.o -MD -MP -MF $(DEPDIR)/test_buftvtots-buftvtots.Tpo -c -o test_buftvtots-buftvtots.o `test -f 'buftvtots.c' || echo '$(srcdir)/'`buftvtots.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_buftvtots-buftvtots.Tpo $(DEPDIR)/test_buftvtots-buftvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='buftvtots.c' object='test_buftvtots-buftvtots.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_buftvtots_CFLAGS) $(CFLAGS) -c -o test_buftvtots-buftvtots.o `test -f 'buftvtots.c' || echo '$(srcdir)/'`buftvtots.c + +test_buftvtots-buftvtots.obj: buftvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_buftvtots_CFLAGS) $(CFLAGS) -MT test_buftvtots-buftvtots.obj -MD -MP -MF $(DEPDIR)/test_buftvtots-buftvtots.Tpo -c -o test_buftvtots-buftvtots.obj `if test -f 'buftvtots.c'; then $(CYGPATH_W) 'buftvtots.c'; else $(CYGPATH_W) '$(srcdir)/buftvtots.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_buftvtots-buftvtots.Tpo $(DEPDIR)/test_buftvtots-buftvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='buftvtots.c' object='test_buftvtots-buftvtots.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_buftvtots_CFLAGS) $(CFLAGS) -c -o test_buftvtots-buftvtots.obj `if test -f 'buftvtots.c'; then $(CYGPATH_W) 'buftvtots.c'; else $(CYGPATH_W) '$(srcdir)/buftvtots.c'; fi` + +test_buftvtots-run-buftvtots.o: run-buftvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_buftvtots_CFLAGS) $(CFLAGS) -MT test_buftvtots-run-buftvtots.o -MD -MP -MF $(DEPDIR)/test_buftvtots-run-buftvtots.Tpo -c -o test_buftvtots-run-buftvtots.o `test -f 'run-buftvtots.c' || echo '$(srcdir)/'`run-buftvtots.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_buftvtots-run-buftvtots.Tpo $(DEPDIR)/test_buftvtots-run-buftvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-buftvtots.c' object='test_buftvtots-run-buftvtots.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_buftvtots_CFLAGS) $(CFLAGS) -c -o test_buftvtots-run-buftvtots.o `test -f 'run-buftvtots.c' || echo '$(srcdir)/'`run-buftvtots.c + +test_buftvtots-run-buftvtots.obj: run-buftvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_buftvtots_CFLAGS) $(CFLAGS) -MT test_buftvtots-run-buftvtots.obj -MD -MP -MF $(DEPDIR)/test_buftvtots-run-buftvtots.Tpo -c -o test_buftvtots-run-buftvtots.obj `if test -f 'run-buftvtots.c'; then $(CYGPATH_W) 'run-buftvtots.c'; else $(CYGPATH_W) '$(srcdir)/run-buftvtots.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_buftvtots-run-buftvtots.Tpo $(DEPDIR)/test_buftvtots-run-buftvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-buftvtots.c' object='test_buftvtots-run-buftvtots.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_buftvtots_CFLAGS) $(CFLAGS) -c -o test_buftvtots-run-buftvtots.obj `if test -f 'run-buftvtots.c'; then $(CYGPATH_W) 'run-buftvtots.c'; else $(CYGPATH_W) '$(srcdir)/run-buftvtots.c'; fi` + +test_calendar-calendar.o: calendar.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calendar_CFLAGS) $(CFLAGS) -MT test_calendar-calendar.o -MD -MP -MF $(DEPDIR)/test_calendar-calendar.Tpo -c -o test_calendar-calendar.o `test -f 'calendar.c' || echo '$(srcdir)/'`calendar.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calendar-calendar.Tpo $(DEPDIR)/test_calendar-calendar.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calendar.c' object='test_calendar-calendar.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_calendar_CFLAGS) $(CFLAGS) -c -o test_calendar-calendar.o `test -f 'calendar.c' || echo '$(srcdir)/'`calendar.c + +test_calendar-calendar.obj: calendar.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calendar_CFLAGS) $(CFLAGS) -MT test_calendar-calendar.obj -MD -MP -MF $(DEPDIR)/test_calendar-calendar.Tpo -c -o test_calendar-calendar.obj `if test -f 'calendar.c'; then $(CYGPATH_W) 'calendar.c'; else $(CYGPATH_W) '$(srcdir)/calendar.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calendar-calendar.Tpo $(DEPDIR)/test_calendar-calendar.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calendar.c' object='test_calendar-calendar.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_calendar_CFLAGS) $(CFLAGS) -c -o test_calendar-calendar.obj `if test -f 'calendar.c'; then $(CYGPATH_W) 'calendar.c'; else $(CYGPATH_W) '$(srcdir)/calendar.c'; fi` + +test_calendar-run-calendar.o: run-calendar.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calendar_CFLAGS) $(CFLAGS) -MT test_calendar-run-calendar.o -MD -MP -MF $(DEPDIR)/test_calendar-run-calendar.Tpo -c -o test_calendar-run-calendar.o `test -f 'run-calendar.c' || echo '$(srcdir)/'`run-calendar.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calendar-run-calendar.Tpo $(DEPDIR)/test_calendar-run-calendar.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-calendar.c' object='test_calendar-run-calendar.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_calendar_CFLAGS) $(CFLAGS) -c -o test_calendar-run-calendar.o `test -f 'run-calendar.c' || echo '$(srcdir)/'`run-calendar.c + +test_calendar-run-calendar.obj: run-calendar.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calendar_CFLAGS) $(CFLAGS) -MT test_calendar-run-calendar.obj -MD -MP -MF $(DEPDIR)/test_calendar-run-calendar.Tpo -c -o test_calendar-run-calendar.obj `if test -f 'run-calendar.c'; then $(CYGPATH_W) 'run-calendar.c'; else $(CYGPATH_W) '$(srcdir)/run-calendar.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calendar-run-calendar.Tpo $(DEPDIR)/test_calendar-run-calendar.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-calendar.c' object='test_calendar-run-calendar.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_calendar_CFLAGS) $(CFLAGS) -c -o test_calendar-run-calendar.obj `if test -f 'run-calendar.c'; then $(CYGPATH_W) 'run-calendar.c'; else $(CYGPATH_W) '$(srcdir)/run-calendar.c'; fi` + +test_calendar-test-libntp.o: test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calendar_CFLAGS) $(CFLAGS) -MT test_calendar-test-libntp.o -MD -MP -MF $(DEPDIR)/test_calendar-test-libntp.Tpo -c -o test_calendar-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calendar-test-libntp.Tpo $(DEPDIR)/test_calendar-test-libntp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_calendar-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_calendar_CFLAGS) $(CFLAGS) -c -o test_calendar-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c + +test_calendar-test-libntp.obj: test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calendar_CFLAGS) $(CFLAGS) -MT test_calendar-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_calendar-test-libntp.Tpo -c -o test_calendar-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_calendar-test-libntp.Tpo $(DEPDIR)/test_calendar-test-libntp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_calendar-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_calendar_CFLAGS) $(CFLAGS) -c -o test_calendar-test-libntp.obj `if test -f 'test-libntp.c'; then $(CYGPATH_W) 'test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/test-libntp.c'; fi` + +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_calyearstart-calyearstart.o: calyearstart.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calyearstart_CFLAGS) $(CFLAGS) -MT test_calyearstart-calyearstart.o -MD -MP -MF $(DEPDIR)/test_calyearstart-calyearstart.Tpo -c -o test_calyearstart-calyearstart.o `test -f 'calyearstart.c' || echo '$(srcdir)/'`calyearstart.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calyearstart-calyearstart.Tpo $(DEPDIR)/test_calyearstart-calyearstart.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calyearstart.c' object='test_calyearstart-calyearstart.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_calyearstart_CFLAGS) $(CFLAGS) -c -o test_calyearstart-calyearstart.o `test -f 'calyearstart.c' || echo '$(srcdir)/'`calyearstart.c + +test_calyearstart-calyearstart.obj: calyearstart.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calyearstart_CFLAGS) $(CFLAGS) -MT test_calyearstart-calyearstart.obj -MD -MP -MF $(DEPDIR)/test_calyearstart-calyearstart.Tpo -c -o test_calyearstart-calyearstart.obj `if test -f 'calyearstart.c'; then $(CYGPATH_W) 'calyearstart.c'; else $(CYGPATH_W) '$(srcdir)/calyearstart.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calyearstart-calyearstart.Tpo $(DEPDIR)/test_calyearstart-calyearstart.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calyearstart.c' object='test_calyearstart-calyearstart.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_calyearstart_CFLAGS) $(CFLAGS) -c -o test_calyearstart-calyearstart.obj `if test -f 'calyearstart.c'; then $(CYGPATH_W) 'calyearstart.c'; else $(CYGPATH_W) '$(srcdir)/calyearstart.c'; fi` + +test_calyearstart-run-calyearstart.o: run-calyearstart.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calyearstart_CFLAGS) $(CFLAGS) -MT test_calyearstart-run-calyearstart.o -MD -MP -MF $(DEPDIR)/test_calyearstart-run-calyearstart.Tpo -c -o test_calyearstart-run-calyearstart.o `test -f 'run-calyearstart.c' || echo '$(srcdir)/'`run-calyearstart.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calyearstart-run-calyearstart.Tpo $(DEPDIR)/test_calyearstart-run-calyearstart.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-calyearstart.c' object='test_calyearstart-run-calyearstart.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_calyearstart_CFLAGS) $(CFLAGS) -c -o test_calyearstart-run-calyearstart.o `test -f 'run-calyearstart.c' || echo '$(srcdir)/'`run-calyearstart.c + +test_calyearstart-run-calyearstart.obj: run-calyearstart.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calyearstart_CFLAGS) $(CFLAGS) -MT test_calyearstart-run-calyearstart.obj -MD -MP -MF $(DEPDIR)/test_calyearstart-run-calyearstart.Tpo -c -o test_calyearstart-run-calyearstart.obj `if test -f 'run-calyearstart.c'; then $(CYGPATH_W) 'run-calyearstart.c'; else $(CYGPATH_W) '$(srcdir)/run-calyearstart.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calyearstart-run-calyearstart.Tpo $(DEPDIR)/test_calyearstart-run-calyearstart.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-calyearstart.c' object='test_calyearstart-run-calyearstart.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_calyearstart_CFLAGS) $(CFLAGS) -c -o test_calyearstart-run-calyearstart.obj `if test -f 'run-calyearstart.c'; then $(CYGPATH_W) 'run-calyearstart.c'; else $(CYGPATH_W) '$(srcdir)/run-calyearstart.c'; fi` + +test_calyearstart-test-libntp.o: test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calyearstart_CFLAGS) $(CFLAGS) -MT test_calyearstart-test-libntp.o -MD -MP -MF $(DEPDIR)/test_calyearstart-test-libntp.Tpo -c -o test_calyearstart-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_calyearstart-test-libntp.Tpo $(DEPDIR)/test_calyearstart-test-libntp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_calyearstart-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_calyearstart_CFLAGS) $(CFLAGS) -c -o test_calyearstart-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c + +test_calyearstart-test-libntp.obj: test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_calyearstart_CFLAGS) $(CFLAGS) -MT test_calyearstart-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_calyearstart-test-libntp.Tpo -c -o test_calyearstart-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_calyearstart-test-libntp.Tpo $(DEPDIR)/test_calyearstart-test-libntp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_calyearstart-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_calyearstart_CFLAGS) $(CFLAGS) -c -o test_calyearstart-test-libntp.obj `if test -f 'test-libntp.c'; then $(CYGPATH_W) 'test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/test-libntp.c'; fi` + +test_clocktime-clocktime.o: clocktime.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_clocktime_CFLAGS) $(CFLAGS) -MT test_clocktime-clocktime.o -MD -MP -MF $(DEPDIR)/test_clocktime-clocktime.Tpo -c -o test_clocktime-clocktime.o `test -f 'clocktime.c' || echo '$(srcdir)/'`clocktime.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_clocktime-clocktime.Tpo $(DEPDIR)/test_clocktime-clocktime.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='clocktime.c' object='test_clocktime-clocktime.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_clocktime_CFLAGS) $(CFLAGS) -c -o test_clocktime-clocktime.o `test -f 'clocktime.c' || echo '$(srcdir)/'`clocktime.c + +test_clocktime-clocktime.obj: clocktime.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_clocktime_CFLAGS) $(CFLAGS) -MT test_clocktime-clocktime.obj -MD -MP -MF $(DEPDIR)/test_clocktime-clocktime.Tpo -c -o test_clocktime-clocktime.obj `if test -f 'clocktime.c'; then $(CYGPATH_W) 'clocktime.c'; else $(CYGPATH_W) '$(srcdir)/clocktime.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_clocktime-clocktime.Tpo $(DEPDIR)/test_clocktime-clocktime.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='clocktime.c' object='test_clocktime-clocktime.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_clocktime_CFLAGS) $(CFLAGS) -c -o test_clocktime-clocktime.obj `if test -f 'clocktime.c'; then $(CYGPATH_W) 'clocktime.c'; else $(CYGPATH_W) '$(srcdir)/clocktime.c'; fi` + +test_clocktime-run-clocktime.o: run-clocktime.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_clocktime_CFLAGS) $(CFLAGS) -MT test_clocktime-run-clocktime.o -MD -MP -MF $(DEPDIR)/test_clocktime-run-clocktime.Tpo -c -o test_clocktime-run-clocktime.o `test -f 'run-clocktime.c' || echo '$(srcdir)/'`run-clocktime.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_clocktime-run-clocktime.Tpo $(DEPDIR)/test_clocktime-run-clocktime.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-clocktime.c' object='test_clocktime-run-clocktime.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_clocktime_CFLAGS) $(CFLAGS) -c -o test_clocktime-run-clocktime.o `test -f 'run-clocktime.c' || echo '$(srcdir)/'`run-clocktime.c + +test_clocktime-run-clocktime.obj: run-clocktime.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_clocktime_CFLAGS) $(CFLAGS) -MT test_clocktime-run-clocktime.obj -MD -MP -MF $(DEPDIR)/test_clocktime-run-clocktime.Tpo -c -o test_clocktime-run-clocktime.obj `if test -f 'run-clocktime.c'; then $(CYGPATH_W) 'run-clocktime.c'; else $(CYGPATH_W) '$(srcdir)/run-clocktime.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_clocktime-run-clocktime.Tpo $(DEPDIR)/test_clocktime-run-clocktime.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-clocktime.c' object='test_clocktime-run-clocktime.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_clocktime_CFLAGS) $(CFLAGS) -c -o test_clocktime-run-clocktime.obj `if test -f 'run-clocktime.c'; then $(CYGPATH_W) 'run-clocktime.c'; else $(CYGPATH_W) '$(srcdir)/run-clocktime.c'; fi` + +test_clocktime-test-libntp.o: test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_clocktime_CFLAGS) $(CFLAGS) -MT test_clocktime-test-libntp.o -MD -MP -MF $(DEPDIR)/test_clocktime-test-libntp.Tpo -c -o test_clocktime-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_clocktime-test-libntp.Tpo $(DEPDIR)/test_clocktime-test-libntp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_clocktime-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_clocktime_CFLAGS) $(CFLAGS) -c -o test_clocktime-test-libntp.o `test -f 'test-libntp.c' || echo '$(srcdir)/'`test-libntp.c + +test_clocktime-test-libntp.obj: test-libntp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_clocktime_CFLAGS) $(CFLAGS) -MT test_clocktime-test-libntp.obj -MD -MP -MF $(DEPDIR)/test_clocktime-test-libntp.Tpo -c -o test_clocktime-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_clocktime-test-libntp.Tpo $(DEPDIR)/test_clocktime-test-libntp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test-libntp.c' object='test_clocktime-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_clocktime_CFLAGS) $(CFLAGS) -c -o test_clocktime-test-libntp.obj `if test -f 'test-libntp.c'; then $(CYGPATH_W) 'test-libntp.c'; else $(CYGPATH_W) '$(srcdir)/test-libntp.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_hextoint-hextoint.o: hextoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextoint_CFLAGS) $(CFLAGS) -MT test_hextoint-hextoint.o -MD -MP -MF $(DEPDIR)/test_hextoint-hextoint.Tpo -c -o test_hextoint-hextoint.o `test -f 'hextoint.c' || echo '$(srcdir)/'`hextoint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextoint-hextoint.Tpo $(DEPDIR)/test_hextoint-hextoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hextoint.c' object='test_hextoint-hextoint.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_hextoint_CFLAGS) $(CFLAGS) -c -o test_hextoint-hextoint.o `test -f 'hextoint.c' || echo '$(srcdir)/'`hextoint.c + +test_hextoint-hextoint.obj: hextoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextoint_CFLAGS) $(CFLAGS) -MT test_hextoint-hextoint.obj -MD -MP -MF $(DEPDIR)/test_hextoint-hextoint.Tpo -c -o test_hextoint-hextoint.obj `if test -f 'hextoint.c'; then $(CYGPATH_W) 'hextoint.c'; else $(CYGPATH_W) '$(srcdir)/hextoint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextoint-hextoint.Tpo $(DEPDIR)/test_hextoint-hextoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hextoint.c' object='test_hextoint-hextoint.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_hextoint_CFLAGS) $(CFLAGS) -c -o test_hextoint-hextoint.obj `if test -f 'hextoint.c'; then $(CYGPATH_W) 'hextoint.c'; else $(CYGPATH_W) '$(srcdir)/hextoint.c'; fi` + +test_hextoint-run-hextoint.o: run-hextoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextoint_CFLAGS) $(CFLAGS) -MT test_hextoint-run-hextoint.o -MD -MP -MF $(DEPDIR)/test_hextoint-run-hextoint.Tpo -c -o test_hextoint-run-hextoint.o `test -f 'run-hextoint.c' || echo '$(srcdir)/'`run-hextoint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextoint-run-hextoint.Tpo $(DEPDIR)/test_hextoint-run-hextoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-hextoint.c' object='test_hextoint-run-hextoint.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_hextoint_CFLAGS) $(CFLAGS) -c -o test_hextoint-run-hextoint.o `test -f 'run-hextoint.c' || echo '$(srcdir)/'`run-hextoint.c + +test_hextoint-run-hextoint.obj: run-hextoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextoint_CFLAGS) $(CFLAGS) -MT test_hextoint-run-hextoint.obj -MD -MP -MF $(DEPDIR)/test_hextoint-run-hextoint.Tpo -c -o test_hextoint-run-hextoint.obj `if test -f 'run-hextoint.c'; then $(CYGPATH_W) 'run-hextoint.c'; else $(CYGPATH_W) '$(srcdir)/run-hextoint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextoint-run-hextoint.Tpo $(DEPDIR)/test_hextoint-run-hextoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-hextoint.c' object='test_hextoint-run-hextoint.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_hextoint_CFLAGS) $(CFLAGS) -c -o test_hextoint-run-hextoint.obj `if test -f 'run-hextoint.c'; then $(CYGPATH_W) 'run-hextoint.c'; else $(CYGPATH_W) '$(srcdir)/run-hextoint.c'; fi` + +test_hextolfp-hextolfp.o: hextolfp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextolfp_CFLAGS) $(CFLAGS) -MT test_hextolfp-hextolfp.o -MD -MP -MF $(DEPDIR)/test_hextolfp-hextolfp.Tpo -c -o test_hextolfp-hextolfp.o `test -f 'hextolfp.c' || echo '$(srcdir)/'`hextolfp.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextolfp-hextolfp.Tpo $(DEPDIR)/test_hextolfp-hextolfp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hextolfp.c' object='test_hextolfp-hextolfp.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_hextolfp_CFLAGS) $(CFLAGS) -c -o test_hextolfp-hextolfp.o `test -f 'hextolfp.c' || echo '$(srcdir)/'`hextolfp.c + +test_hextolfp-hextolfp.obj: hextolfp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextolfp_CFLAGS) $(CFLAGS) -MT test_hextolfp-hextolfp.obj -MD -MP -MF $(DEPDIR)/test_hextolfp-hextolfp.Tpo -c -o test_hextolfp-hextolfp.obj `if test -f 'hextolfp.c'; then $(CYGPATH_W) 'hextolfp.c'; else $(CYGPATH_W) '$(srcdir)/hextolfp.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextolfp-hextolfp.Tpo $(DEPDIR)/test_hextolfp-hextolfp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hextolfp.c' object='test_hextolfp-hextolfp.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_hextolfp_CFLAGS) $(CFLAGS) -c -o test_hextolfp-hextolfp.obj `if test -f 'hextolfp.c'; then $(CYGPATH_W) 'hextolfp.c'; else $(CYGPATH_W) '$(srcdir)/hextolfp.c'; fi` + +test_hextolfp-run-hextolfp.o: run-hextolfp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextolfp_CFLAGS) $(CFLAGS) -MT test_hextolfp-run-hextolfp.o -MD -MP -MF $(DEPDIR)/test_hextolfp-run-hextolfp.Tpo -c -o test_hextolfp-run-hextolfp.o `test -f 'run-hextolfp.c' || echo '$(srcdir)/'`run-hextolfp.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextolfp-run-hextolfp.Tpo $(DEPDIR)/test_hextolfp-run-hextolfp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-hextolfp.c' object='test_hextolfp-run-hextolfp.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_hextolfp_CFLAGS) $(CFLAGS) -c -o test_hextolfp-run-hextolfp.o `test -f 'run-hextolfp.c' || echo '$(srcdir)/'`run-hextolfp.c + +test_hextolfp-run-hextolfp.obj: run-hextolfp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_hextolfp_CFLAGS) $(CFLAGS) -MT test_hextolfp-run-hextolfp.obj -MD -MP -MF $(DEPDIR)/test_hextolfp-run-hextolfp.Tpo -c -o test_hextolfp-run-hextolfp.obj `if test -f 'run-hextolfp.c'; then $(CYGPATH_W) 'run-hextolfp.c'; else $(CYGPATH_W) '$(srcdir)/run-hextolfp.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_hextolfp-run-hextolfp.Tpo $(DEPDIR)/test_hextolfp-run-hextolfp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-hextolfp.c' object='test_hextolfp-run-hextolfp.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_hextolfp_CFLAGS) $(CFLAGS) -c -o test_hextolfp-run-hextolfp.obj `if test -f 'run-hextolfp.c'; then $(CYGPATH_W) 'run-hextolfp.c'; else $(CYGPATH_W) '$(srcdir)/run-hextolfp.c'; fi` + +test_humandate-humandate.o: humandate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_humandate_CFLAGS) $(CFLAGS) -MT test_humandate-humandate.o -MD -MP -MF $(DEPDIR)/test_humandate-humandate.Tpo -c -o test_humandate-humandate.o `test -f 'humandate.c' || echo '$(srcdir)/'`humandate.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_humandate-humandate.Tpo $(DEPDIR)/test_humandate-humandate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='humandate.c' object='test_humandate-humandate.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_humandate_CFLAGS) $(CFLAGS) -c -o test_humandate-humandate.o `test -f 'humandate.c' || echo '$(srcdir)/'`humandate.c + +test_humandate-humandate.obj: humandate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_humandate_CFLAGS) $(CFLAGS) -MT test_humandate-humandate.obj -MD -MP -MF $(DEPDIR)/test_humandate-humandate.Tpo -c -o test_humandate-humandate.obj `if test -f 'humandate.c'; then $(CYGPATH_W) 'humandate.c'; else $(CYGPATH_W) '$(srcdir)/humandate.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_humandate-humandate.Tpo $(DEPDIR)/test_humandate-humandate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='humandate.c' object='test_humandate-humandate.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_humandate_CFLAGS) $(CFLAGS) -c -o test_humandate-humandate.obj `if test -f 'humandate.c'; then $(CYGPATH_W) 'humandate.c'; else $(CYGPATH_W) '$(srcdir)/humandate.c'; fi` + +test_humandate-run-humandate.o: run-humandate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_humandate_CFLAGS) $(CFLAGS) -MT test_humandate-run-humandate.o -MD -MP -MF $(DEPDIR)/test_humandate-run-humandate.Tpo -c -o test_humandate-run-humandate.o `test -f 'run-humandate.c' || echo '$(srcdir)/'`run-humandate.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_humandate-run-humandate.Tpo $(DEPDIR)/test_humandate-run-humandate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-humandate.c' object='test_humandate-run-humandate.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_humandate_CFLAGS) $(CFLAGS) -c -o test_humandate-run-humandate.o `test -f 'run-humandate.c' || echo '$(srcdir)/'`run-humandate.c + +test_humandate-run-humandate.obj: run-humandate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_humandate_CFLAGS) $(CFLAGS) -MT test_humandate-run-humandate.obj -MD -MP -MF $(DEPDIR)/test_humandate-run-humandate.Tpo -c -o test_humandate-run-humandate.obj `if test -f 'run-humandate.c'; then $(CYGPATH_W) 'run-humandate.c'; else $(CYGPATH_W) '$(srcdir)/run-humandate.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_humandate-run-humandate.Tpo $(DEPDIR)/test_humandate-run-humandate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-humandate.c' object='test_humandate-run-humandate.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_humandate_CFLAGS) $(CFLAGS) -c -o test_humandate-run-humandate.obj `if test -f 'run-humandate.c'; then $(CYGPATH_W) 'run-humandate.c'; else $(CYGPATH_W) '$(srcdir)/run-humandate.c'; fi` + +test_lfpfunc-lfpfunc.o: lfpfunc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfpfunc_CFLAGS) $(CFLAGS) -MT test_lfpfunc-lfpfunc.o -MD -MP -MF $(DEPDIR)/test_lfpfunc-lfpfunc.Tpo -c -o test_lfpfunc-lfpfunc.o `test -f 'lfpfunc.c' || echo '$(srcdir)/'`lfpfunc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfpfunc-lfpfunc.Tpo $(DEPDIR)/test_lfpfunc-lfpfunc.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lfpfunc.c' object='test_lfpfunc-lfpfunc.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_lfpfunc_CFLAGS) $(CFLAGS) -c -o test_lfpfunc-lfpfunc.o `test -f 'lfpfunc.c' || echo '$(srcdir)/'`lfpfunc.c + +test_lfpfunc-lfpfunc.obj: lfpfunc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfpfunc_CFLAGS) $(CFLAGS) -MT test_lfpfunc-lfpfunc.obj -MD -MP -MF $(DEPDIR)/test_lfpfunc-lfpfunc.Tpo -c -o test_lfpfunc-lfpfunc.obj `if test -f 'lfpfunc.c'; then $(CYGPATH_W) 'lfpfunc.c'; else $(CYGPATH_W) '$(srcdir)/lfpfunc.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfpfunc-lfpfunc.Tpo $(DEPDIR)/test_lfpfunc-lfpfunc.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lfpfunc.c' object='test_lfpfunc-lfpfunc.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_lfpfunc_CFLAGS) $(CFLAGS) -c -o test_lfpfunc-lfpfunc.obj `if test -f 'lfpfunc.c'; then $(CYGPATH_W) 'lfpfunc.c'; else $(CYGPATH_W) '$(srcdir)/lfpfunc.c'; fi` + +test_lfpfunc-run-lfpfunc.o: run-lfpfunc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfpfunc_CFLAGS) $(CFLAGS) -MT test_lfpfunc-run-lfpfunc.o -MD -MP -MF $(DEPDIR)/test_lfpfunc-run-lfpfunc.Tpo -c -o test_lfpfunc-run-lfpfunc.o `test -f 'run-lfpfunc.c' || echo '$(srcdir)/'`run-lfpfunc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfpfunc-run-lfpfunc.Tpo $(DEPDIR)/test_lfpfunc-run-lfpfunc.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-lfpfunc.c' object='test_lfpfunc-run-lfpfunc.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_lfpfunc_CFLAGS) $(CFLAGS) -c -o test_lfpfunc-run-lfpfunc.o `test -f 'run-lfpfunc.c' || echo '$(srcdir)/'`run-lfpfunc.c + +test_lfpfunc-run-lfpfunc.obj: run-lfpfunc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfpfunc_CFLAGS) $(CFLAGS) -MT test_lfpfunc-run-lfpfunc.obj -MD -MP -MF $(DEPDIR)/test_lfpfunc-run-lfpfunc.Tpo -c -o test_lfpfunc-run-lfpfunc.obj `if test -f 'run-lfpfunc.c'; then $(CYGPATH_W) 'run-lfpfunc.c'; else $(CYGPATH_W) '$(srcdir)/run-lfpfunc.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfpfunc-run-lfpfunc.Tpo $(DEPDIR)/test_lfpfunc-run-lfpfunc.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-lfpfunc.c' object='test_lfpfunc-run-lfpfunc.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_lfpfunc_CFLAGS) $(CFLAGS) -c -o test_lfpfunc-run-lfpfunc.obj `if test -f 'run-lfpfunc.c'; then $(CYGPATH_W) 'run-lfpfunc.c'; else $(CYGPATH_W) '$(srcdir)/run-lfpfunc.c'; fi` + +test_lfptostr-lfptostr.o: lfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfptostr_CFLAGS) $(CFLAGS) -MT test_lfptostr-lfptostr.o -MD -MP -MF $(DEPDIR)/test_lfptostr-lfptostr.Tpo -c -o test_lfptostr-lfptostr.o `test -f 'lfptostr.c' || echo '$(srcdir)/'`lfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfptostr-lfptostr.Tpo $(DEPDIR)/test_lfptostr-lfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lfptostr.c' object='test_lfptostr-lfptostr.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_lfptostr_CFLAGS) $(CFLAGS) -c -o test_lfptostr-lfptostr.o `test -f 'lfptostr.c' || echo '$(srcdir)/'`lfptostr.c + +test_lfptostr-lfptostr.obj: lfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfptostr_CFLAGS) $(CFLAGS) -MT test_lfptostr-lfptostr.obj -MD -MP -MF $(DEPDIR)/test_lfptostr-lfptostr.Tpo -c -o test_lfptostr-lfptostr.obj `if test -f 'lfptostr.c'; then $(CYGPATH_W) 'lfptostr.c'; else $(CYGPATH_W) '$(srcdir)/lfptostr.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfptostr-lfptostr.Tpo $(DEPDIR)/test_lfptostr-lfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lfptostr.c' object='test_lfptostr-lfptostr.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_lfptostr_CFLAGS) $(CFLAGS) -c -o test_lfptostr-lfptostr.obj `if test -f 'lfptostr.c'; then $(CYGPATH_W) 'lfptostr.c'; else $(CYGPATH_W) '$(srcdir)/lfptostr.c'; fi` + +test_lfptostr-run-lfptostr.o: run-lfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfptostr_CFLAGS) $(CFLAGS) -MT test_lfptostr-run-lfptostr.o -MD -MP -MF $(DEPDIR)/test_lfptostr-run-lfptostr.Tpo -c -o test_lfptostr-run-lfptostr.o `test -f 'run-lfptostr.c' || echo '$(srcdir)/'`run-lfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfptostr-run-lfptostr.Tpo $(DEPDIR)/test_lfptostr-run-lfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-lfptostr.c' object='test_lfptostr-run-lfptostr.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_lfptostr_CFLAGS) $(CFLAGS) -c -o test_lfptostr-run-lfptostr.o `test -f 'run-lfptostr.c' || echo '$(srcdir)/'`run-lfptostr.c + +test_lfptostr-run-lfptostr.obj: run-lfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_lfptostr_CFLAGS) $(CFLAGS) -MT test_lfptostr-run-lfptostr.obj -MD -MP -MF $(DEPDIR)/test_lfptostr-run-lfptostr.Tpo -c -o test_lfptostr-run-lfptostr.obj `if test -f 'run-lfptostr.c'; then $(CYGPATH_W) 'run-lfptostr.c'; else $(CYGPATH_W) '$(srcdir)/run-lfptostr.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_lfptostr-run-lfptostr.Tpo $(DEPDIR)/test_lfptostr-run-lfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-lfptostr.c' object='test_lfptostr-run-lfptostr.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_lfptostr_CFLAGS) $(CFLAGS) -c -o test_lfptostr-run-lfptostr.obj `if test -f 'run-lfptostr.c'; then $(CYGPATH_W) 'run-lfptostr.c'; else $(CYGPATH_W) '$(srcdir)/run-lfptostr.c'; fi` + +test_modetoa-modetoa.o: modetoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_modetoa_CFLAGS) $(CFLAGS) -MT test_modetoa-modetoa.o -MD -MP -MF $(DEPDIR)/test_modetoa-modetoa.Tpo -c -o test_modetoa-modetoa.o `test -f 'modetoa.c' || echo '$(srcdir)/'`modetoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_modetoa-modetoa.Tpo $(DEPDIR)/test_modetoa-modetoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='modetoa.c' object='test_modetoa-modetoa.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_modetoa_CFLAGS) $(CFLAGS) -c -o test_modetoa-modetoa.o `test -f 'modetoa.c' || echo '$(srcdir)/'`modetoa.c + +test_modetoa-modetoa.obj: modetoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_modetoa_CFLAGS) $(CFLAGS) -MT test_modetoa-modetoa.obj -MD -MP -MF $(DEPDIR)/test_modetoa-modetoa.Tpo -c -o test_modetoa-modetoa.obj `if test -f 'modetoa.c'; then $(CYGPATH_W) 'modetoa.c'; else $(CYGPATH_W) '$(srcdir)/modetoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_modetoa-modetoa.Tpo $(DEPDIR)/test_modetoa-modetoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='modetoa.c' object='test_modetoa-modetoa.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_modetoa_CFLAGS) $(CFLAGS) -c -o test_modetoa-modetoa.obj `if test -f 'modetoa.c'; then $(CYGPATH_W) 'modetoa.c'; else $(CYGPATH_W) '$(srcdir)/modetoa.c'; fi` + +test_modetoa-run-modetoa.o: run-modetoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_modetoa_CFLAGS) $(CFLAGS) -MT test_modetoa-run-modetoa.o -MD -MP -MF $(DEPDIR)/test_modetoa-run-modetoa.Tpo -c -o test_modetoa-run-modetoa.o `test -f 'run-modetoa.c' || echo '$(srcdir)/'`run-modetoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_modetoa-run-modetoa.Tpo $(DEPDIR)/test_modetoa-run-modetoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-modetoa.c' object='test_modetoa-run-modetoa.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_modetoa_CFLAGS) $(CFLAGS) -c -o test_modetoa-run-modetoa.o `test -f 'run-modetoa.c' || echo '$(srcdir)/'`run-modetoa.c + +test_modetoa-run-modetoa.obj: run-modetoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_modetoa_CFLAGS) $(CFLAGS) -MT test_modetoa-run-modetoa.obj -MD -MP -MF $(DEPDIR)/test_modetoa-run-modetoa.Tpo -c -o test_modetoa-run-modetoa.obj `if test -f 'run-modetoa.c'; then $(CYGPATH_W) 'run-modetoa.c'; else $(CYGPATH_W) '$(srcdir)/run-modetoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_modetoa-run-modetoa.Tpo $(DEPDIR)/test_modetoa-run-modetoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-modetoa.c' object='test_modetoa-run-modetoa.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_modetoa_CFLAGS) $(CFLAGS) -c -o test_modetoa-run-modetoa.obj `if test -f 'run-modetoa.c'; then $(CYGPATH_W) 'run-modetoa.c'; else $(CYGPATH_W) '$(srcdir)/run-modetoa.c'; fi` + +test_msyslog-msyslog.o: msyslog.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_msyslog_CFLAGS) $(CFLAGS) -MT test_msyslog-msyslog.o -MD -MP -MF $(DEPDIR)/test_msyslog-msyslog.Tpo -c -o test_msyslog-msyslog.o `test -f 'msyslog.c' || echo '$(srcdir)/'`msyslog.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_msyslog-msyslog.Tpo $(DEPDIR)/test_msyslog-msyslog.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msyslog.c' object='test_msyslog-msyslog.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_msyslog_CFLAGS) $(CFLAGS) -c -o test_msyslog-msyslog.o `test -f 'msyslog.c' || echo '$(srcdir)/'`msyslog.c + +test_msyslog-msyslog.obj: msyslog.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_msyslog_CFLAGS) $(CFLAGS) -MT test_msyslog-msyslog.obj -MD -MP -MF $(DEPDIR)/test_msyslog-msyslog.Tpo -c -o test_msyslog-msyslog.obj `if test -f 'msyslog.c'; then $(CYGPATH_W) 'msyslog.c'; else $(CYGPATH_W) '$(srcdir)/msyslog.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_msyslog-msyslog.Tpo $(DEPDIR)/test_msyslog-msyslog.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msyslog.c' object='test_msyslog-msyslog.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_msyslog_CFLAGS) $(CFLAGS) -c -o test_msyslog-msyslog.obj `if test -f 'msyslog.c'; then $(CYGPATH_W) 'msyslog.c'; else $(CYGPATH_W) '$(srcdir)/msyslog.c'; fi` + +test_msyslog-run-msyslog.o: run-msyslog.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_msyslog_CFLAGS) $(CFLAGS) -MT test_msyslog-run-msyslog.o -MD -MP -MF $(DEPDIR)/test_msyslog-run-msyslog.Tpo -c -o test_msyslog-run-msyslog.o `test -f 'run-msyslog.c' || echo '$(srcdir)/'`run-msyslog.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_msyslog-run-msyslog.Tpo $(DEPDIR)/test_msyslog-run-msyslog.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-msyslog.c' object='test_msyslog-run-msyslog.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_msyslog_CFLAGS) $(CFLAGS) -c -o test_msyslog-run-msyslog.o `test -f 'run-msyslog.c' || echo '$(srcdir)/'`run-msyslog.c + +test_msyslog-run-msyslog.obj: run-msyslog.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_msyslog_CFLAGS) $(CFLAGS) -MT test_msyslog-run-msyslog.obj -MD -MP -MF $(DEPDIR)/test_msyslog-run-msyslog.Tpo -c -o test_msyslog-run-msyslog.obj `if test -f 'run-msyslog.c'; then $(CYGPATH_W) 'run-msyslog.c'; else $(CYGPATH_W) '$(srcdir)/run-msyslog.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_msyslog-run-msyslog.Tpo $(DEPDIR)/test_msyslog-run-msyslog.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-msyslog.c' object='test_msyslog-run-msyslog.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_msyslog_CFLAGS) $(CFLAGS) -c -o test_msyslog-run-msyslog.obj `if test -f 'run-msyslog.c'; then $(CYGPATH_W) 'run-msyslog.c'; else $(CYGPATH_W) '$(srcdir)/run-msyslog.c'; fi` + +test_netof-netof.o: netof.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_netof_CFLAGS) $(CFLAGS) -MT test_netof-netof.o -MD -MP -MF $(DEPDIR)/test_netof-netof.Tpo -c -o test_netof-netof.o `test -f 'netof.c' || echo '$(srcdir)/'`netof.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_netof-netof.Tpo $(DEPDIR)/test_netof-netof.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='netof.c' object='test_netof-netof.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_netof_CFLAGS) $(CFLAGS) -c -o test_netof-netof.o `test -f 'netof.c' || echo '$(srcdir)/'`netof.c + +test_netof-netof.obj: netof.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_netof_CFLAGS) $(CFLAGS) -MT test_netof-netof.obj -MD -MP -MF $(DEPDIR)/test_netof-netof.Tpo -c -o test_netof-netof.obj `if test -f 'netof.c'; then $(CYGPATH_W) 'netof.c'; else $(CYGPATH_W) '$(srcdir)/netof.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_netof-netof.Tpo $(DEPDIR)/test_netof-netof.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='netof.c' object='test_netof-netof.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_netof_CFLAGS) $(CFLAGS) -c -o test_netof-netof.obj `if test -f 'netof.c'; then $(CYGPATH_W) 'netof.c'; else $(CYGPATH_W) '$(srcdir)/netof.c'; fi` + +test_netof-run-netof.o: run-netof.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_netof_CFLAGS) $(CFLAGS) -MT test_netof-run-netof.o -MD -MP -MF $(DEPDIR)/test_netof-run-netof.Tpo -c -o test_netof-run-netof.o `test -f 'run-netof.c' || echo '$(srcdir)/'`run-netof.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_netof-run-netof.Tpo $(DEPDIR)/test_netof-run-netof.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-netof.c' object='test_netof-run-netof.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_netof_CFLAGS) $(CFLAGS) -c -o test_netof-run-netof.o `test -f 'run-netof.c' || echo '$(srcdir)/'`run-netof.c + +test_netof-run-netof.obj: run-netof.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_netof_CFLAGS) $(CFLAGS) -MT test_netof-run-netof.obj -MD -MP -MF $(DEPDIR)/test_netof-run-netof.Tpo -c -o test_netof-run-netof.obj `if test -f 'run-netof.c'; then $(CYGPATH_W) 'run-netof.c'; else $(CYGPATH_W) '$(srcdir)/run-netof.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_netof-run-netof.Tpo $(DEPDIR)/test_netof-run-netof.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-netof.c' object='test_netof-run-netof.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_netof_CFLAGS) $(CFLAGS) -c -o test_netof-run-netof.obj `if test -f 'run-netof.c'; then $(CYGPATH_W) 'run-netof.c'; else $(CYGPATH_W) '$(srcdir)/run-netof.c'; fi` + +test_numtoa-numtoa.o: numtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtoa_CFLAGS) $(CFLAGS) -MT test_numtoa-numtoa.o -MD -MP -MF $(DEPDIR)/test_numtoa-numtoa.Tpo -c -o test_numtoa-numtoa.o `test -f 'numtoa.c' || echo '$(srcdir)/'`numtoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtoa-numtoa.Tpo $(DEPDIR)/test_numtoa-numtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='numtoa.c' object='test_numtoa-numtoa.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_numtoa_CFLAGS) $(CFLAGS) -c -o test_numtoa-numtoa.o `test -f 'numtoa.c' || echo '$(srcdir)/'`numtoa.c + +test_numtoa-numtoa.obj: numtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtoa_CFLAGS) $(CFLAGS) -MT test_numtoa-numtoa.obj -MD -MP -MF $(DEPDIR)/test_numtoa-numtoa.Tpo -c -o test_numtoa-numtoa.obj `if test -f 'numtoa.c'; then $(CYGPATH_W) 'numtoa.c'; else $(CYGPATH_W) '$(srcdir)/numtoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtoa-numtoa.Tpo $(DEPDIR)/test_numtoa-numtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='numtoa.c' object='test_numtoa-numtoa.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_numtoa_CFLAGS) $(CFLAGS) -c -o test_numtoa-numtoa.obj `if test -f 'numtoa.c'; then $(CYGPATH_W) 'numtoa.c'; else $(CYGPATH_W) '$(srcdir)/numtoa.c'; fi` + +test_numtoa-run-numtoa.o: run-numtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtoa_CFLAGS) $(CFLAGS) -MT test_numtoa-run-numtoa.o -MD -MP -MF $(DEPDIR)/test_numtoa-run-numtoa.Tpo -c -o test_numtoa-run-numtoa.o `test -f 'run-numtoa.c' || echo '$(srcdir)/'`run-numtoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtoa-run-numtoa.Tpo $(DEPDIR)/test_numtoa-run-numtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-numtoa.c' object='test_numtoa-run-numtoa.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_numtoa_CFLAGS) $(CFLAGS) -c -o test_numtoa-run-numtoa.o `test -f 'run-numtoa.c' || echo '$(srcdir)/'`run-numtoa.c + +test_numtoa-run-numtoa.obj: run-numtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtoa_CFLAGS) $(CFLAGS) -MT test_numtoa-run-numtoa.obj -MD -MP -MF $(DEPDIR)/test_numtoa-run-numtoa.Tpo -c -o test_numtoa-run-numtoa.obj `if test -f 'run-numtoa.c'; then $(CYGPATH_W) 'run-numtoa.c'; else $(CYGPATH_W) '$(srcdir)/run-numtoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtoa-run-numtoa.Tpo $(DEPDIR)/test_numtoa-run-numtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-numtoa.c' object='test_numtoa-run-numtoa.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_numtoa_CFLAGS) $(CFLAGS) -c -o test_numtoa-run-numtoa.obj `if test -f 'run-numtoa.c'; then $(CYGPATH_W) 'run-numtoa.c'; else $(CYGPATH_W) '$(srcdir)/run-numtoa.c'; fi` + +test_numtohost-numtohost.o: numtohost.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtohost_CFLAGS) $(CFLAGS) -MT test_numtohost-numtohost.o -MD -MP -MF $(DEPDIR)/test_numtohost-numtohost.Tpo -c -o test_numtohost-numtohost.o `test -f 'numtohost.c' || echo '$(srcdir)/'`numtohost.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtohost-numtohost.Tpo $(DEPDIR)/test_numtohost-numtohost.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='numtohost.c' object='test_numtohost-numtohost.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_numtohost_CFLAGS) $(CFLAGS) -c -o test_numtohost-numtohost.o `test -f 'numtohost.c' || echo '$(srcdir)/'`numtohost.c + +test_numtohost-numtohost.obj: numtohost.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtohost_CFLAGS) $(CFLAGS) -MT test_numtohost-numtohost.obj -MD -MP -MF $(DEPDIR)/test_numtohost-numtohost.Tpo -c -o test_numtohost-numtohost.obj `if test -f 'numtohost.c'; then $(CYGPATH_W) 'numtohost.c'; else $(CYGPATH_W) '$(srcdir)/numtohost.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtohost-numtohost.Tpo $(DEPDIR)/test_numtohost-numtohost.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='numtohost.c' object='test_numtohost-numtohost.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_numtohost_CFLAGS) $(CFLAGS) -c -o test_numtohost-numtohost.obj `if test -f 'numtohost.c'; then $(CYGPATH_W) 'numtohost.c'; else $(CYGPATH_W) '$(srcdir)/numtohost.c'; fi` + +test_numtohost-run-numtohost.o: run-numtohost.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtohost_CFLAGS) $(CFLAGS) -MT test_numtohost-run-numtohost.o -MD -MP -MF $(DEPDIR)/test_numtohost-run-numtohost.Tpo -c -o test_numtohost-run-numtohost.o `test -f 'run-numtohost.c' || echo '$(srcdir)/'`run-numtohost.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtohost-run-numtohost.Tpo $(DEPDIR)/test_numtohost-run-numtohost.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-numtohost.c' object='test_numtohost-run-numtohost.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_numtohost_CFLAGS) $(CFLAGS) -c -o test_numtohost-run-numtohost.o `test -f 'run-numtohost.c' || echo '$(srcdir)/'`run-numtohost.c + +test_numtohost-run-numtohost.obj: run-numtohost.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_numtohost_CFLAGS) $(CFLAGS) -MT test_numtohost-run-numtohost.obj -MD -MP -MF $(DEPDIR)/test_numtohost-run-numtohost.Tpo -c -o test_numtohost-run-numtohost.obj `if test -f 'run-numtohost.c'; then $(CYGPATH_W) 'run-numtohost.c'; else $(CYGPATH_W) '$(srcdir)/run-numtohost.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_numtohost-run-numtohost.Tpo $(DEPDIR)/test_numtohost-run-numtohost.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-numtohost.c' object='test_numtohost-run-numtohost.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_numtohost_CFLAGS) $(CFLAGS) -c -o test_numtohost-run-numtohost.obj `if test -f 'run-numtohost.c'; then $(CYGPATH_W) 'run-numtohost.c'; else $(CYGPATH_W) '$(srcdir)/run-numtohost.c'; fi` + +test_octtoint-octtoint.o: octtoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_octtoint_CFLAGS) $(CFLAGS) -MT test_octtoint-octtoint.o -MD -MP -MF $(DEPDIR)/test_octtoint-octtoint.Tpo -c -o test_octtoint-octtoint.o `test -f 'octtoint.c' || echo '$(srcdir)/'`octtoint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_octtoint-octtoint.Tpo $(DEPDIR)/test_octtoint-octtoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='octtoint.c' object='test_octtoint-octtoint.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_octtoint_CFLAGS) $(CFLAGS) -c -o test_octtoint-octtoint.o `test -f 'octtoint.c' || echo '$(srcdir)/'`octtoint.c + +test_octtoint-octtoint.obj: octtoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_octtoint_CFLAGS) $(CFLAGS) -MT test_octtoint-octtoint.obj -MD -MP -MF $(DEPDIR)/test_octtoint-octtoint.Tpo -c -o test_octtoint-octtoint.obj `if test -f 'octtoint.c'; then $(CYGPATH_W) 'octtoint.c'; else $(CYGPATH_W) '$(srcdir)/octtoint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_octtoint-octtoint.Tpo $(DEPDIR)/test_octtoint-octtoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='octtoint.c' object='test_octtoint-octtoint.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_octtoint_CFLAGS) $(CFLAGS) -c -o test_octtoint-octtoint.obj `if test -f 'octtoint.c'; then $(CYGPATH_W) 'octtoint.c'; else $(CYGPATH_W) '$(srcdir)/octtoint.c'; fi` + +test_octtoint-run-octtoint.o: run-octtoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_octtoint_CFLAGS) $(CFLAGS) -MT test_octtoint-run-octtoint.o -MD -MP -MF $(DEPDIR)/test_octtoint-run-octtoint.Tpo -c -o test_octtoint-run-octtoint.o `test -f 'run-octtoint.c' || echo '$(srcdir)/'`run-octtoint.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_octtoint-run-octtoint.Tpo $(DEPDIR)/test_octtoint-run-octtoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-octtoint.c' object='test_octtoint-run-octtoint.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_octtoint_CFLAGS) $(CFLAGS) -c -o test_octtoint-run-octtoint.o `test -f 'run-octtoint.c' || echo '$(srcdir)/'`run-octtoint.c + +test_octtoint-run-octtoint.obj: run-octtoint.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_octtoint_CFLAGS) $(CFLAGS) -MT test_octtoint-run-octtoint.obj -MD -MP -MF $(DEPDIR)/test_octtoint-run-octtoint.Tpo -c -o test_octtoint-run-octtoint.obj `if test -f 'run-octtoint.c'; then $(CYGPATH_W) 'run-octtoint.c'; else $(CYGPATH_W) '$(srcdir)/run-octtoint.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_octtoint-run-octtoint.Tpo $(DEPDIR)/test_octtoint-run-octtoint.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-octtoint.c' object='test_octtoint-run-octtoint.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_octtoint_CFLAGS) $(CFLAGS) -c -o test_octtoint-run-octtoint.obj `if test -f 'run-octtoint.c'; then $(CYGPATH_W) 'run-octtoint.c'; else $(CYGPATH_W) '$(srcdir)/run-octtoint.c'; fi` + +test_prettydate-prettydate.o: prettydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_prettydate_CFLAGS) $(CFLAGS) -MT test_prettydate-prettydate.o -MD -MP -MF $(DEPDIR)/test_prettydate-prettydate.Tpo -c -o test_prettydate-prettydate.o `test -f 'prettydate.c' || echo '$(srcdir)/'`prettydate.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_prettydate-prettydate.Tpo $(DEPDIR)/test_prettydate-prettydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prettydate.c' object='test_prettydate-prettydate.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_prettydate_CFLAGS) $(CFLAGS) -c -o test_prettydate-prettydate.o `test -f 'prettydate.c' || echo '$(srcdir)/'`prettydate.c + +test_prettydate-prettydate.obj: prettydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_prettydate_CFLAGS) $(CFLAGS) -MT test_prettydate-prettydate.obj -MD -MP -MF $(DEPDIR)/test_prettydate-prettydate.Tpo -c -o test_prettydate-prettydate.obj `if test -f 'prettydate.c'; then $(CYGPATH_W) 'prettydate.c'; else $(CYGPATH_W) '$(srcdir)/prettydate.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_prettydate-prettydate.Tpo $(DEPDIR)/test_prettydate-prettydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prettydate.c' object='test_prettydate-prettydate.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_prettydate_CFLAGS) $(CFLAGS) -c -o test_prettydate-prettydate.obj `if test -f 'prettydate.c'; then $(CYGPATH_W) 'prettydate.c'; else $(CYGPATH_W) '$(srcdir)/prettydate.c'; fi` + +test_prettydate-run-prettydate.o: run-prettydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_prettydate_CFLAGS) $(CFLAGS) -MT test_prettydate-run-prettydate.o -MD -MP -MF $(DEPDIR)/test_prettydate-run-prettydate.Tpo -c -o test_prettydate-run-prettydate.o `test -f 'run-prettydate.c' || echo '$(srcdir)/'`run-prettydate.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_prettydate-run-prettydate.Tpo $(DEPDIR)/test_prettydate-run-prettydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-prettydate.c' object='test_prettydate-run-prettydate.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_prettydate_CFLAGS) $(CFLAGS) -c -o test_prettydate-run-prettydate.o `test -f 'run-prettydate.c' || echo '$(srcdir)/'`run-prettydate.c + +test_prettydate-run-prettydate.obj: run-prettydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_prettydate_CFLAGS) $(CFLAGS) -MT test_prettydate-run-prettydate.obj -MD -MP -MF $(DEPDIR)/test_prettydate-run-prettydate.Tpo -c -o test_prettydate-run-prettydate.obj `if test -f 'run-prettydate.c'; then $(CYGPATH_W) 'run-prettydate.c'; else $(CYGPATH_W) '$(srcdir)/run-prettydate.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_prettydate-run-prettydate.Tpo $(DEPDIR)/test_prettydate-run-prettydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-prettydate.c' object='test_prettydate-run-prettydate.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_prettydate_CFLAGS) $(CFLAGS) -c -o test_prettydate-run-prettydate.obj `if test -f 'run-prettydate.c'; then $(CYGPATH_W) 'run-prettydate.c'; else $(CYGPATH_W) '$(srcdir)/run-prettydate.c'; fi` + +test_recvbuff-recvbuff.o: recvbuff.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_recvbuff_CFLAGS) $(CFLAGS) -MT test_recvbuff-recvbuff.o -MD -MP -MF $(DEPDIR)/test_recvbuff-recvbuff.Tpo -c -o test_recvbuff-recvbuff.o `test -f 'recvbuff.c' || echo '$(srcdir)/'`recvbuff.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_recvbuff-recvbuff.Tpo $(DEPDIR)/test_recvbuff-recvbuff.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='recvbuff.c' object='test_recvbuff-recvbuff.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_recvbuff_CFLAGS) $(CFLAGS) -c -o test_recvbuff-recvbuff.o `test -f 'recvbuff.c' || echo '$(srcdir)/'`recvbuff.c + +test_recvbuff-recvbuff.obj: recvbuff.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_recvbuff_CFLAGS) $(CFLAGS) -MT test_recvbuff-recvbuff.obj -MD -MP -MF $(DEPDIR)/test_recvbuff-recvbuff.Tpo -c -o test_recvbuff-recvbuff.obj `if test -f 'recvbuff.c'; then $(CYGPATH_W) 'recvbuff.c'; else $(CYGPATH_W) '$(srcdir)/recvbuff.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_recvbuff-recvbuff.Tpo $(DEPDIR)/test_recvbuff-recvbuff.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='recvbuff.c' object='test_recvbuff-recvbuff.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_recvbuff_CFLAGS) $(CFLAGS) -c -o test_recvbuff-recvbuff.obj `if test -f 'recvbuff.c'; then $(CYGPATH_W) 'recvbuff.c'; else $(CYGPATH_W) '$(srcdir)/recvbuff.c'; fi` + +test_recvbuff-run-recvbuff.o: run-recvbuff.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_recvbuff_CFLAGS) $(CFLAGS) -MT test_recvbuff-run-recvbuff.o -MD -MP -MF $(DEPDIR)/test_recvbuff-run-recvbuff.Tpo -c -o test_recvbuff-run-recvbuff.o `test -f 'run-recvbuff.c' || echo '$(srcdir)/'`run-recvbuff.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_recvbuff-run-recvbuff.Tpo $(DEPDIR)/test_recvbuff-run-recvbuff.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-recvbuff.c' object='test_recvbuff-run-recvbuff.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_recvbuff_CFLAGS) $(CFLAGS) -c -o test_recvbuff-run-recvbuff.o `test -f 'run-recvbuff.c' || echo '$(srcdir)/'`run-recvbuff.c + +test_recvbuff-run-recvbuff.obj: run-recvbuff.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_recvbuff_CFLAGS) $(CFLAGS) -MT test_recvbuff-run-recvbuff.obj -MD -MP -MF $(DEPDIR)/test_recvbuff-run-recvbuff.Tpo -c -o test_recvbuff-run-recvbuff.obj `if test -f 'run-recvbuff.c'; then $(CYGPATH_W) 'run-recvbuff.c'; else $(CYGPATH_W) '$(srcdir)/run-recvbuff.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_recvbuff-run-recvbuff.Tpo $(DEPDIR)/test_recvbuff-run-recvbuff.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-recvbuff.c' object='test_recvbuff-run-recvbuff.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_recvbuff_CFLAGS) $(CFLAGS) -c -o test_recvbuff-run-recvbuff.obj `if test -f 'run-recvbuff.c'; then $(CYGPATH_W) 'run-recvbuff.c'; else $(CYGPATH_W) '$(srcdir)/run-recvbuff.c'; fi` + +test_refidsmear-refidsmear.o: refidsmear.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refidsmear_CFLAGS) $(CFLAGS) -MT test_refidsmear-refidsmear.o -MD -MP -MF $(DEPDIR)/test_refidsmear-refidsmear.Tpo -c -o test_refidsmear-refidsmear.o `test -f 'refidsmear.c' || echo '$(srcdir)/'`refidsmear.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refidsmear-refidsmear.Tpo $(DEPDIR)/test_refidsmear-refidsmear.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='refidsmear.c' object='test_refidsmear-refidsmear.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_refidsmear_CFLAGS) $(CFLAGS) -c -o test_refidsmear-refidsmear.o `test -f 'refidsmear.c' || echo '$(srcdir)/'`refidsmear.c + +test_refidsmear-refidsmear.obj: refidsmear.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refidsmear_CFLAGS) $(CFLAGS) -MT test_refidsmear-refidsmear.obj -MD -MP -MF $(DEPDIR)/test_refidsmear-refidsmear.Tpo -c -o test_refidsmear-refidsmear.obj `if test -f 'refidsmear.c'; then $(CYGPATH_W) 'refidsmear.c'; else $(CYGPATH_W) '$(srcdir)/refidsmear.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refidsmear-refidsmear.Tpo $(DEPDIR)/test_refidsmear-refidsmear.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='refidsmear.c' object='test_refidsmear-refidsmear.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_refidsmear_CFLAGS) $(CFLAGS) -c -o test_refidsmear-refidsmear.obj `if test -f 'refidsmear.c'; then $(CYGPATH_W) 'refidsmear.c'; else $(CYGPATH_W) '$(srcdir)/refidsmear.c'; fi` + +test_refidsmear-run-refidsmear.o: run-refidsmear.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refidsmear_CFLAGS) $(CFLAGS) -MT test_refidsmear-run-refidsmear.o -MD -MP -MF $(DEPDIR)/test_refidsmear-run-refidsmear.Tpo -c -o test_refidsmear-run-refidsmear.o `test -f 'run-refidsmear.c' || echo '$(srcdir)/'`run-refidsmear.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refidsmear-run-refidsmear.Tpo $(DEPDIR)/test_refidsmear-run-refidsmear.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-refidsmear.c' object='test_refidsmear-run-refidsmear.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_refidsmear_CFLAGS) $(CFLAGS) -c -o test_refidsmear-run-refidsmear.o `test -f 'run-refidsmear.c' || echo '$(srcdir)/'`run-refidsmear.c + +test_refidsmear-run-refidsmear.obj: run-refidsmear.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refidsmear_CFLAGS) $(CFLAGS) -MT test_refidsmear-run-refidsmear.obj -MD -MP -MF $(DEPDIR)/test_refidsmear-run-refidsmear.Tpo -c -o test_refidsmear-run-refidsmear.obj `if test -f 'run-refidsmear.c'; then $(CYGPATH_W) 'run-refidsmear.c'; else $(CYGPATH_W) '$(srcdir)/run-refidsmear.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refidsmear-run-refidsmear.Tpo $(DEPDIR)/test_refidsmear-run-refidsmear.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-refidsmear.c' object='test_refidsmear-run-refidsmear.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_refidsmear_CFLAGS) $(CFLAGS) -c -o test_refidsmear-run-refidsmear.obj `if test -f 'run-refidsmear.c'; then $(CYGPATH_W) 'run-refidsmear.c'; else $(CYGPATH_W) '$(srcdir)/run-refidsmear.c'; fi` + +test_refnumtoa-refnumtoa.o: refnumtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refnumtoa_CFLAGS) $(CFLAGS) -MT test_refnumtoa-refnumtoa.o -MD -MP -MF $(DEPDIR)/test_refnumtoa-refnumtoa.Tpo -c -o test_refnumtoa-refnumtoa.o `test -f 'refnumtoa.c' || echo '$(srcdir)/'`refnumtoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refnumtoa-refnumtoa.Tpo $(DEPDIR)/test_refnumtoa-refnumtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='refnumtoa.c' object='test_refnumtoa-refnumtoa.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_refnumtoa_CFLAGS) $(CFLAGS) -c -o test_refnumtoa-refnumtoa.o `test -f 'refnumtoa.c' || echo '$(srcdir)/'`refnumtoa.c + +test_refnumtoa-refnumtoa.obj: refnumtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refnumtoa_CFLAGS) $(CFLAGS) -MT test_refnumtoa-refnumtoa.obj -MD -MP -MF $(DEPDIR)/test_refnumtoa-refnumtoa.Tpo -c -o test_refnumtoa-refnumtoa.obj `if test -f 'refnumtoa.c'; then $(CYGPATH_W) 'refnumtoa.c'; else $(CYGPATH_W) '$(srcdir)/refnumtoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refnumtoa-refnumtoa.Tpo $(DEPDIR)/test_refnumtoa-refnumtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='refnumtoa.c' object='test_refnumtoa-refnumtoa.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_refnumtoa_CFLAGS) $(CFLAGS) -c -o test_refnumtoa-refnumtoa.obj `if test -f 'refnumtoa.c'; then $(CYGPATH_W) 'refnumtoa.c'; else $(CYGPATH_W) '$(srcdir)/refnumtoa.c'; fi` + +test_refnumtoa-run-refnumtoa.o: run-refnumtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refnumtoa_CFLAGS) $(CFLAGS) -MT test_refnumtoa-run-refnumtoa.o -MD -MP -MF $(DEPDIR)/test_refnumtoa-run-refnumtoa.Tpo -c -o test_refnumtoa-run-refnumtoa.o `test -f 'run-refnumtoa.c' || echo '$(srcdir)/'`run-refnumtoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refnumtoa-run-refnumtoa.Tpo $(DEPDIR)/test_refnumtoa-run-refnumtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-refnumtoa.c' object='test_refnumtoa-run-refnumtoa.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_refnumtoa_CFLAGS) $(CFLAGS) -c -o test_refnumtoa-run-refnumtoa.o `test -f 'run-refnumtoa.c' || echo '$(srcdir)/'`run-refnumtoa.c + +test_refnumtoa-run-refnumtoa.obj: run-refnumtoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_refnumtoa_CFLAGS) $(CFLAGS) -MT test_refnumtoa-run-refnumtoa.obj -MD -MP -MF $(DEPDIR)/test_refnumtoa-run-refnumtoa.Tpo -c -o test_refnumtoa-run-refnumtoa.obj `if test -f 'run-refnumtoa.c'; then $(CYGPATH_W) 'run-refnumtoa.c'; else $(CYGPATH_W) '$(srcdir)/run-refnumtoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_refnumtoa-run-refnumtoa.Tpo $(DEPDIR)/test_refnumtoa-run-refnumtoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-refnumtoa.c' object='test_refnumtoa-run-refnumtoa.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_refnumtoa_CFLAGS) $(CFLAGS) -c -o test_refnumtoa-run-refnumtoa.obj `if test -f 'run-refnumtoa.c'; then $(CYGPATH_W) 'run-refnumtoa.c'; else $(CYGPATH_W) '$(srcdir)/run-refnumtoa.c'; fi` + +test_sfptostr-sfptostr.o: sfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_sfptostr_CFLAGS) $(CFLAGS) -MT test_sfptostr-sfptostr.o -MD -MP -MF $(DEPDIR)/test_sfptostr-sfptostr.Tpo -c -o test_sfptostr-sfptostr.o `test -f 'sfptostr.c' || echo '$(srcdir)/'`sfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_sfptostr-sfptostr.Tpo $(DEPDIR)/test_sfptostr-sfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sfptostr.c' object='test_sfptostr-sfptostr.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_sfptostr_CFLAGS) $(CFLAGS) -c -o test_sfptostr-sfptostr.o `test -f 'sfptostr.c' || echo '$(srcdir)/'`sfptostr.c + +test_sfptostr-sfptostr.obj: sfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_sfptostr_CFLAGS) $(CFLAGS) -MT test_sfptostr-sfptostr.obj -MD -MP -MF $(DEPDIR)/test_sfptostr-sfptostr.Tpo -c -o test_sfptostr-sfptostr.obj `if test -f 'sfptostr.c'; then $(CYGPATH_W) 'sfptostr.c'; else $(CYGPATH_W) '$(srcdir)/sfptostr.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_sfptostr-sfptostr.Tpo $(DEPDIR)/test_sfptostr-sfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sfptostr.c' object='test_sfptostr-sfptostr.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_sfptostr_CFLAGS) $(CFLAGS) -c -o test_sfptostr-sfptostr.obj `if test -f 'sfptostr.c'; then $(CYGPATH_W) 'sfptostr.c'; else $(CYGPATH_W) '$(srcdir)/sfptostr.c'; fi` + +test_sfptostr-run-sfptostr.o: run-sfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_sfptostr_CFLAGS) $(CFLAGS) -MT test_sfptostr-run-sfptostr.o -MD -MP -MF $(DEPDIR)/test_sfptostr-run-sfptostr.Tpo -c -o test_sfptostr-run-sfptostr.o `test -f 'run-sfptostr.c' || echo '$(srcdir)/'`run-sfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_sfptostr-run-sfptostr.Tpo $(DEPDIR)/test_sfptostr-run-sfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-sfptostr.c' object='test_sfptostr-run-sfptostr.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_sfptostr_CFLAGS) $(CFLAGS) -c -o test_sfptostr-run-sfptostr.o `test -f 'run-sfptostr.c' || echo '$(srcdir)/'`run-sfptostr.c + +test_sfptostr-run-sfptostr.obj: run-sfptostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_sfptostr_CFLAGS) $(CFLAGS) -MT test_sfptostr-run-sfptostr.obj -MD -MP -MF $(DEPDIR)/test_sfptostr-run-sfptostr.Tpo -c -o test_sfptostr-run-sfptostr.obj `if test -f 'run-sfptostr.c'; then $(CYGPATH_W) 'run-sfptostr.c'; else $(CYGPATH_W) '$(srcdir)/run-sfptostr.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_sfptostr-run-sfptostr.Tpo $(DEPDIR)/test_sfptostr-run-sfptostr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-sfptostr.c' object='test_sfptostr-run-sfptostr.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_sfptostr_CFLAGS) $(CFLAGS) -c -o test_sfptostr-run-sfptostr.obj `if test -f 'run-sfptostr.c'; then $(CYGPATH_W) 'run-sfptostr.c'; else $(CYGPATH_W) '$(srcdir)/run-sfptostr.c'; fi` + +test_socktoa-socktoa.o: socktoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_socktoa_CFLAGS) $(CFLAGS) -MT test_socktoa-socktoa.o -MD -MP -MF $(DEPDIR)/test_socktoa-socktoa.Tpo -c -o test_socktoa-socktoa.o `test -f 'socktoa.c' || echo '$(srcdir)/'`socktoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_socktoa-socktoa.Tpo $(DEPDIR)/test_socktoa-socktoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='socktoa.c' object='test_socktoa-socktoa.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_socktoa_CFLAGS) $(CFLAGS) -c -o test_socktoa-socktoa.o `test -f 'socktoa.c' || echo '$(srcdir)/'`socktoa.c + +test_socktoa-socktoa.obj: socktoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_socktoa_CFLAGS) $(CFLAGS) -MT test_socktoa-socktoa.obj -MD -MP -MF $(DEPDIR)/test_socktoa-socktoa.Tpo -c -o test_socktoa-socktoa.obj `if test -f 'socktoa.c'; then $(CYGPATH_W) 'socktoa.c'; else $(CYGPATH_W) '$(srcdir)/socktoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_socktoa-socktoa.Tpo $(DEPDIR)/test_socktoa-socktoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='socktoa.c' object='test_socktoa-socktoa.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_socktoa_CFLAGS) $(CFLAGS) -c -o test_socktoa-socktoa.obj `if test -f 'socktoa.c'; then $(CYGPATH_W) 'socktoa.c'; else $(CYGPATH_W) '$(srcdir)/socktoa.c'; fi` + +test_socktoa-run-socktoa.o: run-socktoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_socktoa_CFLAGS) $(CFLAGS) -MT test_socktoa-run-socktoa.o -MD -MP -MF $(DEPDIR)/test_socktoa-run-socktoa.Tpo -c -o test_socktoa-run-socktoa.o `test -f 'run-socktoa.c' || echo '$(srcdir)/'`run-socktoa.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_socktoa-run-socktoa.Tpo $(DEPDIR)/test_socktoa-run-socktoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-socktoa.c' object='test_socktoa-run-socktoa.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_socktoa_CFLAGS) $(CFLAGS) -c -o test_socktoa-run-socktoa.o `test -f 'run-socktoa.c' || echo '$(srcdir)/'`run-socktoa.c + +test_socktoa-run-socktoa.obj: run-socktoa.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_socktoa_CFLAGS) $(CFLAGS) -MT test_socktoa-run-socktoa.obj -MD -MP -MF $(DEPDIR)/test_socktoa-run-socktoa.Tpo -c -o test_socktoa-run-socktoa.obj `if test -f 'run-socktoa.c'; then $(CYGPATH_W) 'run-socktoa.c'; else $(CYGPATH_W) '$(srcdir)/run-socktoa.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_socktoa-run-socktoa.Tpo $(DEPDIR)/test_socktoa-run-socktoa.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-socktoa.c' object='test_socktoa-run-socktoa.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_socktoa_CFLAGS) $(CFLAGS) -c -o test_socktoa-run-socktoa.obj `if test -f 'run-socktoa.c'; then $(CYGPATH_W) 'run-socktoa.c'; else $(CYGPATH_W) '$(srcdir)/run-socktoa.c'; fi` + +test_ssl_init-ssl_init.o: ssl_init.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ssl_init_CFLAGS) $(CFLAGS) -MT test_ssl_init-ssl_init.o -MD -MP -MF $(DEPDIR)/test_ssl_init-ssl_init.Tpo -c -o test_ssl_init-ssl_init.o `test -f 'ssl_init.c' || echo '$(srcdir)/'`ssl_init.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ssl_init-ssl_init.Tpo $(DEPDIR)/test_ssl_init-ssl_init.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ssl_init.c' object='test_ssl_init-ssl_init.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_ssl_init_CFLAGS) $(CFLAGS) -c -o test_ssl_init-ssl_init.o `test -f 'ssl_init.c' || echo '$(srcdir)/'`ssl_init.c + +test_ssl_init-ssl_init.obj: ssl_init.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ssl_init_CFLAGS) $(CFLAGS) -MT test_ssl_init-ssl_init.obj -MD -MP -MF $(DEPDIR)/test_ssl_init-ssl_init.Tpo -c -o test_ssl_init-ssl_init.obj `if test -f 'ssl_init.c'; then $(CYGPATH_W) 'ssl_init.c'; else $(CYGPATH_W) '$(srcdir)/ssl_init.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ssl_init-ssl_init.Tpo $(DEPDIR)/test_ssl_init-ssl_init.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ssl_init.c' object='test_ssl_init-ssl_init.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_ssl_init_CFLAGS) $(CFLAGS) -c -o test_ssl_init-ssl_init.obj `if test -f 'ssl_init.c'; then $(CYGPATH_W) 'ssl_init.c'; else $(CYGPATH_W) '$(srcdir)/ssl_init.c'; fi` + +test_ssl_init-run-ssl_init.o: run-ssl_init.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ssl_init_CFLAGS) $(CFLAGS) -MT test_ssl_init-run-ssl_init.o -MD -MP -MF $(DEPDIR)/test_ssl_init-run-ssl_init.Tpo -c -o test_ssl_init-run-ssl_init.o `test -f 'run-ssl_init.c' || echo '$(srcdir)/'`run-ssl_init.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ssl_init-run-ssl_init.Tpo $(DEPDIR)/test_ssl_init-run-ssl_init.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ssl_init.c' object='test_ssl_init-run-ssl_init.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_ssl_init_CFLAGS) $(CFLAGS) -c -o test_ssl_init-run-ssl_init.o `test -f 'run-ssl_init.c' || echo '$(srcdir)/'`run-ssl_init.c + +test_ssl_init-run-ssl_init.obj: run-ssl_init.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ssl_init_CFLAGS) $(CFLAGS) -MT test_ssl_init-run-ssl_init.obj -MD -MP -MF $(DEPDIR)/test_ssl_init-run-ssl_init.Tpo -c -o test_ssl_init-run-ssl_init.obj `if test -f 'run-ssl_init.c'; then $(CYGPATH_W) 'run-ssl_init.c'; else $(CYGPATH_W) '$(srcdir)/run-ssl_init.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ssl_init-run-ssl_init.Tpo $(DEPDIR)/test_ssl_init-run-ssl_init.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ssl_init.c' object='test_ssl_init-run-ssl_init.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_ssl_init_CFLAGS) $(CFLAGS) -c -o test_ssl_init-run-ssl_init.obj `if test -f 'run-ssl_init.c'; then $(CYGPATH_W) 'run-ssl_init.c'; else $(CYGPATH_W) '$(srcdir)/run-ssl_init.c'; fi` + +test_statestr-statestr.o: statestr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_statestr_CFLAGS) $(CFLAGS) -MT test_statestr-statestr.o -MD -MP -MF $(DEPDIR)/test_statestr-statestr.Tpo -c -o test_statestr-statestr.o `test -f 'statestr.c' || echo '$(srcdir)/'`statestr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_statestr-statestr.Tpo $(DEPDIR)/test_statestr-statestr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='statestr.c' object='test_statestr-statestr.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_statestr_CFLAGS) $(CFLAGS) -c -o test_statestr-statestr.o `test -f 'statestr.c' || echo '$(srcdir)/'`statestr.c + +test_statestr-statestr.obj: statestr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_statestr_CFLAGS) $(CFLAGS) -MT test_statestr-statestr.obj -MD -MP -MF $(DEPDIR)/test_statestr-statestr.Tpo -c -o test_statestr-statestr.obj `if test -f 'statestr.c'; then $(CYGPATH_W) 'statestr.c'; else $(CYGPATH_W) '$(srcdir)/statestr.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_statestr-statestr.Tpo $(DEPDIR)/test_statestr-statestr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='statestr.c' object='test_statestr-statestr.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_statestr_CFLAGS) $(CFLAGS) -c -o test_statestr-statestr.obj `if test -f 'statestr.c'; then $(CYGPATH_W) 'statestr.c'; else $(CYGPATH_W) '$(srcdir)/statestr.c'; fi` + +test_statestr-run-statestr.o: run-statestr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_statestr_CFLAGS) $(CFLAGS) -MT test_statestr-run-statestr.o -MD -MP -MF $(DEPDIR)/test_statestr-run-statestr.Tpo -c -o test_statestr-run-statestr.o `test -f 'run-statestr.c' || echo '$(srcdir)/'`run-statestr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_statestr-run-statestr.Tpo $(DEPDIR)/test_statestr-run-statestr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-statestr.c' object='test_statestr-run-statestr.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_statestr_CFLAGS) $(CFLAGS) -c -o test_statestr-run-statestr.o `test -f 'run-statestr.c' || echo '$(srcdir)/'`run-statestr.c + +test_statestr-run-statestr.obj: run-statestr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_statestr_CFLAGS) $(CFLAGS) -MT test_statestr-run-statestr.obj -MD -MP -MF $(DEPDIR)/test_statestr-run-statestr.Tpo -c -o test_statestr-run-statestr.obj `if test -f 'run-statestr.c'; then $(CYGPATH_W) 'run-statestr.c'; else $(CYGPATH_W) '$(srcdir)/run-statestr.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_statestr-run-statestr.Tpo $(DEPDIR)/test_statestr-run-statestr.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-statestr.c' object='test_statestr-run-statestr.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_statestr_CFLAGS) $(CFLAGS) -c -o test_statestr-run-statestr.obj `if test -f 'run-statestr.c'; then $(CYGPATH_W) 'run-statestr.c'; else $(CYGPATH_W) '$(srcdir)/run-statestr.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_timespecops-timespecops.o: timespecops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timespecops_CFLAGS) $(CFLAGS) -MT test_timespecops-timespecops.o -MD -MP -MF $(DEPDIR)/test_timespecops-timespecops.Tpo -c -o test_timespecops-timespecops.o `test -f 'timespecops.c' || echo '$(srcdir)/'`timespecops.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timespecops-timespecops.Tpo $(DEPDIR)/test_timespecops-timespecops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timespecops.c' object='test_timespecops-timespecops.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_timespecops_CFLAGS) $(CFLAGS) -c -o test_timespecops-timespecops.o `test -f 'timespecops.c' || echo '$(srcdir)/'`timespecops.c + +test_timespecops-timespecops.obj: timespecops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timespecops_CFLAGS) $(CFLAGS) -MT test_timespecops-timespecops.obj -MD -MP -MF $(DEPDIR)/test_timespecops-timespecops.Tpo -c -o test_timespecops-timespecops.obj `if test -f 'timespecops.c'; then $(CYGPATH_W) 'timespecops.c'; else $(CYGPATH_W) '$(srcdir)/timespecops.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timespecops-timespecops.Tpo $(DEPDIR)/test_timespecops-timespecops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timespecops.c' object='test_timespecops-timespecops.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_timespecops_CFLAGS) $(CFLAGS) -c -o test_timespecops-timespecops.obj `if test -f 'timespecops.c'; then $(CYGPATH_W) 'timespecops.c'; else $(CYGPATH_W) '$(srcdir)/timespecops.c'; fi` + +test_timespecops-run-timespecops.o: run-timespecops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timespecops_CFLAGS) $(CFLAGS) -MT test_timespecops-run-timespecops.o -MD -MP -MF $(DEPDIR)/test_timespecops-run-timespecops.Tpo -c -o test_timespecops-run-timespecops.o `test -f 'run-timespecops.c' || echo '$(srcdir)/'`run-timespecops.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timespecops-run-timespecops.Tpo $(DEPDIR)/test_timespecops-run-timespecops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-timespecops.c' object='test_timespecops-run-timespecops.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_timespecops_CFLAGS) $(CFLAGS) -c -o test_timespecops-run-timespecops.o `test -f 'run-timespecops.c' || echo '$(srcdir)/'`run-timespecops.c + +test_timespecops-run-timespecops.obj: run-timespecops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timespecops_CFLAGS) $(CFLAGS) -MT test_timespecops-run-timespecops.obj -MD -MP -MF $(DEPDIR)/test_timespecops-run-timespecops.Tpo -c -o test_timespecops-run-timespecops.obj `if test -f 'run-timespecops.c'; then $(CYGPATH_W) 'run-timespecops.c'; else $(CYGPATH_W) '$(srcdir)/run-timespecops.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timespecops-run-timespecops.Tpo $(DEPDIR)/test_timespecops-run-timespecops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-timespecops.c' object='test_timespecops-run-timespecops.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_timespecops_CFLAGS) $(CFLAGS) -c -o test_timespecops-run-timespecops.obj `if test -f 'run-timespecops.c'; then $(CYGPATH_W) 'run-timespecops.c'; else $(CYGPATH_W) '$(srcdir)/run-timespecops.c'; fi` + +test_timevalops-timevalops.o: timevalops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timevalops_CFLAGS) $(CFLAGS) -MT test_timevalops-timevalops.o -MD -MP -MF $(DEPDIR)/test_timevalops-timevalops.Tpo -c -o test_timevalops-timevalops.o `test -f 'timevalops.c' || echo '$(srcdir)/'`timevalops.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timevalops-timevalops.Tpo $(DEPDIR)/test_timevalops-timevalops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timevalops.c' object='test_timevalops-timevalops.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_timevalops_CFLAGS) $(CFLAGS) -c -o test_timevalops-timevalops.o `test -f 'timevalops.c' || echo '$(srcdir)/'`timevalops.c + +test_timevalops-timevalops.obj: timevalops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timevalops_CFLAGS) $(CFLAGS) -MT test_timevalops-timevalops.obj -MD -MP -MF $(DEPDIR)/test_timevalops-timevalops.Tpo -c -o test_timevalops-timevalops.obj `if test -f 'timevalops.c'; then $(CYGPATH_W) 'timevalops.c'; else $(CYGPATH_W) '$(srcdir)/timevalops.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timevalops-timevalops.Tpo $(DEPDIR)/test_timevalops-timevalops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timevalops.c' object='test_timevalops-timevalops.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_timevalops_CFLAGS) $(CFLAGS) -c -o test_timevalops-timevalops.obj `if test -f 'timevalops.c'; then $(CYGPATH_W) 'timevalops.c'; else $(CYGPATH_W) '$(srcdir)/timevalops.c'; fi` + +test_timevalops-run-timevalops.o: run-timevalops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timevalops_CFLAGS) $(CFLAGS) -MT test_timevalops-run-timevalops.o -MD -MP -MF $(DEPDIR)/test_timevalops-run-timevalops.Tpo -c -o test_timevalops-run-timevalops.o `test -f 'run-timevalops.c' || echo '$(srcdir)/'`run-timevalops.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timevalops-run-timevalops.Tpo $(DEPDIR)/test_timevalops-run-timevalops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-timevalops.c' object='test_timevalops-run-timevalops.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_timevalops_CFLAGS) $(CFLAGS) -c -o test_timevalops-run-timevalops.o `test -f 'run-timevalops.c' || echo '$(srcdir)/'`run-timevalops.c + +test_timevalops-run-timevalops.obj: run-timevalops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_timevalops_CFLAGS) $(CFLAGS) -MT test_timevalops-run-timevalops.obj -MD -MP -MF $(DEPDIR)/test_timevalops-run-timevalops.Tpo -c -o test_timevalops-run-timevalops.obj `if test -f 'run-timevalops.c'; then $(CYGPATH_W) 'run-timevalops.c'; else $(CYGPATH_W) '$(srcdir)/run-timevalops.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_timevalops-run-timevalops.Tpo $(DEPDIR)/test_timevalops-run-timevalops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-timevalops.c' object='test_timevalops-run-timevalops.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_timevalops_CFLAGS) $(CFLAGS) -c -o test_timevalops-run-timevalops.obj `if test -f 'run-timevalops.c'; then $(CYGPATH_W) 'run-timevalops.c'; else $(CYGPATH_W) '$(srcdir)/run-timevalops.c'; fi` + +test_tstotv-tstotv.o: tstotv.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tstotv_CFLAGS) $(CFLAGS) -MT test_tstotv-tstotv.o -MD -MP -MF $(DEPDIR)/test_tstotv-tstotv.Tpo -c -o test_tstotv-tstotv.o `test -f 'tstotv.c' || echo '$(srcdir)/'`tstotv.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tstotv-tstotv.Tpo $(DEPDIR)/test_tstotv-tstotv.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tstotv.c' object='test_tstotv-tstotv.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_tstotv_CFLAGS) $(CFLAGS) -c -o test_tstotv-tstotv.o `test -f 'tstotv.c' || echo '$(srcdir)/'`tstotv.c + +test_tstotv-tstotv.obj: tstotv.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tstotv_CFLAGS) $(CFLAGS) -MT test_tstotv-tstotv.obj -MD -MP -MF $(DEPDIR)/test_tstotv-tstotv.Tpo -c -o test_tstotv-tstotv.obj `if test -f 'tstotv.c'; then $(CYGPATH_W) 'tstotv.c'; else $(CYGPATH_W) '$(srcdir)/tstotv.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tstotv-tstotv.Tpo $(DEPDIR)/test_tstotv-tstotv.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tstotv.c' object='test_tstotv-tstotv.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_tstotv_CFLAGS) $(CFLAGS) -c -o test_tstotv-tstotv.obj `if test -f 'tstotv.c'; then $(CYGPATH_W) 'tstotv.c'; else $(CYGPATH_W) '$(srcdir)/tstotv.c'; fi` + +test_tstotv-run-tstotv.o: run-tstotv.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tstotv_CFLAGS) $(CFLAGS) -MT test_tstotv-run-tstotv.o -MD -MP -MF $(DEPDIR)/test_tstotv-run-tstotv.Tpo -c -o test_tstotv-run-tstotv.o `test -f 'run-tstotv.c' || echo '$(srcdir)/'`run-tstotv.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tstotv-run-tstotv.Tpo $(DEPDIR)/test_tstotv-run-tstotv.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-tstotv.c' object='test_tstotv-run-tstotv.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_tstotv_CFLAGS) $(CFLAGS) -c -o test_tstotv-run-tstotv.o `test -f 'run-tstotv.c' || echo '$(srcdir)/'`run-tstotv.c + +test_tstotv-run-tstotv.obj: run-tstotv.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tstotv_CFLAGS) $(CFLAGS) -MT test_tstotv-run-tstotv.obj -MD -MP -MF $(DEPDIR)/test_tstotv-run-tstotv.Tpo -c -o test_tstotv-run-tstotv.obj `if test -f 'run-tstotv.c'; then $(CYGPATH_W) 'run-tstotv.c'; else $(CYGPATH_W) '$(srcdir)/run-tstotv.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tstotv-run-tstotv.Tpo $(DEPDIR)/test_tstotv-run-tstotv.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-tstotv.c' object='test_tstotv-run-tstotv.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_tstotv_CFLAGS) $(CFLAGS) -c -o test_tstotv-run-tstotv.obj `if test -f 'run-tstotv.c'; then $(CYGPATH_W) 'run-tstotv.c'; else $(CYGPATH_W) '$(srcdir)/run-tstotv.c'; fi` + +test_tvtots-tvtots.o: tvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tvtots_CFLAGS) $(CFLAGS) -MT test_tvtots-tvtots.o -MD -MP -MF $(DEPDIR)/test_tvtots-tvtots.Tpo -c -o test_tvtots-tvtots.o `test -f 'tvtots.c' || echo '$(srcdir)/'`tvtots.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tvtots-tvtots.Tpo $(DEPDIR)/test_tvtots-tvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tvtots.c' object='test_tvtots-tvtots.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_tvtots_CFLAGS) $(CFLAGS) -c -o test_tvtots-tvtots.o `test -f 'tvtots.c' || echo '$(srcdir)/'`tvtots.c + +test_tvtots-tvtots.obj: tvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tvtots_CFLAGS) $(CFLAGS) -MT test_tvtots-tvtots.obj -MD -MP -MF $(DEPDIR)/test_tvtots-tvtots.Tpo -c -o test_tvtots-tvtots.obj `if test -f 'tvtots.c'; then $(CYGPATH_W) 'tvtots.c'; else $(CYGPATH_W) '$(srcdir)/tvtots.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tvtots-tvtots.Tpo $(DEPDIR)/test_tvtots-tvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tvtots.c' object='test_tvtots-tvtots.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_tvtots_CFLAGS) $(CFLAGS) -c -o test_tvtots-tvtots.obj `if test -f 'tvtots.c'; then $(CYGPATH_W) 'tvtots.c'; else $(CYGPATH_W) '$(srcdir)/tvtots.c'; fi` + +test_tvtots-run-tvtots.o: run-tvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tvtots_CFLAGS) $(CFLAGS) -MT test_tvtots-run-tvtots.o -MD -MP -MF $(DEPDIR)/test_tvtots-run-tvtots.Tpo -c -o test_tvtots-run-tvtots.o `test -f 'run-tvtots.c' || echo '$(srcdir)/'`run-tvtots.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tvtots-run-tvtots.Tpo $(DEPDIR)/test_tvtots-run-tvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-tvtots.c' object='test_tvtots-run-tvtots.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_tvtots_CFLAGS) $(CFLAGS) -c -o test_tvtots-run-tvtots.o `test -f 'run-tvtots.c' || echo '$(srcdir)/'`run-tvtots.c + +test_tvtots-run-tvtots.obj: run-tvtots.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_tvtots_CFLAGS) $(CFLAGS) -MT test_tvtots-run-tvtots.obj -MD -MP -MF $(DEPDIR)/test_tvtots-run-tvtots.Tpo -c -o test_tvtots-run-tvtots.obj `if test -f 'run-tvtots.c'; then $(CYGPATH_W) 'run-tvtots.c'; else $(CYGPATH_W) '$(srcdir)/run-tvtots.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_tvtots-run-tvtots.Tpo $(DEPDIR)/test_tvtots-run-tvtots.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-tvtots.c' object='test_tvtots-run-tvtots.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_tvtots_CFLAGS) $(CFLAGS) -c -o test_tvtots-run-tvtots.obj `if test -f 'run-tvtots.c'; then $(CYGPATH_W) 'run-tvtots.c'; else $(CYGPATH_W) '$(srcdir)/run-tvtots.c'; fi` + +test_uglydate-uglydate.o: uglydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_uglydate_CFLAGS) $(CFLAGS) -MT test_uglydate-uglydate.o -MD -MP -MF $(DEPDIR)/test_uglydate-uglydate.Tpo -c -o test_uglydate-uglydate.o `test -f 'uglydate.c' || echo '$(srcdir)/'`uglydate.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_uglydate-uglydate.Tpo $(DEPDIR)/test_uglydate-uglydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uglydate.c' object='test_uglydate-uglydate.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_uglydate_CFLAGS) $(CFLAGS) -c -o test_uglydate-uglydate.o `test -f 'uglydate.c' || echo '$(srcdir)/'`uglydate.c + +test_uglydate-uglydate.obj: uglydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_uglydate_CFLAGS) $(CFLAGS) -MT test_uglydate-uglydate.obj -MD -MP -MF $(DEPDIR)/test_uglydate-uglydate.Tpo -c -o test_uglydate-uglydate.obj `if test -f 'uglydate.c'; then $(CYGPATH_W) 'uglydate.c'; else $(CYGPATH_W) '$(srcdir)/uglydate.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_uglydate-uglydate.Tpo $(DEPDIR)/test_uglydate-uglydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uglydate.c' object='test_uglydate-uglydate.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_uglydate_CFLAGS) $(CFLAGS) -c -o test_uglydate-uglydate.obj `if test -f 'uglydate.c'; then $(CYGPATH_W) 'uglydate.c'; else $(CYGPATH_W) '$(srcdir)/uglydate.c'; fi` + +test_uglydate-run-uglydate.o: run-uglydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_uglydate_CFLAGS) $(CFLAGS) -MT test_uglydate-run-uglydate.o -MD -MP -MF $(DEPDIR)/test_uglydate-run-uglydate.Tpo -c -o test_uglydate-run-uglydate.o `test -f 'run-uglydate.c' || echo '$(srcdir)/'`run-uglydate.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_uglydate-run-uglydate.Tpo $(DEPDIR)/test_uglydate-run-uglydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-uglydate.c' object='test_uglydate-run-uglydate.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_uglydate_CFLAGS) $(CFLAGS) -c -o test_uglydate-run-uglydate.o `test -f 'run-uglydate.c' || echo '$(srcdir)/'`run-uglydate.c + +test_uglydate-run-uglydate.obj: run-uglydate.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_uglydate_CFLAGS) $(CFLAGS) -MT test_uglydate-run-uglydate.obj -MD -MP -MF $(DEPDIR)/test_uglydate-run-uglydate.Tpo -c -o test_uglydate-run-uglydate.obj `if test -f 'run-uglydate.c'; then $(CYGPATH_W) 'run-uglydate.c'; else $(CYGPATH_W) '$(srcdir)/run-uglydate.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_uglydate-run-uglydate.Tpo $(DEPDIR)/test_uglydate-run-uglydate.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-uglydate.c' object='test_uglydate-run-uglydate.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_uglydate_CFLAGS) $(CFLAGS) -c -o test_uglydate-run-uglydate.obj `if test -f 'run-uglydate.c'; then $(CYGPATH_W) 'run-uglydate.c'; else $(CYGPATH_W) '$(srcdir)/run-uglydate.c'; fi` + +test_vi64ops-vi64ops.o: vi64ops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_vi64ops_CFLAGS) $(CFLAGS) -MT test_vi64ops-vi64ops.o -MD -MP -MF $(DEPDIR)/test_vi64ops-vi64ops.Tpo -c -o test_vi64ops-vi64ops.o `test -f 'vi64ops.c' || echo '$(srcdir)/'`vi64ops.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_vi64ops-vi64ops.Tpo $(DEPDIR)/test_vi64ops-vi64ops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vi64ops.c' object='test_vi64ops-vi64ops.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_vi64ops_CFLAGS) $(CFLAGS) -c -o test_vi64ops-vi64ops.o `test -f 'vi64ops.c' || echo '$(srcdir)/'`vi64ops.c + +test_vi64ops-vi64ops.obj: vi64ops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_vi64ops_CFLAGS) $(CFLAGS) -MT test_vi64ops-vi64ops.obj -MD -MP -MF $(DEPDIR)/test_vi64ops-vi64ops.Tpo -c -o test_vi64ops-vi64ops.obj `if test -f 'vi64ops.c'; then $(CYGPATH_W) 'vi64ops.c'; else $(CYGPATH_W) '$(srcdir)/vi64ops.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_vi64ops-vi64ops.Tpo $(DEPDIR)/test_vi64ops-vi64ops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vi64ops.c' object='test_vi64ops-vi64ops.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_vi64ops_CFLAGS) $(CFLAGS) -c -o test_vi64ops-vi64ops.obj `if test -f 'vi64ops.c'; then $(CYGPATH_W) 'vi64ops.c'; else $(CYGPATH_W) '$(srcdir)/vi64ops.c'; fi` + +test_vi64ops-run-vi64ops.o: run-vi64ops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_vi64ops_CFLAGS) $(CFLAGS) -MT test_vi64ops-run-vi64ops.o -MD -MP -MF $(DEPDIR)/test_vi64ops-run-vi64ops.Tpo -c -o test_vi64ops-run-vi64ops.o `test -f 'run-vi64ops.c' || echo '$(srcdir)/'`run-vi64ops.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_vi64ops-run-vi64ops.Tpo $(DEPDIR)/test_vi64ops-run-vi64ops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-vi64ops.c' object='test_vi64ops-run-vi64ops.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_vi64ops_CFLAGS) $(CFLAGS) -c -o test_vi64ops-run-vi64ops.o `test -f 'run-vi64ops.c' || echo '$(srcdir)/'`run-vi64ops.c + +test_vi64ops-run-vi64ops.obj: run-vi64ops.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_vi64ops_CFLAGS) $(CFLAGS) -MT test_vi64ops-run-vi64ops.obj -MD -MP -MF $(DEPDIR)/test_vi64ops-run-vi64ops.Tpo -c -o test_vi64ops-run-vi64ops.obj `if test -f 'run-vi64ops.c'; then $(CYGPATH_W) 'run-vi64ops.c'; else $(CYGPATH_W) '$(srcdir)/run-vi64ops.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_vi64ops-run-vi64ops.Tpo $(DEPDIR)/test_vi64ops-run-vi64ops.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-vi64ops.c' object='test_vi64ops-run-vi64ops.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_vi64ops_CFLAGS) $(CFLAGS) -c -o test_vi64ops-run-vi64ops.obj `if test -f 'run-vi64ops.c'; then $(CYGPATH_W) 'run-vi64ops.c'; else $(CYGPATH_W) '$(srcdir)/run-vi64ops.c'; fi` + +test_ymd2yd-ymd2yd.o: ymd2yd.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ymd2yd_CFLAGS) $(CFLAGS) -MT test_ymd2yd-ymd2yd.o -MD -MP -MF $(DEPDIR)/test_ymd2yd-ymd2yd.Tpo -c -o test_ymd2yd-ymd2yd.o `test -f 'ymd2yd.c' || echo '$(srcdir)/'`ymd2yd.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ymd2yd-ymd2yd.Tpo $(DEPDIR)/test_ymd2yd-ymd2yd.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ymd2yd.c' object='test_ymd2yd-ymd2yd.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_ymd2yd_CFLAGS) $(CFLAGS) -c -o test_ymd2yd-ymd2yd.o `test -f 'ymd2yd.c' || echo '$(srcdir)/'`ymd2yd.c + +test_ymd2yd-ymd2yd.obj: ymd2yd.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ymd2yd_CFLAGS) $(CFLAGS) -MT test_ymd2yd-ymd2yd.obj -MD -MP -MF $(DEPDIR)/test_ymd2yd-ymd2yd.Tpo -c -o test_ymd2yd-ymd2yd.obj `if test -f 'ymd2yd.c'; then $(CYGPATH_W) 'ymd2yd.c'; else $(CYGPATH_W) '$(srcdir)/ymd2yd.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ymd2yd-ymd2yd.Tpo $(DEPDIR)/test_ymd2yd-ymd2yd.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ymd2yd.c' object='test_ymd2yd-ymd2yd.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_ymd2yd_CFLAGS) $(CFLAGS) -c -o test_ymd2yd-ymd2yd.obj `if test -f 'ymd2yd.c'; then $(CYGPATH_W) 'ymd2yd.c'; else $(CYGPATH_W) '$(srcdir)/ymd2yd.c'; fi` + +test_ymd2yd-run-ymd2yd.o: run-ymd2yd.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ymd2yd_CFLAGS) $(CFLAGS) -MT test_ymd2yd-run-ymd2yd.o -MD -MP -MF $(DEPDIR)/test_ymd2yd-run-ymd2yd.Tpo -c -o test_ymd2yd-run-ymd2yd.o `test -f 'run-ymd2yd.c' || echo '$(srcdir)/'`run-ymd2yd.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ymd2yd-run-ymd2yd.Tpo $(DEPDIR)/test_ymd2yd-run-ymd2yd.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ymd2yd.c' object='test_ymd2yd-run-ymd2yd.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_ymd2yd_CFLAGS) $(CFLAGS) -c -o test_ymd2yd-run-ymd2yd.o `test -f 'run-ymd2yd.c' || echo '$(srcdir)/'`run-ymd2yd.c + +test_ymd2yd-run-ymd2yd.obj: run-ymd2yd.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ymd2yd_CFLAGS) $(CFLAGS) -MT test_ymd2yd-run-ymd2yd.obj -MD -MP -MF $(DEPDIR)/test_ymd2yd-run-ymd2yd.Tpo -c -o test_ymd2yd-run-ymd2yd.obj `if test -f 'run-ymd2yd.c'; then $(CYGPATH_W) 'run-ymd2yd.c'; else $(CYGPATH_W) '$(srcdir)/run-ymd2yd.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ymd2yd-run-ymd2yd.Tpo $(DEPDIR)/test_ymd2yd-run-ymd2yd.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='run-ymd2yd.c' object='test_ymd2yd-run-ymd2yd.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_ymd2yd_CFLAGS) $(CFLAGS) -c -o test_ymd2yd-run-ymd2yd.obj `if test -f 'run-ymd2yd.c'; then $(CYGPATH_W) 'run-ymd2yd.c'; else $(CYGPATH_W) '$(srcdir)/run-ymd2yd.c'; fi` + +.cpp.o: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< + +tests_main.o: $(top_srcdir)/sntp/tests_main.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tests_main.o -MD -MP -MF $(DEPDIR)/tests_main.Tpo -c -o tests_main.o `test -f '$(top_srcdir)/sntp/tests_main.cpp' || echo '$(srcdir)/'`$(top_srcdir)/sntp/tests_main.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tests_main.Tpo $(DEPDIR)/tests_main.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/sntp/tests_main.cpp' object='tests_main.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tests_main.o `test -f '$(top_srcdir)/sntp/tests_main.cpp' || echo '$(srcdir)/'`$(top_srcdir)/sntp/tests_main.cpp + +tests_main.obj: $(top_srcdir)/sntp/tests_main.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tests_main.obj -MD -MP -MF $(DEPDIR)/tests_main.Tpo -c -o tests_main.obj `if test -f '$(top_srcdir)/sntp/tests_main.cpp'; then $(CYGPATH_W) '$(top_srcdir)/sntp/tests_main.cpp'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/sntp/tests_main.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tests_main.Tpo $(DEPDIR)/tests_main.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/sntp/tests_main.cpp' object='tests_main.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tests_main.obj `if test -f '$(top_srcdir)/sntp/tests_main.cpp'; then $(CYGPATH_W) '$(top_srcdir)/sntp/tests_main.cpp'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/sntp/tests_main.cpp'; 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-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) +tests.log: tests$(EXEEXT) + @p='tests$(EXEEXT)'; \ + b='tests'; \ + $(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-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 new file mode 100644 index 0000000..1738200 --- /dev/null +++ b/contrib/ntp/tests/libntp/a_md5encrypt.c @@ -0,0 +1,99 @@ +#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; + + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +/* + * Example packet with MD5 hash calculated manually. + */ +const int keytype = KEY_TYPE_MD5; +const char *key = "abcdefgh"; +const u_short keyLength = 8; +const char *packet = "ijklmnopqrstuvwx"; +#define packetLength 16 //const int packetLength = 16; +#define keyIdLength 4 //const int keyIdLength = 4; +#define digestLength 16 //const int digestLength = 16; +const int totalLength = packetLength + keyIdLength + digestLength; +const char *expectedPacket = "ijklmnopqrstuvwx\0\0\0\0\x0c\x0e\x84\xcf\x0b\xb7\xa8\x68\x8e\x52\x38\xdb\xbc\x1c\x39\x53"; + +void test_Encrypt() { + char *packetPtr = malloc(totalLength*sizeof(*packetPtr)); //new char[totalLength]; + + memset(packetPtr+packetLength, 0, keyIdLength); + memcpy(packetPtr, packet, packetLength); + + cache_secretsize = keyLength; + + int length = MD5authencrypt(keytype, (u_char*)key, (u_int32*)packetPtr, packetLength); + + TEST_ASSERT_TRUE(MD5authdecrypt(keytype, (u_char*)key, (u_int32*)packetPtr, packetLength, length)); + + TEST_ASSERT_EQUAL(20, length); + TEST_ASSERT_TRUE(memcmp(expectedPacket, packetPtr, totalLength) == 0); + + free(packetPtr); //delete[] packetPtr; +} + +void test_DecryptValid() { + cache_secretsize = keyLength; + + TEST_ASSERT_TRUE(MD5authdecrypt(keytype, (u_char*)key, (u_int32*)expectedPacket, packetLength, 20)); +} + +void test_DecryptInvalid() { + cache_secretsize = keyLength; + + const char *invalidPacket = "ijklmnopqrstuvwx\0\0\0\0\x0c\x0e\x84\xcf\x0b\xb7\xa8\x68\x8e\x52\x38\xdb\xbc\x1c\x39\x54"; + + TEST_ASSERT_FALSE(MD5authdecrypt(keytype, (u_char*)key, (u_int32*)invalidPacket, packetLength, 20)); +} + +void test_IPv4AddressToRefId() { + sockaddr_u addr; + addr.sa4.sin_family = AF_INET; + addr.sa4.sin_port = htons(80); + + u_int32 address = inet_addr("192.0.2.1"); + addr.sa4.sin_addr.s_addr = address; + + TEST_ASSERT_EQUAL(address, addr2refid(&addr)); +} + +void test_IPv6AddressToRefId() { + 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; + + const int expected = 0x75cffd52; + +#if 0 + TEST_ASSERT_EQUAL(expected, addr2refid(&addr)); +#else + 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 new file mode 100644 index 0000000..aca6ef5 --- /dev/null +++ b/contrib/ntp/tests/libntp/atoint.c @@ -0,0 +1,51 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "unity.h" + +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 new file mode 100644 index 0000000..33c15a9 --- /dev/null +++ b/contrib/ntp/tests/libntp/atouint.c @@ -0,0 +1,43 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "ntp_fp.h" + +#include "unity.h" + +void test_RegularPositive() { + const char *str = "305"; + u_long actual; + + TEST_ASSERT_TRUE(atouint(str, &actual)); + TEST_ASSERT_EQUAL(305, actual); +} + +void test_PositiveOverflowBoundary() { + const char *str = "4294967296"; + u_long actual; + + TEST_ASSERT_FALSE(atouint(str, &actual)); +} + +void test_PositiveOverflowBig() { + const char *str = "8000000000"; + u_long actual; + + TEST_ASSERT_FALSE(atouint(str, &actual)); +} + +void test_Negative() { + const char *str = "-1"; + u_long actual; + + TEST_ASSERT_FALSE(atouint(str, &actual)); +} + +void test_IllegalChar() { + 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 new file mode 100644 index 0000000..b949628 --- /dev/null +++ b/contrib/ntp/tests/libntp/authkeys.c @@ -0,0 +1,119 @@ +/* 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 + +u_long current_time = 4; +int counter = 0; + + +// old code from google test framework, moved to SetUp() for unity +void setUp(void) +{ +// init_lib(); + 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; + +} + +void tearDown(void) +{ +} + + +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); + + authtrust(keyno, TRUE); +} + +void AddUntrustedKey(keyid_t keyno) { + authtrust(keyno, FALSE); +} + +void test_AddTrustedKeys() { + const keyid_t KEYNO1 = 5; + const keyid_t KEYNO2 = 8; + + AddTrustedKey(KEYNO1); + AddTrustedKey(KEYNO2); + + TEST_ASSERT_TRUE(authistrusted(KEYNO1)); + TEST_ASSERT_TRUE(authistrusted(KEYNO2)); +} + +void test_AddUntrustedKey() { + const keyid_t KEYNO = 3; + + AddUntrustedKey(KEYNO); + + TEST_ASSERT_FALSE(authistrusted(KEYNO)); +} + +void test_HaveKeyCorrect() { + const keyid_t KEYNO = 3; + + AddTrustedKey(KEYNO); + + TEST_ASSERT_TRUE(auth_havekey(KEYNO)); + TEST_ASSERT_TRUE(authhavekey(KEYNO)); +} + +void test_HaveKeyIncorrect() { + const keyid_t KEYNO = 2; + + TEST_ASSERT_FALSE(auth_havekey(KEYNO)); + TEST_ASSERT_FALSE(authhavekey(KEYNO)); +} + +void test_AddWithAuthUseKey() { + const keyid_t KEYNO = 5; + const char* KEY = "52a"; + + TEST_ASSERT_TRUE(authusekey(KEYNO, KEYTYPE, (u_char*)KEY)); +} + +void test_EmptyKey() { + const keyid_t KEYNO = 3; + const char* KEY = ""; + + + TEST_ASSERT_FALSE(authusekey(KEYNO, KEYTYPE, (u_char*)KEY)); +} diff --git a/contrib/ntp/tests/libntp/buftvtots.c b/contrib/ntp/tests/libntp/buftvtots.c new file mode 100644 index 0000000..edeedf6 --- /dev/null +++ b/contrib/ntp/tests/libntp/buftvtots.c @@ -0,0 +1,78 @@ +#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 + + + +void test_ZeroBuffer() { +#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 +} + +void test_IntegerAndFractionalBuffer() { +#ifndef SYS_WINNT + const struct timeval input = {5, 500000}; // 5.5 + const l_fp expected = {5 + JAN_1970, HALF}; + + 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); + + 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); //delta,epected,actual //_EXPECT_NEAR(expectedDouble, actualDouble, 0.0000005); +#else + TEST_IGNORE_MESSAGE("Test only for Windows, skipping..."); +#endif +} + +void test_IllegalMicroseconds() { +#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 +} + + +void test_AlwaysFalseOnWindows() { +#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 +} + diff --git a/contrib/ntp/tests/libntp/calendar.c b/contrib/ntp/tests/libntp/calendar.c new file mode 100644 index 0000000..4ac1df4 --- /dev/null +++ b/contrib/ntp/tests/libntp/calendar.c @@ -0,0 +1,416 @@ +#include "config.h" + +#include "ntp_stdlib.h" //test fail without this include, for some reason +#include "ntp_calendar.h" +#include "unity.h" + +//#include "test-libntp.h" + + +#include +//#include + +static int leapdays(int year); + +char * CalendarFromCalToString(const struct calendar cal); //& +char * CalendarFromIsoToString(const struct isodate iso); //& + +//tehnically, booleans +int IsEqualCal(const struct calendar expected, const struct calendar actual); //&& +int IsEqualIso(const struct isodate expected, const struct isodate actual); //&& + +char * DateFromCalToStringCal(const struct calendar cal); //& +char * DateFromIsoToStringIso(const struct isodate iso); //& + +//tehnically, booleans +int sEqualDateCal(const struct calendar expected, const struct calendar actual); //&& +int IsEqualDateIso(const struct isodate expected, const struct isodate actual); //&& + + + +// --------------------------------------------------------------------- +// test support stuff +// --------------------------------------------------------------------- + +//function which, in combination with TEST_ASSERT_TRUE replaces google test framework's EXPECT_GT(a,b); -> GT means Greather Than +//boolean +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 * ss = malloc (sizeof (char) * 100); + + char buffer[100] =""; + 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", 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; + +} + +char * CalendarFromIsoToString(const struct isodate iso) { //& + + char * ss = malloc (sizeof (char) * 100); + + char buffer[100] =""; + sprintf(buffer, "%u", iso.year); + strcat(ss,buffer); + strcat(ss,"-"); + sprintf(buffer, "%u", (u_int)iso.week); + strcat(ss,buffer); + strcat(ss,"-"); + sprintf(buffer, "%u", (u_int)iso.weekday); + strcat(ss,buffer); + sprintf(buffer, "%u", (u_int)iso.hour); + strcat(ss,buffer); + strcat(ss,":"); + sprintf(buffer, "%u", (u_int)iso.minute); + strcat(ss,buffer); + strcat(ss,":"); + sprintf(buffer, "%u", (u_int)iso.second); + strcat(ss,buffer); + //ss << iso.year << "-" << (u_int)iso.week << "-" << (u_int)iso.weekday << (u_int)iso.hour << ":" << (u_int)iso.minute << ":" << (u_int)iso.second; + return ss; + +} + +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 { + printf("expected: %s but was %s", CalendarFromCalToString(expected) , CalendarFromCalToString(actual)); + 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 * ss = malloc (sizeof (char) * 100); + + char buffer[100] =""; + 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", cal.yearday); + strcat(ss,buffer); + strcat(ss,")"); + + return ss; + //ss << cal.year << "-" << (u_int)cal.month << "-" << (u_int)cal.monthday << " (" << cal.yearday << ")"; +} + +char * DateFromIsoToString(const struct isodate iso) { //& + + char * ss = malloc (sizeof (char) * 100); + + char buffer[100] =""; + sprintf(buffer, "%u", iso.year); + strcat(ss,buffer); + strcat(ss,"-"); + sprintf(buffer, "%u", (u_int)iso.week); + strcat(ss,buffer); + strcat(ss,"-"); + sprintf(buffer, "%u", (u_int)iso.weekday); + strcat(ss,buffer); + + return ss; + //ss << iso.year << "-" << (u_int)iso.week << "-" << (u_int)iso.weekday; + +} + +//boolean +int 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; + } +} + +//boolean +int 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 +// --------------------------------------------------------------------- +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() { + int32 day,sec; + for (day = -1000000; day <= 1000000; day += 100) { + for (sec = -100000; sec <= 186400; sec += 10000) { + vint64 merge = ntpcal_dayjoin(day, sec); + ntpcal_split split = ntpcal_daysplit(&merge); + int32 eday = day; + int32 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); + } + } +} + +void test_SplitYearDays1() { + 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));//EXPECT_GT(12, split.hi); + TEST_ASSERT_TRUE(isGT(real_month_days[0][split.hi+1], split.lo));//EXPECT_GT(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); + } +} + +void test_SplitYearDays2() { + int32 eyd; + for (eyd = -1; eyd <= 366; eyd++) { + ntpcal_split split = ntpcal_split_yeardays(eyd, 1); + if (split.lo >= 0 && split.hi >= 0) { + //TEST_ASSERT_TRUE(12 > split.hi); //simpler version, works for basic types, doesn't work for complex structs + TEST_ASSERT_TRUE(isGT(12,split.hi));//EXPECT_GT(12, split.hi); + TEST_ASSERT_TRUE(isGT(real_month_days[1][split.hi+1], split.lo));//EXPECT_GT(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); + } +} + +void test_RataDie1() { + 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)); +} + +// check last day of february for first 10000 years +void test_LeapYears1() { + 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)); + } +} + +// check first day of march for first 10000 years +void test_LeapYears2() { + 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)); + } +} + +// Full roundtrip for 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() { + struct calendar truDate, expDate = { 1600, 0, 12, 31 };; + int32 truRdn, expRdn = ntpcal_date_to_rd(&expDate); + int leaps; + + 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)); + } + } + } +} + +// Roundtrip testing on calyearstart +void test_RoundTripYearStart() { + 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); + } +} + +// Roundtrip testing on calymonthstart +void test_RoundTripMonthStart() { + 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); + } +} + +// Roundtrip testing on calweekstart +void test_RoundTripWeekStart() { + 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); + } +} + +// Roundtrip testing on caldaystart +void test_RoundTripDayStart() { + 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); + } +} + diff --git a/contrib/ntp/tests/libntp/caljulian.c b/contrib/ntp/tests/libntp/caljulian.c new file mode 100644 index 0000000..907f25d --- /dev/null +++ b/contrib/ntp/tests/libntp/caljulian.c @@ -0,0 +1,116 @@ +#include "config.h" + +#include "ntp_calendar.h" +#include "ntp_stdlib.h" +#include "unity.h" + +#include "test-libntp.h" + + +#include +//#include + +//added struct to calendar! + +char * CalendarToString(const struct calendar cal) { + char * ss = malloc (sizeof (char) * 100); + + char buffer[100] =""; + 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; +} + +//tehnically boolean +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 { + printf("expected: %s but was %s", CalendarToString(expected) ,CalendarToString(actual)); + return FALSE; + + } +} + + +void setUp() +{ + + ntpcal_set_timefunc(timefunc); + settime(1970, 1, 1, 0, 0, 0); +} + +void tearDown() +{ + ntpcal_set_timefunc(NULL); +} + + +void test_RegularTime() { + 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)); +} + +void test_LeapYear() { + 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)); +} + +void test_uLongBoundary() { + u_long time = 4294967295UL; // 2036-02-07 6:28:15 + struct calendar expected = {2036,0,2,7,6,28,15}; + + struct calendar actual; + + caljulian(time, &actual); + + TEST_ASSERT_TRUE(IsEqual(expected, actual)); +} + +void test_uLongWrapped() { + u_long time = 0; + struct calendar expected = {2036,0,2,7,6,28,16}; + + struct calendar actual; + + caljulian(time, &actual); + + TEST_ASSERT_TRUE(IsEqual(expected, actual)); +} diff --git a/contrib/ntp/tests/libntp/caltontp.c b/contrib/ntp/tests/libntp/caltontp.c new file mode 100644 index 0000000..9ce4854 --- /dev/null +++ b/contrib/ntp/tests/libntp/caltontp.c @@ -0,0 +1,48 @@ +#include "config.h" +#include "unity.h" +#include "ntp_calendar.h" + +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 new file mode 100644 index 0000000..b293c93 --- /dev/null +++ b/contrib/ntp/tests/libntp/calyearstart.c @@ -0,0 +1,44 @@ +#include "config.h" + +#include "ntp_stdlib.h" //test fail without this include, for some reason +#include "ntp_calendar.h" +#include "unity.h" + +#include "test-libntp.h" + + +void setUp() +{ + ntpcal_set_timefunc(timefunc); + settime(1970, 1, 1, 0, 0, 0); +} + +void tearDown() +{ + ntpcal_set_timefunc(NULL); +} + + +void test_NoWrapInDateRange() { + 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() { + 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() { + 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 new file mode 100644 index 0000000..a9c0fec --- /dev/null +++ b/contrib/ntp/tests/libntp/clocktime.c @@ -0,0 +1,201 @@ +#include "config.h" + +#include "ntp_calendar.h" +#include "ntp_stdlib.h" + +#include "unity.h" +#include "test-libntp.h" + + +// --------------------------------------------------------------------- +// 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); +} + +void tearDown() +{ + ntpcal_set_timefunc(NULL); +} + +// --------------------------------------------------------------------- +// test cases + +void test_CurrentYear() { + // 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); +} + +void test_CurrentYearFuzz() { + /* + * 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); +} + +void test_TimeZoneOffset() { + /* + * 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() { + /* + * 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() { + /* + * 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() { + /* + * 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); +} + +void test_NoReasonableConversion() { + /* 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)); +} + +// *** FUNCTION isLE, to simulate gtest's ASSERT_LE using Unity's TEST_ASSERT_TRUE +//tehnically boolean +int isLE(u_int32 diff,u_int32 actual){ + if(diff <= actual){ + return TRUE; + } + else return FALSE; +} + + +void test_AlwaysInLimit() { + /* 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; + int second; + 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))); // adding new function to return TRUE if first number is less or equal the second + //TEST_ASSERT_LE(diff, (183u * SECSPERDAY)); + } + } + } + } +} diff --git a/contrib/ntp/tests/libntp/decodenetnum.c b/contrib/ntp/tests/libntp/decodenetnum.c new file mode 100644 index 0000000..681b712 --- /dev/null +++ b/contrib/ntp/tests/libntp/decodenetnum.c @@ -0,0 +1,96 @@ +#include "config.h" +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "unity.h" + +#include "sockaddrtest.h" + + +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) { + 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)); +} + +void test_IPv6AddressWithPort(void) { + 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)); +} + +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/g_a_md5encrypt.cpp b/contrib/ntp/tests/libntp/g_a_md5encrypt.cpp new file mode 100644 index 0000000..691bf78 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_a_md5encrypt.cpp @@ -0,0 +1,89 @@ +#include "g_libntptest.h" + +extern "C" { +#ifdef OPENSSL +# include "openssl/err.h" +# include "openssl/rand.h" +# include "openssl/evp.h" +#endif +#include "ntp.h" +#include "ntp_stdlib.h" +}; + +class a_md5encryptTest : public libntptest { +protected: +}; + +/* + * Example packet with MD5 hash calculated manually. + */ +const int keytype = KEY_TYPE_MD5; +const char *key = "abcdefgh"; +const u_short keyLength = 8; +const char *packet = "ijklmnopqrstuvwx"; +const int packetLength = 16; +const int keyIdLength = 4; +const int digestLength = 16; +const int totalLength = packetLength + keyIdLength + digestLength; +const char *expectedPacket = "ijklmnopqrstuvwx\0\0\0\0\x0c\x0e\x84\xcf\x0b\xb7\xa8\x68\x8e\x52\x38\xdb\xbc\x1c\x39\x53"; + +TEST_F(a_md5encryptTest, Encrypt) { + char *packetPtr = new char[totalLength]; + memset(packetPtr+packetLength, 0, keyIdLength); + memcpy(packetPtr, packet, packetLength); + + cache_secretsize = keyLength; + + int length = MD5authencrypt(keytype, (u_char*)key, (u_int32*)packetPtr, packetLength); + + EXPECT_TRUE(MD5authdecrypt(keytype, (u_char*)key, (u_int32*)packetPtr, packetLength, length)); + + EXPECT_EQ(20, length); + EXPECT_TRUE(memcmp(expectedPacket, packetPtr, totalLength) == 0); + + delete[] packetPtr; +} + +TEST_F(a_md5encryptTest, DecryptValid) { + cache_secretsize = keyLength; + + EXPECT_TRUE(MD5authdecrypt(keytype, (u_char*)key, (u_int32*)expectedPacket, packetLength, 20)); +} + +TEST_F(a_md5encryptTest, DecryptInvalid) { + cache_secretsize = keyLength; + + const char *invalidPacket = "ijklmnopqrstuvwx\0\0\0\0\x0c\x0e\x84\xcf\x0b\xb7\xa8\x68\x8e\x52\x38\xdb\xbc\x1c\x39\x54"; + + EXPECT_FALSE(MD5authdecrypt(keytype, (u_char*)key, (u_int32*)invalidPacket, packetLength, 20)); +} + +TEST_F(a_md5encryptTest, IPv4AddressToRefId) { + sockaddr_u addr; + addr.sa4.sin_family = AF_INET; + addr.sa4.sin_port = htons(80); + + u_int32 address = inet_addr("192.0.2.1"); + addr.sa4.sin_addr.s_addr = address; + + EXPECT_EQ(address, addr2refid(&addr)); +} + +TEST_F(a_md5encryptTest, IPv6AddressToRefId) { + 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; + + const int expected = 0x75cffd52; + + EXPECT_EQ(expected, addr2refid(&addr)); +} diff --git a/contrib/ntp/tests/libntp/g_atoint.cpp b/contrib/ntp/tests/libntp/g_atoint.cpp new file mode 100644 index 0000000..9a8283f --- /dev/null +++ b/contrib/ntp/tests/libntp/g_atoint.cpp @@ -0,0 +1,48 @@ +#include "g_libntptest.h" + +class atointTest : public libntptest { +}; + +TEST_F(atointTest, RegularPositive) { + const char *str = "17"; + long val; + + ASSERT_TRUE(atoint(str, &val)); + EXPECT_EQ(17, val); +} + +TEST_F(atointTest, RegularNegative) { + const char *str = "-20"; + long val; + + ASSERT_TRUE(atoint(str, &val)); + EXPECT_EQ(-20, val); +} + +TEST_F(atointTest, PositiveOverflowBoundary) { + const char *str = "2147483648"; + long val; + + EXPECT_FALSE(atoint(str, &val)); +} + +TEST_F(atointTest, NegativeOverflowBoundary) { + const char *str = "-2147483649"; + long val; + + EXPECT_FALSE(atoint(str, &val)); +} + +TEST_F(atointTest, PositiveOverflowBig) { + const char *str = "2300000000"; + long val; + + EXPECT_FALSE(atoint(str, &val)); +} + +TEST_F(atointTest, IllegalCharacter) { + const char *str = "4500l"; + long val; + + EXPECT_FALSE(atoint(str, &val)); +} diff --git a/contrib/ntp/tests/libntp/g_atouint.cpp b/contrib/ntp/tests/libntp/g_atouint.cpp new file mode 100644 index 0000000..ba261db --- /dev/null +++ b/contrib/ntp/tests/libntp/g_atouint.cpp @@ -0,0 +1,40 @@ +#include "g_libntptest.h" + +class atouintTest : public libntptest { +}; + +TEST_F(atouintTest, RegularPositive) { + const char *str = "305"; + u_long actual; + + ASSERT_TRUE(atouint(str, &actual)); + EXPECT_EQ(305, actual); +} + +TEST_F(atouintTest, PositiveOverflowBoundary) { + const char *str = "4294967296"; + u_long actual; + + ASSERT_FALSE(atouint(str, &actual)); +} + +TEST_F(atouintTest, PositiveOverflowBig) { + const char *str = "8000000000"; + u_long actual; + + ASSERT_FALSE(atouint(str, &actual)); +} + +TEST_F(atouintTest, Negative) { + const char *str = "-1"; + u_long actual; + + ASSERT_FALSE(atouint(str, &actual)); +} + +TEST_F(atouintTest, IllegalChar) { + const char *str = "50c3"; + u_long actual; + + ASSERT_FALSE(atouint(str, &actual)); +} diff --git a/contrib/ntp/tests/libntp/g_authkeys.cpp b/contrib/ntp/tests/libntp/g_authkeys.cpp new file mode 100644 index 0000000..773112e --- /dev/null +++ b/contrib/ntp/tests/libntp/g_authkeys.cpp @@ -0,0 +1,100 @@ +/* This file contains test for both libntp/authkeys.c and libntp/authusekey.c */ + +#include "g_libntptest.h" + +extern "C" { +#ifdef OPENSSL +# include "openssl/err.h" +# include "openssl/rand.h" +# include "openssl/evp.h" +#endif +#include "ntp.h" +#include "ntp_stdlib.h" +}; + +class authkeysTest : public libntptest { +protected: + static const int KEYTYPE = KEY_TYPE_MD5; + + virtual void SetUp() { + /* + * 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; + } + + 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); + + authtrust(keyno, TRUE); + } + + void AddUntrustedKey(keyid_t keyno) { + authtrust(keyno, FALSE); + } +}; + +TEST_F(authkeysTest, AddTrustedKeys) { + const keyid_t KEYNO1 = 5; + const keyid_t KEYNO2 = 8; + + AddTrustedKey(KEYNO1); + AddTrustedKey(KEYNO2); + + EXPECT_TRUE(authistrusted(KEYNO1)); + EXPECT_TRUE(authistrusted(KEYNO2)); +} + +TEST_F(authkeysTest, AddUntrustedKey) { + const keyid_t KEYNO = 3; + + AddUntrustedKey(KEYNO); + + EXPECT_FALSE(authistrusted(KEYNO)); +} + +TEST_F(authkeysTest, HaveKeyCorrect) { + const keyid_t KEYNO = 3; + + AddTrustedKey(KEYNO); + + EXPECT_TRUE(auth_havekey(KEYNO)); + EXPECT_TRUE(authhavekey(KEYNO)); +} + +TEST_F(authkeysTest, HaveKeyIncorrect) { + const keyid_t KEYNO = 2; + + EXPECT_FALSE(auth_havekey(KEYNO)); + EXPECT_FALSE(authhavekey(KEYNO)); +} + +TEST_F(authkeysTest, AddWithAuthUseKey) { + const keyid_t KEYNO = 5; + const char* KEY = "52a"; + + EXPECT_TRUE(authusekey(KEYNO, KEYTYPE, (u_char*)KEY)); +} + +TEST_F(authkeysTest, EmptyKey) { + const keyid_t KEYNO = 3; + const char* KEY = ""; + + + EXPECT_FALSE(authusekey(KEYNO, KEYTYPE, (u_char*)KEY)); +} diff --git a/contrib/ntp/tests/libntp/g_buftvtots.cpp b/contrib/ntp/tests/libntp/g_buftvtots.cpp new file mode 100644 index 0000000..050398b --- /dev/null +++ b/contrib/ntp/tests/libntp/g_buftvtots.cpp @@ -0,0 +1,61 @@ +#include "g_lfptest.h" + +extern "C" { +#include "ntp_unixtime.h" +}; + +// Required for Solaris. +#include + +class buftvtotsTest : public lfptest { +}; + +#ifndef SYS_WINNT +TEST_F(buftvtotsTest, ZeroBuffer) { + const timeval input = {0, 0}; + const l_fp expected = {0 + JAN_1970, 0}; + + l_fp actual; + + ASSERT_TRUE(buftvtots((const char*)(&input), &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(buftvtotsTest, IntegerAndFractionalBuffer) { + const timeval input = {5, 500000}; // 5.5 + const l_fp expected = {5 + JAN_1970, HALF}; + + l_fp actual; + + ASSERT_TRUE(buftvtots((const char*)(&input), &actual)); + + // Compare the fractional part with an absolute error given. + EXPECT_EQ(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 + EXPECT_NEAR(expectedDouble, actualDouble, 0.0000005); +} + +TEST_F(buftvtotsTest, IllegalMicroseconds) { + const timeval input = {0, 1100000}; // > 999 999 microseconds. + + l_fp actual; + + ASSERT_FALSE(buftvtots((const char*)(&input), &actual)); +} + +#else +TEST_F(buftvtotsTest, AlwaysFalseOnWindows) { + /* + * Under Windows, buftvtots will just return + * 0 (false). + */ + l_fp actual; + ASSERT_FALSE(buftvtots("", &actual)); +} + +#endif diff --git a/contrib/ntp/tests/libntp/g_calendar.cpp b/contrib/ntp/tests/libntp/g_calendar.cpp new file mode 100644 index 0000000..2db9ff7 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_calendar.cpp @@ -0,0 +1,337 @@ +#include "g_libntptest.h" + +extern "C" { +#include "ntp_calendar.h" +} + +#include +#include + +class calendarTest : public libntptest { +protected: + static int leapdays(int year); + + std::string CalendarToString(const calendar &cal); + std::string CalendarToString(const isodate &iso); + ::testing::AssertionResult IsEqual(const calendar &expected, const calendar &actual); + ::testing::AssertionResult IsEqual(const isodate &expected, const isodate &actual); + + std::string DateToString(const calendar &cal); + std::string DateToString(const isodate &iso); + ::testing::AssertionResult IsEqualDate(const calendar &expected, const calendar &actual); + ::testing::AssertionResult IsEqualDate(const isodate &expected, const isodate &actual); +}; + + +// --------------------------------------------------------------------- +// test support stuff +// --------------------------------------------------------------------- +int +calendarTest::leapdays(int year) +{ + if (year % 400 == 0) + return 1; + if (year % 100 == 0) + return 0; + if (year % 4 == 0) + return 1; + return 0; +} + +std::string +calendarTest::CalendarToString(const calendar &cal) { + std::ostringstream ss; + 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.str(); +} + +std::string +calendarTest:: CalendarToString(const isodate &iso) { + std::ostringstream ss; + ss << iso.year << "-" << (u_int)iso.week << "-" << (u_int)iso.weekday + << (u_int)iso.hour << ":" << (u_int)iso.minute << ":" << (u_int)iso.second; + return ss.str(); +} + +::testing::AssertionResult +calendarTest:: IsEqual(const calendar &expected, const 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 ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "expected: " << CalendarToString(expected) << " but was " + << CalendarToString(actual); + } +} + +::testing::AssertionResult +calendarTest:: IsEqual(const isodate &expected, const 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 ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "expected: " << CalendarToString(expected) << " but was " + << CalendarToString(actual); + } +} + +std::string +calendarTest:: DateToString(const calendar &cal) { + std::ostringstream ss; + ss << cal.year << "-" << (u_int)cal.month << "-" << (u_int)cal.monthday + << " (" << cal.yearday << ")"; + return ss.str(); +} + +std::string +calendarTest:: DateToString(const isodate &iso) { + std::ostringstream ss; + ss << iso.year << "-" << (u_int)iso.week << "-" << (u_int)iso.weekday; + return ss.str(); +} + +::testing::AssertionResult +calendarTest:: IsEqualDate(const calendar &expected, const calendar &actual) { + if (expected.year == actual.year && + (!expected.yearday || expected.yearday == actual.yearday) && + expected.month == actual.month && + expected.monthday == actual.monthday) { + return ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "expected: " << DateToString(expected) << " but was " + << DateToString(actual); + } +} + +::testing::AssertionResult +calendarTest:: IsEqualDate(const isodate &expected, const isodate &actual) { + if (expected.year == actual.year && + expected.week == actual.week && + expected.weekday == actual.weekday) { + return ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "expected: " << DateToString(expected) << " but was " + << DateToString(actual); + } +} + + +// --------------------------------------------------------------------- +// test cases +// --------------------------------------------------------------------- +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. +TEST_F(calendarTest, DaySplitMerge) { + for (int32 day = -1000000; day <= 1000000; day += 100) { + for (int32 sec = -100000; sec <= 186400; sec += 10000) { + vint64 merge = ntpcal_dayjoin(day, sec); + ntpcal_split split = ntpcal_daysplit(&merge); + int32 eday = day; + int32 esec = sec; + + while (esec >= 86400) { + eday += 1; + esec -= 86400; + } + while (esec < 0) { + eday -= 1; + esec += 86400; + } + + EXPECT_EQ(eday, split.hi); + EXPECT_EQ(esec, split.lo); + } + } +} + +TEST_F(calendarTest, SplitYearDays1) { + for (int32 eyd = -1; eyd <= 365; eyd++) { + ntpcal_split split = ntpcal_split_yeardays(eyd, 0); + if (split.lo >= 0 && split.hi >= 0) { + EXPECT_GT(12, split.hi); + EXPECT_GT(real_month_days[0][split.hi+1], split.lo); + int32 tyd = real_month_table[0][split.hi] + split.lo; + EXPECT_EQ(eyd, tyd); + } else + EXPECT_TRUE(eyd < 0 || eyd > 364); + } +} + +TEST_F(calendarTest, SplitYearDays2) { + for (int32 eyd = -1; eyd <= 366; eyd++) { + ntpcal_split split = ntpcal_split_yeardays(eyd, 1); + if (split.lo >= 0 && split.hi >= 0) { + EXPECT_GT(12, split.hi); + EXPECT_GT(real_month_days[1][split.hi+1], split.lo); + int32 tyd = real_month_table[1][split.hi] + split.lo; + EXPECT_EQ(eyd, tyd); + } else + EXPECT_TRUE(eyd < 0 || eyd > 365); + } +} + +TEST_F(calendarTest, RataDie1) { + int32 testDate = 1; // 0001-01-01 (proleptic date) + calendar expected = { 1, 1, 1, 1 }; + calendar actual; + + ntpcal_rd_to_date(&actual, testDate); + EXPECT_TRUE(IsEqualDate(expected, actual)); +} + +// check last day of february for first 10000 years +TEST_F(calendarTest, LeapYears1) { + 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)); + + EXPECT_TRUE(IsEqualDate(dateIn, dateOut)); + } +} + +// check first day of march for first 10000 years +TEST_F(calendarTest, LeapYears2) { + 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)); + EXPECT_TRUE(IsEqualDate(dateIn, dateOut)); + } +} + +// Full roundtrip for 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.) +TEST_F(calendarTest, RoundTripDate) { + calendar truDate, expDate = { 1600, 0, 12, 31 };; + int32 truRdn, expRdn = ntpcal_date_to_rd(&expDate); + int leaps; + + 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); + EXPECT_EQ(expRdn, truRdn); + + ntpcal_rd_to_date(&truDate, truRdn); + EXPECT_TRUE(IsEqualDate(expDate, truDate)); + } + } + } +} + +// Roundtrip testing on calyearstart +TEST_F(calendarTest, RoundTripYearStart) { + static const time_t pivot = 0; + u_int32 ntp, expys, truys; + 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); + EXPECT_EQ(expys, truys); + } +} + +// Roundtrip testing on calymonthstart +TEST_F(calendarTest, RoundTripMonthStart) { + static const time_t pivot = 0; + u_int32 ntp, expms, trums; + 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); + EXPECT_EQ(expms, trums); + } +} + +// Roundtrip testing on calweekstart +TEST_F(calendarTest, RoundTripWeekStart) { + static const time_t pivot = 0; + u_int32 ntp, expws, truws; + 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); + EXPECT_EQ(expws, truws); + } +} + +// Roundtrip testing on caldaystart +TEST_F(calendarTest, RoundTripDayStart) { + static const time_t pivot = 0; + u_int32 ntp, expds, truds; + 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); + EXPECT_EQ(expds, truds); + } +} + diff --git a/contrib/ntp/tests/libntp/g_caljulian.cpp b/contrib/ntp/tests/libntp/g_caljulian.cpp new file mode 100644 index 0000000..7ed38c4 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_caljulian.cpp @@ -0,0 +1,94 @@ +#include "g_libntptest.h" + +extern "C" { +#include "ntp_calendar.h" +} + +#include +#include + +class caljulianTest : public libntptest { +protected: + virtual void SetUp(); + virtual void TearDown(); + + std::string CalendarToString(const calendar &cal) { + std::ostringstream ss; + 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.str(); + } + + ::testing::AssertionResult IsEqual(const calendar &expected, const 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 ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "expected: " << CalendarToString(expected) << " but was " + << CalendarToString(actual); + } + } +}; + +void caljulianTest::SetUp() +{ + ntpcal_set_timefunc(timefunc); + settime(1970, 1, 1, 0, 0, 0); +} + +void caljulianTest::TearDown() +{ + ntpcal_set_timefunc(NULL); +} + + +TEST_F(caljulianTest, RegularTime) { + u_long testDate = 3485080800UL; // 2010-06-09 14:00:00 + calendar expected = {2010,160,6,9,14,0,0}; + + calendar actual; + + caljulian(testDate, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(caljulianTest, LeapYear) { + u_long input = 3549902400UL; // 2012-06-28 20:00:00Z + calendar expected = {2012, 179, 6, 28, 20, 0, 0}; + + calendar actual; + + caljulian(input, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(caljulianTest, uLongBoundary) { + u_long time = 4294967295UL; // 2036-02-07 6:28:15 + calendar expected = {2036,0,2,7,6,28,15}; + + calendar actual; + + caljulian(time, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(caljulianTest, uLongWrapped) { + u_long time = 0; + calendar expected = {2036,0,2,7,6,28,16}; + + calendar actual; + + caljulian(time, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); +} diff --git a/contrib/ntp/tests/libntp/g_caltontp.cpp b/contrib/ntp/tests/libntp/g_caltontp.cpp new file mode 100644 index 0000000..7dafec0 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_caltontp.cpp @@ -0,0 +1,49 @@ +#include "g_libntptest.h" + +extern "C" { +#include "ntp_calendar.h" +} + +class caltontpTest : public libntptest { +}; + +TEST_F(caltontpTest, DateGivenMonthDay) { + // 2010-06-24 12:50:00 + calendar input = {2010, 0, 6, 24, 12, 50, 0}; + + u_long expected = 3486372600UL; // This is the timestamp above. + + EXPECT_EQ(expected, caltontp(&input)); +} + +TEST_F(caltontpTest, DateGivenYearDay) { + // 2010-06-24 12:50:00 + // This is the 175th day of 2010. + calendar input = {2010, 175, 0, 0, 12, 50, 0}; + + u_long expected = 3486372600UL; // This is the timestamp above. + + EXPECT_EQ(expected, caltontp(&input)); +} + +TEST_F(caltontpTest, DateLeapYear) { + // 2012-06-24 12:00:00 + // This is the 176th day of 2012 (since 2012 is a leap year). + calendar inputYd = {2012, 176, 0, 0, 12, 00, 00}; + calendar inputMd = {2012, 0, 6, 24, 12, 00, 00}; + + u_long expected = 3549528000UL; + + EXPECT_EQ(expected, caltontp(&inputYd)); + EXPECT_EQ(expected, caltontp(&inputMd)); +} + +TEST_F(caltontpTest, WraparoundDateIn2036) { + // 2036-02-07 06:28:16 + // This is (one) wrapping boundary where we go from ULONG_MAX to 0. + calendar input = {2036, 0, 2, 7, 6, 28, 16}; + + u_long expected = 0UL; + + EXPECT_EQ(expected, caltontp(&input)); +} diff --git a/contrib/ntp/tests/libntp/g_calyearstart.cpp b/contrib/ntp/tests/libntp/g_calyearstart.cpp new file mode 100644 index 0000000..59859be --- /dev/null +++ b/contrib/ntp/tests/libntp/g_calyearstart.cpp @@ -0,0 +1,43 @@ +#include "g_libntptest.h" + +class calyearstartTest : public libntptest { +protected: + virtual void SetUp(); + virtual void TearDown(); +}; + +void calyearstartTest::SetUp() +{ + ntpcal_set_timefunc(timefunc); + settime(1970, 1, 1, 0, 0, 0); +} + +void calyearstartTest::TearDown() +{ + ntpcal_set_timefunc(NULL); +} + + +TEST_F(calyearstartTest, NoWrapInDateRange) { + const u_int32 input = 3486372600UL; // 2010-06-24 12:50:00. + const u_int32 expected = 3471292800UL; // 2010-01-01 00:00:00 + + EXPECT_EQ(expected, calyearstart(input, &nowtime)); + EXPECT_EQ(expected, calyearstart(input, NULL)); +} + +TEST_F(calyearstartTest, NoWrapInDateRangeLeapYear) { + const u_int32 input = 3549528000UL; // 2012-06-24 12:00:00 + const u_int32 expected = 3534364800UL; // 2012-01-01 00:00:00 + + EXPECT_EQ(expected, calyearstart(input, &nowtime)); + EXPECT_EQ(expected, calyearstart(input, NULL)); +} + +TEST_F(calyearstartTest, WrapInDateRange) { + const u_int32 input = 19904UL; // 2036-02-07 12:00:00 + const u_int32 expected = 4291747200UL; // 2036-01-01 00:00:00 + + EXPECT_EQ(expected, calyearstart(input, &nowtime)); + EXPECT_EQ(expected, calyearstart(input, NULL)); +} diff --git a/contrib/ntp/tests/libntp/g_clocktime.cpp b/contrib/ntp/tests/libntp/g_clocktime.cpp new file mode 100644 index 0000000..ee496d2 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_clocktime.cpp @@ -0,0 +1,187 @@ +#include "g_libntptest.h" + +// --------------------------------------------------------------------- +// 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. + +class clocktimeTest : public libntptest { + virtual void SetUp(); + virtual void TearDown(); +}; + +void clocktimeTest::SetUp() +{ + ntpcal_set_timefunc(timefunc); + settime(2000, 1, 1, 0, 0, 0); +} + +void clocktimeTest::TearDown() +{ + ntpcal_set_timefunc(NULL); +} + +// --------------------------------------------------------------------- +// test cases + +TEST_F(clocktimeTest, CurrentYear) { + // 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; + + ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, + &yearstart, &actual)); + EXPECT_EQ(expected, actual); +} + +TEST_F(clocktimeTest, CurrentYearFuzz) { + /* + * 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; + + ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, + &yearstart, &actual)); + EXPECT_EQ(expected, actual); +} + +TEST_F(clocktimeTest, TimeZoneOffset) { + /* + * 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; + + ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, + &yearstart, &actual)); + EXPECT_EQ(expected, actual); +} + +TEST_F(clocktimeTest, WrongYearStart) { + /* + * 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; + + ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, + &yearstart, &actual)); + EXPECT_EQ(expected, actual); +} + +TEST_F(clocktimeTest, PreviousYear) { + /* + * 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; + + ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, + &yearstart, &actual)); + EXPECT_EQ(expected, actual); +} + +TEST_F(clocktimeTest, NextYear) { + /* + * 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; + + ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, + &yearstart, &actual)); + EXPECT_EQ(expected, actual); +} + +TEST_F(clocktimeTest, NoReasonableConversion) { + /* 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; + + ASSERT_FALSE(clocktime(yday, hour, minute, second, tzoff, timestamp, + &yearstart, &actual)); +} + +TEST_F(clocktimeTest, AlwaysInLimit) { + /* 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; + int second; + 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; + ASSERT_LE(diff, (183u * SECSPERDAY)); + } + } + } + } +} diff --git a/contrib/ntp/tests/libntp/g_decodenetnum.cpp b/contrib/ntp/tests/libntp/g_decodenetnum.cpp new file mode 100644 index 0000000..0596428 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_decodenetnum.cpp @@ -0,0 +1,93 @@ +#include "g_sockaddrtest.h" + +class decodenetnumTest : public sockaddrtest { +}; + +TEST_F(decodenetnumTest, IPv4AddressOnly) { + 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); + + ASSERT_TRUE(decodenetnum(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(decodenetnumTest, IPv4AddressWithPort) { + 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); + + ASSERT_TRUE(decodenetnum(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(decodenetnumTest, IPv6AddressOnly) { + 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); + + ASSERT_TRUE(decodenetnum(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(decodenetnumTest, IPv6AddressWithPort) { + 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); + + ASSERT_TRUE(decodenetnum(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(decodenetnumTest, IllegalAddress) { + const char *str = "192.0.2.270:2000"; + sockaddr_u actual; + + ASSERT_FALSE(decodenetnum(str, &actual)); +} + +TEST_F(decodenetnumTest, IllegalCharInPort) { + /* 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); + + ASSERT_TRUE(decodenetnum(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} diff --git a/contrib/ntp/tests/libntp/g_hextoint.cpp b/contrib/ntp/tests/libntp/g_hextoint.cpp new file mode 100644 index 0000000..c20821a --- /dev/null +++ b/contrib/ntp/tests/libntp/g_hextoint.cpp @@ -0,0 +1,42 @@ +#include "g_libntptest.h" + +class hextointTest : public libntptest { +}; + +TEST_F(hextointTest, SingleDigit) { + const char *str = "a"; // 10 decimal + u_long actual; + + ASSERT_TRUE(hextoint(str, &actual)); + EXPECT_EQ(10, actual); +} + +TEST_F(hextointTest, MultipleDigits) { + const char *str = "8F3"; // 2291 decimal + u_long actual; + + ASSERT_TRUE(hextoint(str, &actual)); + EXPECT_EQ(2291, actual); +} + +TEST_F(hextointTest, MaxUnsigned) { + const char *str = "ffffffff"; // 4294967295 decimal + u_long actual; + + ASSERT_TRUE(hextoint(str, &actual)); + EXPECT_EQ(4294967295UL, actual); +} + +TEST_F(hextointTest, Overflow) { + const char *str = "100000000"; // Overflow by 1 + u_long actual; + + ASSERT_FALSE(hextoint(str, &actual)); +} + +TEST_F(hextointTest, IllegalChar) { + const char *str = "5gb"; // Illegal character g + u_long actual; + + ASSERT_FALSE(hextoint(str, &actual)); +} diff --git a/contrib/ntp/tests/libntp/g_hextolfp.cpp b/contrib/ntp/tests/libntp/g_hextolfp.cpp new file mode 100644 index 0000000..bcfb094 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_hextolfp.cpp @@ -0,0 +1,58 @@ +#include "g_lfptest.h" + +class hextolfpTest : public lfptest { +}; + +TEST_F(hextolfpTest, PositiveInteger) { + const char *str = "00001000.00000000"; + l_fp actual; + + l_fp expected = {4096, 0}; // 16^3, no fraction part. + + ASSERT_TRUE(hextolfp(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(hextolfpTest, NegativeInteger) { + const char *str = "ffffffff.00000000"; // -1 decimal + l_fp actual; + + l_fp expected = {-1, 0}; + + ASSERT_TRUE(hextolfp(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(hextolfpTest, PositiveFraction) { + const char *str = "00002000.80000000"; // 8196.5 decimal + l_fp actual; + + l_fp expected = {8192, HALF}; + + ASSERT_TRUE(hextolfp(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(hextolfpTest, NegativeFraction) { + const char *str = "ffffffff.40000000"; // -1 + 0.25 decimal + l_fp actual; + + l_fp expected = {-1, QUARTER}; //-1 + 0.25 + + ASSERT_TRUE(hextolfp(str, &actual)); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(hextolfpTest, IllegalNumberOfInteger) { + const char *str = "1000000.00000000"; // Missing one digit in integral part. + l_fp actual; + + ASSERT_FALSE(hextolfp(str, &actual)); +} + +TEST_F(hextolfpTest, IllegalChar) { + const char *str = "10000000.0000h000"; // Illegal character h. + l_fp actual; + + ASSERT_FALSE(hextolfp(str, &actual)); +} diff --git a/contrib/ntp/tests/libntp/g_humandate.cpp b/contrib/ntp/tests/libntp/g_humandate.cpp new file mode 100644 index 0000000..a50ae53 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_humandate.cpp @@ -0,0 +1,41 @@ +#include "g_libntptest.h" + +#include +#include + +class humandateTest : public libntptest { +}; + +TEST_F(humandateTest, RegularTime) { + time_t sample = 1276601278; + std::ostringstream expected; + + tm* time; + time = localtime(&sample); + ASSERT_TRUE(time != NULL); + + expected << std::setfill('0') + << std::setw(2) << time->tm_hour << ":" + << std::setw(2) << time->tm_min << ":" + << std::setw(2) << time->tm_sec; + + EXPECT_STREQ(expected.str().c_str(), humantime(sample)); +} + +TEST_F(humandateTest, CurrentTime) { + time_t sample; + std::ostringstream expected; + + time(&sample); + + tm* time; + time = localtime(&sample); + ASSERT_TRUE(time != NULL); + + expected << std::setfill('0') + << std::setw(2) << time->tm_hour << ":" + << std::setw(2) << time->tm_min << ":" + << std::setw(2) << time->tm_sec; + + EXPECT_STREQ(expected.str().c_str(), humantime(sample)); +} diff --git a/contrib/ntp/tests/libntp/g_lfpfunc.cpp b/contrib/ntp/tests/libntp/g_lfpfunc.cpp new file mode 100644 index 0000000..c9aaf9f --- /dev/null +++ b/contrib/ntp/tests/libntp/g_lfpfunc.cpp @@ -0,0 +1,547 @@ +#include "g_libntptest.h" +#include "g_timestructs.h" + +extern "C" { +#include "ntp_fp.h" +} + +#include +#include + +#include +#include + +class lfpTest : public libntptest +{ + // nothing new right now +}; + +struct lfp_hl { + uint32_t h, l; +}; + +//---------------------------------------------------------------------- +// OO-wrapper for 'l_fp' +//---------------------------------------------------------------------- + +class LFP +{ +public: + ~LFP(); + LFP(); + LFP(const LFP& rhs); + LFP(int32 i, u_int32 f); + + LFP operator+ (const LFP &rhs) const; + LFP& operator+=(const LFP &rhs); + + LFP operator- (const LFP &rhs) const; + LFP& operator-=(const LFP &rhs); + + LFP& operator=(const LFP &rhs); + LFP operator-() const; + + bool operator==(const LFP &rhs) const; + + LFP neg() const; + LFP abs() const; + int signum() const; + + bool l_isgt (const LFP &rhs) const + { return L_ISGT(&_v, &rhs._v); } + bool l_isgtu(const LFP &rhs) const + { return L_ISGTU(&_v, &rhs._v); } + bool l_ishis(const LFP &rhs) const + { return L_ISHIS(&_v, &rhs._v); } + bool l_isgeq(const LFP &rhs) const + { return L_ISGEQ(&_v, &rhs._v); } + bool l_isequ(const LFP &rhs) const + { return L_ISEQU(&_v, &rhs._v); } + + int ucmp(const LFP & rhs) const; + int scmp(const LFP & rhs) const; + + std::string toString() const; + std::ostream& toStream(std::ostream &oo) const; + + operator double() const; + explicit LFP(double); + +protected: + LFP(const l_fp &rhs); + + static int cmp_work(u_int32 a[3], u_int32 b[3]); + + l_fp _v; +}; + +static std::ostream& operator<<(std::ostream &oo, const LFP& rhs) +{ + return rhs.toStream(oo); +} + +//---------------------------------------------------------------------- +// 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 LFP::scmp(const LFP & rhs) const +{ + u_int32 a[3], b[3]; + const l_fp &op1(_v), &op2(rhs._v); + + 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 LFP::ucmp(const LFP & rhs) const +{ + u_int32 a[3], b[3]; + const l_fp &op1(_v), &op2(rhs._v); + + 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); +} + +int LFP::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... +//---------------------------------------------------------------------- + +LFP::~LFP() +{ + // NOP +} + +LFP::LFP() +{ + _v.l_ui = 0; + _v.l_uf = 0; +} + +LFP::LFP(int32 i, u_int32 f) +{ + _v.l_i = i; + _v.l_uf = f; +} + +LFP::LFP(const LFP &rhs) +{ + _v = rhs._v; +} + +LFP::LFP(const l_fp & rhs) +{ + _v = rhs; +} + +LFP& LFP::operator=(const LFP & rhs) +{ + _v = rhs._v; + return *this; +} + +LFP& LFP::operator+=(const LFP & rhs) +{ + L_ADD(&_v, &rhs._v); + return *this; +} + +LFP& LFP::operator-=(const LFP & rhs) +{ + L_SUB(&_v, &rhs._v); + return *this; +} + +LFP LFP::operator+(const LFP &rhs) const +{ + LFP tmp(*this); + return tmp += rhs; +} + +LFP LFP::operator-(const LFP &rhs) const +{ + LFP tmp(*this); + return tmp -= rhs; +} + +LFP LFP::operator-() const +{ + LFP tmp(*this); + L_NEG(&tmp._v); + return tmp; +} + +LFP +LFP::neg() const +{ + LFP tmp(*this); + L_NEG(&tmp._v); + return tmp; +} + +LFP +LFP::abs() const +{ + LFP tmp(*this); + if (L_ISNEG(&tmp._v)) + L_NEG(&tmp._v); + return tmp; +} + +int +LFP::signum() const +{ + if (_v.l_ui & 0x80000000u) + return -1; + return (_v.l_ui || _v.l_uf); +} + +std::string +LFP::toString() const +{ + std::ostringstream oss; + toStream(oss); + return oss.str(); +} + +std::ostream& +LFP::toStream(std::ostream &os) const +{ + return os + << mfptoa(_v.l_ui, _v.l_uf, 9) + << " [$" << std::setw(8) << std::setfill('0') << std::hex << _v.l_ui + << ':' << std::setw(8) << std::setfill('0') << std::hex << _v.l_uf + << ']'; +} + +bool LFP::operator==(const LFP &rhs) const +{ + return L_ISEQU(&_v, &rhs._v); +} + + +LFP::operator double() const +{ + double res; + LFPTOD(&_v, res); + return res; +} + +LFP::LFP(double rhs) +{ + DTOLFP(rhs, &_v); +} + + +//---------------------------------------------------------------------- +// testing the relational macros works better with proper predicate +// formatting functions; it slows down the tests a bit, but makes for +// readable failure messages. +//---------------------------------------------------------------------- + +testing::AssertionResult isgt_p( + const LFP &op1, const LFP &op2) +{ + if (op1.l_isgt(op2)) + return testing::AssertionSuccess() + << "L_ISGT(" << op1 << "," << op2 << ") is true"; + else + return testing::AssertionFailure() + << "L_ISGT(" << op1 << "," << op2 << ") is false"; +} + +testing::AssertionResult isgeq_p( + const LFP &op1, const LFP &op2) +{ + if (op1.l_isgeq(op2)) + return testing::AssertionSuccess() + << "L_ISGEQ(" << op1 << "," << op2 << ") is true"; + else + return testing::AssertionFailure() + << "L_ISGEQ(" << op1 << "," << op2 << ") is false"; +} + +testing::AssertionResult isgtu_p( + const LFP &op1, const LFP &op2) +{ + if (op1.l_isgtu(op2)) + return testing::AssertionSuccess() + << "L_ISGTU(" << op1 << "," << op2 << ") is true"; + else + return testing::AssertionFailure() + << "L_ISGTU(" << op1 << "," << op2 << ") is false"; +} + +testing::AssertionResult ishis_p( + const LFP &op1, const LFP &op2) +{ + if (op1.l_ishis(op2)) + return testing::AssertionSuccess() + << "L_ISHIS(" << op1 << "," << op2 << ") is true"; + else + return testing::AssertionFailure() + << "L_ISHIS(" << op1 << "," << op2 << ") is false"; +} + +testing::AssertionResult isequ_p( + const LFP &op1, const LFP &op2) +{ + if (op1.l_isequ(op2)) + return testing::AssertionSuccess() + << "L_ISEQU(" << op1 << "," << op2 << ") is true"; + else + return testing::AssertionFailure() + << "L_ISEQU(" << op1 << "," << op2 << ") is false"; +} + +//---------------------------------------------------------------------- +// 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 std::max(ldexp(1.0, -31), ldexp(fabs(d), -53)); +} + +//---------------------------------------------------------------------- +// test addition +//---------------------------------------------------------------------- +TEST_F(lfpTest, AdditionLR) { + for (size_t idx=0; idx < addsub_cnt; ++idx) { + LFP op1(addsub_tab[idx][0].h, addsub_tab[idx][0].l); + LFP op2(addsub_tab[idx][1].h, addsub_tab[idx][1].l); + LFP exp(addsub_tab[idx][2].h, addsub_tab[idx][2].l); + LFP res(op1 + op2); + + ASSERT_EQ(exp, res); + } +} + +TEST_F(lfpTest, AdditionRL) { + for (size_t idx=0; idx < addsub_cnt; ++idx) { + LFP op2(addsub_tab[idx][0].h, addsub_tab[idx][0].l); + LFP op1(addsub_tab[idx][1].h, addsub_tab[idx][1].l); + LFP exp(addsub_tab[idx][2].h, addsub_tab[idx][2].l); + LFP res(op1 + op2); + + ASSERT_EQ(exp, res); + } +} + +//---------------------------------------------------------------------- +// test subtraction +//---------------------------------------------------------------------- +TEST_F(lfpTest, SubtractionLR) { + for (size_t idx=0; idx < addsub_cnt; ++idx) { + LFP op2(addsub_tab[idx][0].h, addsub_tab[idx][0].l); + LFP exp(addsub_tab[idx][1].h, addsub_tab[idx][1].l); + LFP op1(addsub_tab[idx][2].h, addsub_tab[idx][2].l); + LFP res(op1 - op2); + + ASSERT_EQ(exp, res); + } +} + +TEST_F(lfpTest, SubtractionRL) { + for (size_t idx=0; idx < addsub_cnt; ++idx) { + LFP exp(addsub_tab[idx][0].h, addsub_tab[idx][0].l); + LFP op2(addsub_tab[idx][1].h, addsub_tab[idx][1].l); + LFP op1(addsub_tab[idx][2].h, addsub_tab[idx][2].l); + LFP res(op1 - op2); + + ASSERT_EQ(exp, res); + } +} + +//---------------------------------------------------------------------- +// test negation +//---------------------------------------------------------------------- +TEST_F(lfpTest, Negation) { + for (size_t idx=0; idx < addsub_cnt; ++idx) { + LFP op1(addsub_tab[idx][0].h, addsub_tab[idx][0].l); + LFP op2(-op1); + LFP sum(op1 + op2); + + ASSERT_EQ(LFP(0,0), sum); + } +} + +//---------------------------------------------------------------------- +// test absolute value +//---------------------------------------------------------------------- +TEST_F(lfpTest, Absolute) { + for (size_t idx=0; idx < addsub_cnt; ++idx) { + LFP op1(addsub_tab[idx][0].h, addsub_tab[idx][0].l); + LFP op2(op1.abs()); + + ASSERT_TRUE(op2.signum() >= 0); + + if (op1.signum() >= 0) + op1 -= op2; + else + op1 += op2; + ASSERT_EQ(LFP(0,0), 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. + LFP minVal(0x80000000, 0x00000000); + LFP minAbs(minVal.abs()); + ASSERT_EQ(-1, minVal.signum()); + ASSERT_EQ(minVal, minAbs); +} + +//---------------------------------------------------------------------- +// fp -> double -> fp rountrip test +//---------------------------------------------------------------------- +TEST_F(lfpTest, FDF_RoundTrip) { + // 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 (size_t idx=0; idx < addsub_cnt; ++idx) { + LFP op1(addsub_tab[idx][0].h, addsub_tab[idx][0].l); + double op2(op1); + LFP op3(op2); + // for manual checks only: + // std::cout << std::setprecision(16) << op2 << std::endl; + ASSERT_LE(fabs(op1-op3), eps(op2)); + } +} + +//---------------------------------------------------------------------- +// test the compare stuff +// +// This uses the local compare and checks if the operations using the +// macros in 'ntp_fp.h' produce mathing results. +// ---------------------------------------------------------------------- +TEST_F(lfpTest, SignedRelOps) { + const lfp_hl * tv(&addsub_tab[0][0]); + for (size_t lc=addsub_tot-1; lc; --lc,++tv) { + LFP op1(tv[0].h,tv[0].l); + LFP op2(tv[1].h,tv[1].l); + int cmp(op1.scmp(op2)); + + switch (cmp) { + case -1: + std::swap(op1, op2); + case 1: + EXPECT_TRUE (isgt_p(op1,op2)); + EXPECT_FALSE(isgt_p(op2,op1)); + + EXPECT_TRUE (isgeq_p(op1,op2)); + EXPECT_FALSE(isgeq_p(op2,op1)); + + EXPECT_FALSE(isequ_p(op1,op2)); + EXPECT_FALSE(isequ_p(op2,op1)); + break; + case 0: + EXPECT_FALSE(isgt_p(op1,op2)); + EXPECT_FALSE(isgt_p(op2,op1)); + + EXPECT_TRUE (isgeq_p(op1,op2)); + EXPECT_TRUE (isgeq_p(op2,op1)); + + EXPECT_TRUE (isequ_p(op1,op2)); + EXPECT_TRUE (isequ_p(op2,op1)); + break; + default: + FAIL() << "unexpected SCMP result: " << cmp; + } + } +} + +TEST_F(lfpTest, UnsignedRelOps) { + const lfp_hl * tv(&addsub_tab[0][0]); + for (size_t lc=addsub_tot-1; lc; --lc,++tv) { + LFP op1(tv[0].h,tv[0].l); + LFP op2(tv[1].h,tv[1].l); + int cmp(op1.ucmp(op2)); + + switch (cmp) { + case -1: + std::swap(op1, op2); + case 1: + EXPECT_TRUE (isgtu_p(op1,op2)); + EXPECT_FALSE(isgtu_p(op2,op1)); + + EXPECT_TRUE (ishis_p(op1,op2)); + EXPECT_FALSE(ishis_p(op2,op1)); + break; + case 0: + EXPECT_FALSE(isgtu_p(op1,op2)); + EXPECT_FALSE(isgtu_p(op2,op1)); + + EXPECT_TRUE (ishis_p(op1,op2)); + EXPECT_TRUE (ishis_p(op2,op1)); + break; + default: + FAIL() << "unexpected UCMP result: " << cmp; + } + } +} + +//---------------------------------------------------------------------- +// that's all folks... but feel free to add things! +//---------------------------------------------------------------------- diff --git a/contrib/ntp/tests/libntp/g_lfptest.h b/contrib/ntp/tests/libntp/g_lfptest.h new file mode 100644 index 0000000..1daffef --- /dev/null +++ b/contrib/ntp/tests/libntp/g_lfptest.h @@ -0,0 +1,32 @@ +#ifndef NTP_TESTS_LFPTEST_H +#define NTP_TESTS_LFPTEST_H + +#include "g_libntptest.h" + +extern "C" { +#include "ntp_fp.h" +}; + +class lfptest : public libntptest { +protected: + ::testing::AssertionResult IsEqual(const l_fp &expected, const l_fp &actual) { + if (L_ISEQU(&expected, &actual)) { + return ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << " expected: " << lfptoa(&expected, FRACTION_PREC) + << " (" << expected.l_ui << "." << expected.l_uf << ")" + << " but was: " << lfptoa(&actual, FRACTION_PREC) + << " (" << actual.l_ui << "." << actual.l_uf << ")"; + } + } + + 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; +}; + +#endif +/* NTP_TESTS_LFPTEST_H */ diff --git a/contrib/ntp/tests/libntp/g_lfptostr.cpp b/contrib/ntp/tests/libntp/g_lfptostr.cpp new file mode 100644 index 0000000..ae594a6 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_lfptostr.cpp @@ -0,0 +1,103 @@ +/* + * 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 "g_libntptest.h" + +extern "C" { +#include "ntp_fp.h" +}; + +class lfptostrTest : public libntptest { +protected: + 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 = -ONE_FOURTH; + static const int HALF_PROMILLE_UP = 2147484; // slightly more than 0.0005 + static const int HALF_PROMILLE_DOWN = 2147483; // slightly less than 0.0005 +}; + +TEST_F(lfptostrTest, PositiveInteger) { + l_fp test = {200, 0}; // exact 200.0000000000 + + EXPECT_STREQ("200.0000000000", mfptoa(test.l_ui, test.l_uf, LFP_MAX_PRECISION)); + EXPECT_STREQ("200000.0000000", mfptoms(test.l_ui, test.l_uf, LFP_MAX_PRECISION_MS)); +} + +TEST_F(lfptostrTest, NegativeInteger) { + l_fp test = {-100, 0}; // -100 + + EXPECT_STREQ("-100.0000000000", lfptoa(&test, LFP_MAX_PRECISION)); + EXPECT_STREQ("-100000.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS)); +} + +TEST_F(lfptostrTest, PositiveIntegerWithFraction) { + l_fp test = {200, ONE_FOURTH}; // 200.25 + + EXPECT_STREQ("200.2500000000", lfptoa(&test, LFP_MAX_PRECISION)); + EXPECT_STREQ("200250.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS)); +} + +TEST_F(lfptostrTest, NegativeIntegerWithFraction) { + l_fp test = {-100, ONE_FOURTH}; // -99.75 + + EXPECT_STREQ("-99.7500000000", lfptoa(&test, LFP_MAX_PRECISION)); + EXPECT_STREQ("-99750.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS)); +} + +TEST_F(lfptostrTest, RoundingDownToInteger) { + l_fp test = {10, ONE_FOURTH}; // 10.25 + + EXPECT_STREQ("10", lfptoa(&test, 0)); + EXPECT_STREQ("10250", lfptoms(&test, 0)); +} + +TEST_F(lfptostrTest, RoundingMiddleToInteger) { + l_fp test = {10, HALF}; // 10.5 + + EXPECT_STREQ("11", lfptoa(&test, 0)); + EXPECT_STREQ("10500", lfptoms(&test, 0)); +} + +TEST_F(lfptostrTest, RoundingUpToInteger) { + l_fp test = {5, THREE_FOURTH}; // 5.75 + + EXPECT_STREQ("6", lfptoa(&test, 0)); + EXPECT_STREQ("5750", lfptoms(&test, 0)); +} + +TEST_F(lfptostrTest, SingleDecimal) { + l_fp test = {8, ONE_FOURTH}; // 8.25 + + EXPECT_STREQ("8.3", lfptoa(&test, 1)); + EXPECT_STREQ("8250.0", lfptoms(&test, 1)); +} + +TEST_F(lfptostrTest, MillisecondsRoundingUp) { + l_fp test = {1, HALF_PROMILLE_UP}; //slightly more than 1.0005 + + EXPECT_STREQ("1.0", lfptoa(&test, 1)); + + EXPECT_STREQ("1000.5", lfptoms(&test, 1)); + EXPECT_STREQ("1001", lfptoms(&test, 0)); +} + +TEST_F(lfptostrTest, MillisecondsRoundingDown) { + l_fp test = {1, HALF_PROMILLE_DOWN}; // slightly less than 1.0005 + + EXPECT_STREQ("1.0", lfptoa(&test, 1)); + + EXPECT_STREQ("1000.5", lfptoms(&test, 1)); + EXPECT_STREQ("1000", lfptoms(&test, 0)); +} + +TEST_F(lfptostrTest, UnsignedInteger) { + l_fp test = {3000000000UL, 0}; + + EXPECT_STREQ("3000000000.0", ulfptoa(&test, 1)); +} diff --git a/contrib/ntp/tests/libntp/g_libntptest.cpp b/contrib/ntp/tests/libntp/g_libntptest.cpp new file mode 100644 index 0000000..8897b5c --- /dev/null +++ b/contrib/ntp/tests/libntp/g_libntptest.cpp @@ -0,0 +1,27 @@ +#include "g_libntptest.h" + +/* This file contains various constants that libntp needs to be set + * and that is normally defined in ntpd/ntpq/... + */ + +u_long current_time = 4; // needed by authkeys. Used only in to calculate lifetime. +const char *progname = "libntptest"; + +time_t libntptest::nowtime = 0; + +time_t libntptest::timefunc(time_t *ptr) +{ + if (ptr) + *ptr = nowtime; + return nowtime; +} + +void libntptest::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/g_libntptest.h b/contrib/ntp/tests/libntp/g_libntptest.h new file mode 100644 index 0000000..ef2daa8 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_libntptest.h @@ -0,0 +1,15 @@ +#include "tests_main.h" + +extern "C" { +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +}; + +class libntptest : public ntptest { + +protected: + static time_t timefunc(time_t*); + static time_t nowtime; + static void settime(int y, int m, int d, int H, int M, int S); + +}; diff --git a/contrib/ntp/tests/libntp/g_modetoa.cpp b/contrib/ntp/tests/libntp/g_modetoa.cpp new file mode 100644 index 0000000..96bf3ce --- /dev/null +++ b/contrib/ntp/tests/libntp/g_modetoa.cpp @@ -0,0 +1,16 @@ +#include "g_libntptest.h" + +class modetoaTest : public libntptest { +}; + +TEST_F(modetoaTest, KnownMode) { + const int MODE = 3; // Should be "client" + + EXPECT_STREQ("client", modetoa(MODE)); +} + +TEST_F(modetoaTest, UnknownMode) { + const int MODE = 100; + + EXPECT_STREQ("mode#100", modetoa(MODE)); +} diff --git a/contrib/ntp/tests/libntp/g_msyslog.cpp b/contrib/ntp/tests/libntp/g_msyslog.cpp new file mode 100644 index 0000000..273600d --- /dev/null +++ b/contrib/ntp/tests/libntp/g_msyslog.cpp @@ -0,0 +1,137 @@ +#include "g_libntptest.h" + +extern "C" { +#include +#include +#include +#ifndef VSNPRINTF_PERCENT_M +// format_errmsg() is normally private to msyslog.c +void format_errmsg (char *, size_t, const char *, int); +#endif +}; + +class msyslogTest : public libntptest { +}; + +// msnprintf() +TEST_F(msyslogTest, msnprintf) +{ +#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"); + EXPECT_EQ(exp_cnt, act_cnt); + EXPECT_STREQ(exp_buf, act_buf); +} + +TEST_F(msyslogTest, msnprintfLiteralPercentm) +{ + 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"); + EXPECT_EQ(exp_cnt, act_cnt); + EXPECT_STREQ(exp_buf, act_buf); +} + +TEST_F(msyslogTest, msnprintfBackslashLiteralPercentm) +{ + 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"); + EXPECT_EQ(exp_cnt, act_cnt); + EXPECT_STREQ(exp_buf, act_buf); +} + +TEST_F(msyslogTest, msnprintfBackslashPercent) +{ + 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"); + EXPECT_EQ(exp_cnt, act_cnt); + EXPECT_STREQ(exp_buf, act_buf); +} + +TEST_F(msyslogTest, msnprintfHangingPercent) +{ + 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), fmt); + act_cnt = msnprintf(act_buf, sizeof(act_buf), fmt); + EXPECT_EQ(exp_cnt, act_cnt); + EXPECT_STREQ(exp_buf, act_buf); + EXPECT_STREQ("", act_buf + 1 + strlen(act_buf)); +} + +#ifndef VSNPRINTF_PERCENT_M +TEST_F(msyslogTest, format_errmsgHangingPercent) +{ + 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); + EXPECT_STREQ(fmt, act_buf); + EXPECT_STREQ("", act_buf + 1 + strlen(act_buf)); +} +#endif + +TEST_F(msyslogTest, msnprintfNullTarget) +{ + int exp_cnt; + int act_cnt; + + exp_cnt = snprintf(NULL, 0, "%d", 123); + errno = ENOENT; + act_cnt = msnprintf(NULL, 0, "%d", 123); + EXPECT_EQ(exp_cnt, act_cnt); +} + +TEST_F(msyslogTest, msnprintfTruncate) +{ + 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"); + EXPECT_EQ('\0', exp_buf[2]); + EXPECT_EQ('\0', act_buf[2]); + EXPECT_TRUE(act_cnt > 0); + EXPECT_EQ(exp_cnt, act_cnt); + EXPECT_STREQ(exp_buf, act_buf); + EXPECT_STREQ(exp_buf + 3, undist); + EXPECT_STREQ(act_buf + 3, undist); +} diff --git a/contrib/ntp/tests/libntp/g_netof.cpp b/contrib/ntp/tests/libntp/g_netof.cpp new file mode 100644 index 0000000..8fc9ac7 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_netof.cpp @@ -0,0 +1,69 @@ +#include "g_sockaddrtest.h" + +class netofTest : public sockaddrtest { +}; + +TEST_F(netofTest, ClassBAddress) { + 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); + + ASSERT_TRUE(actual != NULL); + EXPECT_TRUE(IsEqual(expected, *actual)); +} + +TEST_F(netofTest, ClassCAddress) { + 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); + + ASSERT_TRUE(actual != NULL); + EXPECT_TRUE(IsEqual(expected, *actual)); +} + +TEST_F(netofTest, ClassAAddress) { + /* 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); + + ASSERT_TRUE(actual != NULL); + EXPECT_TRUE(IsEqual(expected, *actual)); +} + +TEST_F(netofTest, IPv6Address) { + /* 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); + + ASSERT_TRUE(actual != NULL); + EXPECT_TRUE(IsEqual(expected, *actual)); +} diff --git a/contrib/ntp/tests/libntp/g_numtoa.cpp b/contrib/ntp/tests/libntp/g_numtoa.cpp new file mode 100644 index 0000000..a68e80d --- /dev/null +++ b/contrib/ntp/tests/libntp/g_numtoa.cpp @@ -0,0 +1,18 @@ +#include "g_libntptest.h" + +class numtoaTest : public libntptest { +}; + +TEST_F(numtoaTest, Address) { + u_int32 input = htonl(3221225472UL+512UL+1UL); // 192.0.2.1 + + EXPECT_STREQ("192.0.2.1", numtoa(input)); +} + +TEST_F(numtoaTest, Netmask) { + // 255.255.255.0 + u_int32 hostOrder = 255UL*256UL*256UL*256UL + 255UL*256UL*256UL + 255UL*256UL; + u_int32 input = htonl(hostOrder); + + EXPECT_STREQ("255.255.255.0", numtoa(input)); +} diff --git a/contrib/ntp/tests/libntp/g_numtohost.cpp b/contrib/ntp/tests/libntp/g_numtohost.cpp new file mode 100644 index 0000000..e04cad8 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_numtohost.cpp @@ -0,0 +1,15 @@ +#include "g_libntptest.h" + +class numtohostTest : public libntptest { +}; + +TEST_F(numtohostTest, LoopbackNetNonResolve) { + /* 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 + */ + + u_int32 input = 127*256*256*256 + 1*256 + 1; // 127.0.1.1 + + EXPECT_STREQ("127.0.1.1", numtohost(htonl(input))); +} diff --git a/contrib/ntp/tests/libntp/g_octtoint.cpp b/contrib/ntp/tests/libntp/g_octtoint.cpp new file mode 100644 index 0000000..8731eed --- /dev/null +++ b/contrib/ntp/tests/libntp/g_octtoint.cpp @@ -0,0 +1,57 @@ +#include "g_libntptest.h" + +class octtointTest : public libntptest { +}; + +TEST_F(octtointTest, SingleDigit) { + const char* str = "5"; + u_long actual; + + ASSERT_TRUE(octtoint(str, &actual)); + EXPECT_EQ(5, actual); +} + +TEST_F(octtointTest, MultipleDigits) { + const char* str = "271"; + u_long actual; + + ASSERT_TRUE(octtoint(str, &actual)); + EXPECT_EQ(185, actual); +} + +TEST_F(octtointTest, Zero) { + const char* str = "0"; + u_long actual; + + ASSERT_TRUE(octtoint(str, &actual)); + EXPECT_EQ(0, actual); +} + +TEST_F(octtointTest, MaximumUnsigned32bit) { + const char* str = "37777777777"; + u_long actual; + + ASSERT_TRUE(octtoint(str, &actual)); + EXPECT_EQ(4294967295UL, actual); +} + +TEST_F(octtointTest, Overflow) { + const char* str = "40000000000"; + u_long actual; + + ASSERT_FALSE(octtoint(str, &actual)); +} + +TEST_F(octtointTest, IllegalCharacter) { + const char* str = "5ac2"; + u_long actual; + + ASSERT_FALSE(octtoint(str, &actual)); +} + +TEST_F(octtointTest, IllegalDigit) { + const char* str = "5283"; + u_long actual; + + ASSERT_FALSE(octtoint(str, &actual)); +} diff --git a/contrib/ntp/tests/libntp/g_prettydate.cpp b/contrib/ntp/tests/libntp/g_prettydate.cpp new file mode 100644 index 0000000..45741b5 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_prettydate.cpp @@ -0,0 +1,16 @@ +#include "g_libntptest.h" + +extern "C" { +#include "ntp_fp.h" +}; + +class prettydateTest : public libntptest { +protected: + static const u_int32 HALF = 2147483648UL; +}; + +TEST_F(prettydateTest, ConstantDate) { + l_fp time = {3485080800UL, HALF}; // 2010-06-09 14:00:00.5 + + ASSERT_STREQ("cfba1ce0.80000000 Wed, Jun 9 2010 14:00:00.500", gmprettydate(&time)); +} diff --git a/contrib/ntp/tests/libntp/g_recvbuff.cpp b/contrib/ntp/tests/libntp/g_recvbuff.cpp new file mode 100644 index 0000000..799802d --- /dev/null +++ b/contrib/ntp/tests/libntp/g_recvbuff.cpp @@ -0,0 +1,38 @@ +#include "g_libntptest.h" + +extern "C" { +#include "recvbuff.h" +}; + +class recvbuffTest : public libntptest { +protected: + virtual void SetUp() { + init_recvbuff(RECV_INIT); + } +}; + +TEST_F(recvbuffTest, Initialization) { + EXPECT_EQ(RECV_INIT, free_recvbuffs()); + EXPECT_EQ(0, full_recvbuffs()); + EXPECT_FALSE(has_full_recv_buffer()); + EXPECT_TRUE(get_full_recv_buffer() == NULL); +} + +TEST_F(recvbuffTest, GetAndFree) { + int initial = free_recvbuffs(); + recvbuf_t* buf = get_free_recv_buffer(); + + EXPECT_EQ(initial-1, free_recvbuffs()); + freerecvbuf(buf); + EXPECT_EQ(initial, free_recvbuffs()); +} + +TEST_F(recvbuffTest, GetAndFill) { + int initial = free_recvbuffs(); + recvbuf_t* buf = get_free_recv_buffer(); + + add_full_recv_buffer(buf); + EXPECT_EQ(1, full_recvbuffs()); + EXPECT_TRUE(has_full_recv_buffer()); + EXPECT_EQ(buf, get_full_recv_buffer()); +} diff --git a/contrib/ntp/tests/libntp/g_refnumtoa.cpp b/contrib/ntp/tests/libntp/g_refnumtoa.cpp new file mode 100644 index 0000000..91648aa --- /dev/null +++ b/contrib/ntp/tests/libntp/g_refnumtoa.cpp @@ -0,0 +1,52 @@ +#include "g_libntptest.h" + +#include "ntp_net.h" +#include "ntp_refclock.h" + +#include + +class refnumtoaTest : public libntptest { +protected: + /* Might need to be updated if a new refclock gets this id. */ + static const int UNUSED_REFCLOCK_ID = 250; +}; + +#ifdef REFCLOCK /* clockname() is useless otherwise */ +TEST_F(refnumtoaTest, LocalClock) { + /* 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); + + std::ostringstream expected; + expected << clockname(REFCLK_LOCALCLOCK) + << "(8)"; + + EXPECT_STREQ(expected.str().c_str(), refnumtoa(&address)); +} +#endif /* REFCLOCK */ + +#ifdef REFCLOCK /* refnumtoa() is useless otherwise */ +TEST_F(refnumtoaTest, UnknownId) { + /* 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); + + std::ostringstream expected; + expected << "REFCLK(" << UNUSED_REFCLOCK_ID + << ",4)"; + + EXPECT_STREQ(expected.str().c_str(), refnumtoa(&address)); +} +#endif /* REFCLOCK */ diff --git a/contrib/ntp/tests/libntp/g_sfptostr.cpp b/contrib/ntp/tests/libntp/g_sfptostr.cpp new file mode 100644 index 0000000..c31b30c --- /dev/null +++ b/contrib/ntp/tests/libntp/g_sfptostr.cpp @@ -0,0 +1,71 @@ +/* + * This file contains test for both fptoa and fptoms (which uses dofptoa), + * since all these functions are very similar. + */ + +#include "g_libntptest.h" + +extern "C" { +#include "ntp_fp.h" +}; + +class sfptostr : public libntptest { +protected: + static const int SFP_MAX_PRECISION = 6; +}; + +TEST_F(sfptostr, PositiveInteger) { + s_fp test = 300 << 16; // exact 300.000000 + + EXPECT_STREQ("300.000000", fptoa(test, SFP_MAX_PRECISION)); + EXPECT_STREQ("300000.000", fptoms(test, SFP_MAX_PRECISION)); +} + +TEST_F(sfptostr, NegativeInteger) { + s_fp test = -200 << 16; // exact -200.000000 + + EXPECT_STREQ("-200.000000", fptoa(test, SFP_MAX_PRECISION)); + EXPECT_STREQ("-200000.000", fptoms(test, SFP_MAX_PRECISION)); +} + +TEST_F(sfptostr, PositiveIntegerPositiveFraction) { + s_fp test = (300 << 16) + (1 << 15); // 300 + 0.5 + + EXPECT_STREQ("300.500000", fptoa(test, SFP_MAX_PRECISION)); + EXPECT_STREQ("300500.000", fptoms(test, SFP_MAX_PRECISION)); +} + +TEST_F(sfptostr, NegativeIntegerNegativeFraction) { + s_fp test = (-200 << 16) - (1 << 15); // -200 - 0.5 + + EXPECT_STREQ("-200.500000", fptoa(test, SFP_MAX_PRECISION)); + EXPECT_STREQ("-200500.000", fptoms(test, SFP_MAX_PRECISION)); +} + +TEST_F(sfptostr, PositiveIntegerNegativeFraction) { + s_fp test = (300 << 16) - (1 << 14); // 300 - 0.25 + + EXPECT_STREQ("299.750000", fptoa(test, SFP_MAX_PRECISION)); + EXPECT_STREQ("299750.000", fptoms(test, SFP_MAX_PRECISION)); +} + +TEST_F(sfptostr, NegativeIntegerPositiveFraction) { + s_fp test = (-200 << 16) + (1 << 14)*3; // -200 + 0.75 + + EXPECT_STREQ("-199.250000", fptoa(test, SFP_MAX_PRECISION)); + EXPECT_STREQ("-199250.000", fptoms(test, SFP_MAX_PRECISION)); +} + +TEST_F(sfptostr, SingleDecimalInteger) { + s_fp test = 300 << 16; // 300 + + EXPECT_STREQ("300.0", fptoa(test, 1)); + EXPECT_STREQ("300000.0", fptoms(test, 1)); +} + +TEST_F(sfptostr, SingleDecimalRounding) { + s_fp test = (2 << 16) + (1 << 14)*3; // 2 + 0.25*3 = 2.75 + + EXPECT_STREQ("2.8", fptoa(test, 1)); + EXPECT_STREQ("2750.0", fptoms(test, 1)); +} diff --git a/contrib/ntp/tests/libntp/g_sockaddrtest.h b/contrib/ntp/tests/libntp/g_sockaddrtest.h new file mode 100644 index 0000000..819a54f --- /dev/null +++ b/contrib/ntp/tests/libntp/g_sockaddrtest.h @@ -0,0 +1,59 @@ +#ifndef TESTS_SOCKADDRTEST_H +#define TESTS_SOCKADDRTEST_H + +#include "g_libntptest.h" + +extern "C" { +#include "ntp.h" +}; + +class sockaddrtest : public libntptest { +protected: + ::testing::AssertionResult IsEqual(const sockaddr_u &expected, const sockaddr_u &actual) { + if (expected.sa.sa_family != actual.sa.sa_family) { + return ::testing::AssertionFailure() + << "Expected sa_family: " << expected.sa.sa_family + << " but got: " << actual.sa.sa_family; + } + + 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_addr)) == 0) { + return ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "IPv4 comparision failed, expected: " + << expected.sa4.sin_addr.s_addr + << "(" << socktoa(&expected) << ")" + << " but was: " + << actual.sa4.sin_addr.s_addr + << "(" << socktoa(&actual) << ")"; + } + } 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_addr)) == 0) { + return ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "IPv6 comparision failed"; + } + } else { // Unknown family + return ::testing::AssertionFailure() + << "Unknown sa_family: " << actual.sa.sa_family; + } + } + + 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; + } +}; + +#endif // TESTS_SOCKADDRTEST_H + diff --git a/contrib/ntp/tests/libntp/g_socktoa.cpp b/contrib/ntp/tests/libntp/g_socktoa.cpp new file mode 100644 index 0000000..2bb2fb1 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_socktoa.cpp @@ -0,0 +1,100 @@ +#include "g_sockaddrtest.h" + +class socktoaTest : public sockaddrtest { +}; + +TEST_F(socktoaTest, IPv4AddressWithPort) { + sockaddr_u input = CreateSockaddr4("192.0.2.10", 123); + + EXPECT_STREQ("192.0.2.10", socktoa(&input)); + EXPECT_STREQ("192.0.2.10:123", sockporttoa(&input)); +} + +TEST_F(socktoaTest, IPv6AddressWithPort) { + 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); + + EXPECT_STREQ(expected, socktoa(&input)); + EXPECT_STREQ(expected_port, sockporttoa(&input)); +} + +#ifdef ISC_PLATFORM_HAVESCOPEID +TEST_F(socktoaTest, ScopedIPv6AddressWithPort) { + 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; + + EXPECT_STREQ(expected, socktoa(&input)); + EXPECT_STREQ(expected_port, sockporttoa(&input)); +} +#endif /* ISC_PLATFORM_HAVESCOPEID */ + +TEST_F(socktoaTest, HashEqual) { + sockaddr_u input1 = CreateSockaddr4("192.00.2.2", 123); + sockaddr_u input2 = CreateSockaddr4("192.0.2.2", 123); + + ASSERT_TRUE(IsEqual(input1, input2)); + EXPECT_EQ(sock_hash(&input1), sock_hash(&input2)); +} + +TEST_F(socktoaTest, HashNotEqual) { + /* 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); + + ASSERT_FALSE(IsEqual(input1, input2)); + EXPECT_NE(sock_hash(&input1), sock_hash(&input2)); +} + +TEST_F(socktoaTest, IgnoreIPv6Fields) { + 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); + + EXPECT_EQ(sock_hash(&input1), sock_hash(&input2)); +} diff --git a/contrib/ntp/tests/libntp/g_ssl_init.cpp b/contrib/ntp/tests/libntp/g_ssl_init.cpp new file mode 100644 index 0000000..16b2f4d --- /dev/null +++ b/contrib/ntp/tests/libntp/g_ssl_init.cpp @@ -0,0 +1,50 @@ +#include "g_libntptest.h" + +extern "C" { +#ifdef OPENSSL +# include "openssl/err.h" +# include "openssl/rand.h" +# include "openssl/evp.h" +#endif +#include "ntp.h" +}; + +class ssl_initTest : public libntptest { +protected: + static const size_t TEST_MD5_DIGEST_LENGTH = 16; + static const size_t TEST_SHA1_DIGEST_LENGTH = 20; +}; + +// keytype_from_text() +TEST_F(ssl_initTest, MD5KeyTypeWithoutDigestLength) { + ASSERT_EQ(KEY_TYPE_MD5, keytype_from_text("MD5", NULL)); +} + +TEST_F(ssl_initTest, MD5KeyTypeWithDigestLength) { + size_t digestLength; + size_t expected = TEST_MD5_DIGEST_LENGTH; + + EXPECT_EQ(KEY_TYPE_MD5, keytype_from_text("MD5", &digestLength)); + EXPECT_EQ(expected, digestLength); +} + +#ifdef OPENSSL +TEST_F(ssl_initTest, SHA1KeyTypeWithDigestLength) { + size_t digestLength; + size_t expected = TEST_SHA1_DIGEST_LENGTH; + + EXPECT_EQ(NID_sha, keytype_from_text("SHA", &digestLength)); + EXPECT_EQ(expected, digestLength); +} +#endif /* OPENSSL */ + +// keytype_name() +TEST_F(ssl_initTest, MD5KeyName) { + EXPECT_STREQ("MD5", keytype_name(KEY_TYPE_MD5)); +} + +#ifdef OPENSSL +TEST_F(ssl_initTest, SHA1KeyName) { + EXPECT_STREQ("SHA", keytype_name(NID_sha)); +} +#endif /* OPENSSL */ diff --git a/contrib/ntp/tests/libntp/g_statestr.cpp b/contrib/ntp/tests/libntp/g_statestr.cpp new file mode 100644 index 0000000..dedbf5b --- /dev/null +++ b/contrib/ntp/tests/libntp/g_statestr.cpp @@ -0,0 +1,28 @@ +#include "g_libntptest.h" + +extern "C" { +#include "ntp.h" // Needed for MAX_MAC_LEN used in ntp_control.h +#include "ntp_control.h" +}; + +class statestrTest : public libntptest { +}; + +// eventstr() +TEST_F(statestrTest, PeerRestart) { + EXPECT_STREQ("restart", eventstr(PEVNT_RESTART)); +} + +TEST_F(statestrTest, SysUnspecified) { + EXPECT_STREQ("unspecified", eventstr(EVNT_UNSPEC)); +} + +// ceventstr() +TEST_F(statestrTest, ClockCodeExists) { + EXPECT_STREQ("clk_unspec", ceventstr(CTL_CLK_OKAY)); +} + +TEST_F(statestrTest, ClockCodeUnknown) { + EXPECT_STREQ("clk_-1", ceventstr(-1)); +} + diff --git a/contrib/ntp/tests/libntp/g_strtolfp.cpp b/contrib/ntp/tests/libntp/g_strtolfp.cpp new file mode 100644 index 0000000..d1b361e --- /dev/null +++ b/contrib/ntp/tests/libntp/g_strtolfp.cpp @@ -0,0 +1,107 @@ +#include "g_lfptest.h" + +/* This class tests both atolfp and mstolfp */ + +class strtolfpTest : public lfptest { +}; + +TEST_F(strtolfpTest, PositiveInteger) { + const char *str = "500"; + const char *str_ms = "500000"; + + l_fp expected = {500,0}; + l_fp actual, actual_ms; + + ASSERT_TRUE(atolfp(str, &actual)); + ASSERT_TRUE(mstolfp(str_ms, &actual_ms)); + + EXPECT_TRUE(IsEqual(expected, actual)); + EXPECT_TRUE(IsEqual(expected, actual_ms)); +} + +TEST_F(strtolfpTest, NegativeInteger) { + 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; + + ASSERT_TRUE(atolfp(str, &actual)); + ASSERT_TRUE(mstolfp(str_ms, &actual_ms)); + + EXPECT_TRUE(IsEqual(expected, actual)); + EXPECT_TRUE(IsEqual(expected, actual_ms)); +} + +TEST_F(strtolfpTest, PositiveFraction) { + const char *str = "+500.5"; + const char *str_ms = "500500.0"; + + l_fp expected = {500, HALF}; + l_fp actual, actual_ms; + + ASSERT_TRUE(atolfp(str, &actual)); + ASSERT_TRUE(mstolfp(str_ms, &actual_ms)); + + EXPECT_TRUE(IsEqual(expected, actual)); + EXPECT_TRUE(IsEqual(expected, actual_ms)); +} + +TEST_F(strtolfpTest, NegativeFraction) { + 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; + + ASSERT_TRUE(atolfp(str, &actual)); + ASSERT_TRUE(mstolfp(str_ms, &actual_ms)); + + EXPECT_TRUE(IsEqual(expected, actual)); + EXPECT_TRUE(IsEqual(expected, actual_ms)); +} + +TEST_F(strtolfpTest, PositiveMsFraction) { + const char *str = "300.00025"; + const char *str_ms = "300000.25"; + + l_fp expected = {300, QUARTER_PROMILLE_APPRX}; + l_fp actual, actual_ms; + + ASSERT_TRUE(atolfp(str, &actual)); + ASSERT_TRUE(mstolfp(str_ms, &actual_ms)); + + EXPECT_TRUE(IsEqual(expected, actual)); + EXPECT_TRUE(IsEqual(expected, actual_ms)); +} + +TEST_F(strtolfpTest, NegativeMsFraction) { + 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; + + ASSERT_TRUE(atolfp(str, &actual)); + ASSERT_TRUE(mstolfp(str_ms, &actual_ms)); + + EXPECT_TRUE(IsEqual(expected, actual)); + EXPECT_TRUE(IsEqual(expected, actual_ms)); +} + +TEST_F(strtolfpTest, InvalidChars) { + const char *str = "500.4a2"; + l_fp actual, actual_ms; + + ASSERT_FALSE(atolfp(str, &actual)); + ASSERT_FALSE(mstolfp(str, &actual_ms)); +} diff --git a/contrib/ntp/tests/libntp/g_timespecops.cpp b/contrib/ntp/tests/libntp/g_timespecops.cpp new file mode 100644 index 0000000..0cc573f --- /dev/null +++ b/contrib/ntp/tests/libntp/g_timespecops.cpp @@ -0,0 +1,475 @@ +#include "g_libntptest.h" +#include "g_timestructs.h" + +extern "C" { +#include +#include "timespecops.h" +} + +#include +#include + +using namespace timeStruct; + +class timespecTest : public libntptest { +protected: + 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; + }; + static const lfpfracdata fdata[]; +}; + +u_int32 +timespecTest::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 +timespecTest::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! +} + +const timespecTest::lfpfracdata timespecTest::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 } +}; + + +// --------------------------------------------------------------------- +// test support stuff -- part 1 +// --------------------------------------------------------------------- + +TEST_F(timespecTest, Helpers1) { + timespec_wrap x; + + for (x.V.tv_sec = -2; x.V.tv_sec < 3; x.V.tv_sec++) { + x.V.tv_nsec = -1; + ASSERT_FALSE(x.valid()); + x.V.tv_nsec = 0; + ASSERT_TRUE(x.valid()); + x.V.tv_nsec = 999999999; + ASSERT_TRUE(x.valid()); + x.V.tv_nsec = 1000000000; + ASSERT_FALSE(x.valid()); + } +} + +//---------------------------------------------------------------------- +// test normalisation +//---------------------------------------------------------------------- + +TEST_F(timespecTest, Normalise) { + for (long ns = -2000000000; ns <= 2000000000; ns += 10000000) { + timespec_wrap x(0, ns); + + x = normalize_tspec(x); + ASSERT_TRUE(x.valid()); + } +} + +//---------------------------------------------------------------------- +// test classification +//---------------------------------------------------------------------- + +TEST_F(timespecTest, SignNoFrac) { + // sign test, no fraction + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i, 0); + int E = (i > 0) - (i < 0); + int r = test_tspec(a); + + ASSERT_EQ(E, r); + } +} + +TEST_F(timespecTest, SignWithFrac) { + // sign test, with fraction + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i, 10); + int E = (i >= 0) - (i < 0); + int r = test_tspec(a); + ASSERT_EQ(E, r); + } +} + +//---------------------------------------------------------------------- +// test compare +//---------------------------------------------------------------------- +TEST_F(timespecTest, CmpFracEQ) { + // fractions are equal + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timespec_wrap a( i , 200); + timespec_wrap b( j , 200); + int E = (i > j) - (i < j); + int r = cmp_tspec_denorm(a, b); + ASSERT_EQ(E, r); + } +} + +TEST_F(timespecTest, CmpFracGT) { + // fraction a bigger fraction b + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timespec_wrap a(i, 999999800); + timespec_wrap b(j, 200); + int E = (i >= j) - (i < j); + int r = cmp_tspec_denorm(a, b); + ASSERT_EQ(E, r); + } +} + +TEST_F(timespecTest, CmpFracLT) { + // fraction a less fraction b + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timespec_wrap a(i, 200); + timespec_wrap b(j, 999999800); + int E = (i > j) - (i <= j); + int r = cmp_tspec_denorm(a, b); + ASSERT_EQ(E, r); + } +} + +//---------------------------------------------------------------------- +// Test addition (sum) +//---------------------------------------------------------------------- + +TEST_F(timespecTest, AddFullNorm) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timespec_wrap a(i, 200); + timespec_wrap b(j, 400); + timespec_wrap E(i + j, 200 + 400); + timespec_wrap c; + + c = add_tspec(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timespecTest, AddFullOflow1) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timespec_wrap a(i, 200); + timespec_wrap b(j, 999999900); + timespec_wrap E(i + j + 1, 100); + timespec_wrap c; + + c = add_tspec(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timespecTest, AddNsecNorm) { + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i, 200); + timespec_wrap E(i, 600); + timespec_wrap c; + + c = add_tspec_ns(a, 600 - 200); + ASSERT_EQ(E, c); + } +} + +TEST_F(timespecTest, AddNsecOflow1) { + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i, 200); + timespec_wrap E(i + 1, 100); + timespec_wrap c; + + c = add_tspec_ns(a, NANOSECONDS - 100); + ASSERT_EQ(E, c); + } +} + +//---------------------------------------------------------------------- +// test subtraction (difference) +//---------------------------------------------------------------------- + +TEST_F(timespecTest, SubFullNorm) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timespec_wrap a( i , 600); + timespec_wrap b( j , 400); + timespec_wrap E(i-j, 200); + timespec_wrap c; + + c = sub_tspec(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timespecTest, SubFullOflow) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timespec_wrap a( i , 100); + timespec_wrap b( j , 999999900); + timespec_wrap E(i-j-1, 200); + timespec_wrap c; + + c = sub_tspec(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timespecTest, SubNsecNorm) { + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i, 600); + timespec_wrap E(i, 200); + timespec_wrap c; + + c = sub_tspec_ns(a, 600 - 200); + ASSERT_EQ(E, c); + } +} + +TEST_F(timespecTest, SubNsecOflow) { + for (int i = -4; i <= 4; ++i) { + timespec_wrap a( i , 100); + timespec_wrap E(i-1, 200); + timespec_wrap c; + + c = sub_tspec_ns(a, NANOSECONDS - 100); + ASSERT_EQ(E, c); + } +} + +//---------------------------------------------------------------------- +// test negation +//---------------------------------------------------------------------- + +TEST_F(timespecTest, Neg) { + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i, 100); + timespec_wrap b; + timespec_wrap c; + + b = neg_tspec(a); + c = add_tspec(a, b); + ASSERT_EQ(0, test_tspec(c)); + } +} + +//---------------------------------------------------------------------- +// test abs value +//---------------------------------------------------------------------- + +TEST_F(timespecTest, AbsNoFrac) { + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i , 0); + timespec_wrap b; + + b = abs_tspec(a); + ASSERT_EQ((i != 0), test_tspec(b)); + } +} + +TEST_F(timespecTest, AbsWithFrac) { + for (int i = -4; i <= 4; ++i) { + timespec_wrap a(i, 100); + timespec_wrap b; + + b = abs_tspec(a); + ASSERT_EQ(1, test_tspec(b)); + } +} + +// --------------------------------------------------------------------- +// test support stuff -- part 2 +// --------------------------------------------------------------------- + +TEST_F(timespecTest, Helpers2) { + AssertTimespecClose isClose(0, 2); + timespec_wrap x, y; + + for (x.V.tv_sec = -2; x.V.tv_sec < 3; x.V.tv_sec++) + for (x.V.tv_nsec = 1; + x.V.tv_nsec < 1000000000; + x.V.tv_nsec += 499999999) { + for (long i = -4; i < 5; i++) { + y = x; + y.V.tv_nsec += i; + if (i >= -2 && i <= 2) + ASSERT_PRED_FORMAT2(isClose, x, y); + else + ASSERT_PRED_FORMAT2(!isClose, x, y); + } + } +} + +// global predicate instances we're using here +static AssertFpClose FpClose(0, 1); +static AssertTimespecClose TimespecClose(0, 2); + +//---------------------------------------------------------------------- +// conversion to l_fp +//---------------------------------------------------------------------- + +TEST_F(timespecTest, ToLFPbittest) { + for (u_int32 i = 0; i < 1000000000; i+=1000) { + timespec_wrap a(1, i); + l_fp_wrap E(1, my_tick_to_tsf(i)); + l_fp_wrap r; + + r = tspec_intv_to_lfp(a); + ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +TEST_F(timespecTest, ToLFPrelPos) { + for (int i = 0; i < COUNTOF(fdata); i++) { + timespec_wrap a(1, fdata[i].nsec); + l_fp_wrap E(1, fdata[i].frac); + l_fp_wrap r; + + r = tspec_intv_to_lfp(a); + ASSERT_EQ(E, r); + } +} + +TEST_F(timespecTest, ToLFPrelNeg) { + for (int i = 0; i < COUNTOF(fdata); i++) { + timespec_wrap a(-1, fdata[i].nsec); + l_fp_wrap E(~0, fdata[i].frac); + l_fp_wrap r; + + r = tspec_intv_to_lfp(a); + ASSERT_EQ(E, r); + } +} + +TEST_F(timespecTest, ToLFPabs) { + for (int i = 0; i < COUNTOF(fdata); i++) { + timespec_wrap a(1, fdata[i].nsec); + l_fp_wrap E(1 + JAN_1970, fdata[i].frac); + l_fp_wrap r; + + r = tspec_stamp_to_lfp(a); + ASSERT_EQ(E, r); + } +} + +//---------------------------------------------------------------------- +// conversion from l_fp +//---------------------------------------------------------------------- +TEST_F(timespecTest, FromLFPbittest) { + // 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. + for (u_int32 tsf = 0; tsf < ~u_int32(1000); tsf += 1000) { + timespec_wrap E(1, my_tsf_to_tick(tsf)); + l_fp_wrap a(1, tsf); + timespec_wrap r; + + r = lfp_intv_to_tspec(a); + // The conversion might be off by one nanosecond when + // comparing to calculated value. + ASSERT_PRED_FORMAT2(TimespecClose, E, r); + } +} + +TEST_F(timespecTest, FromLFPrelPos) { + for (int i = 0; i < COUNTOF(fdata); i++) { + l_fp_wrap a(1, fdata[i].frac); + timespec_wrap E(1, fdata[i].nsec); + timespec_wrap r; + + r = lfp_intv_to_tspec(a); + ASSERT_PRED_FORMAT2(TimespecClose, E, r); + } +} + +TEST_F(timespecTest, FromLFPrelNeg) { + for (int i = 0; i < COUNTOF(fdata); i++) { + l_fp_wrap a(~0, fdata[i].frac); + timespec_wrap E(-1, fdata[i].nsec); + timespec_wrap r; + + r = lfp_intv_to_tspec(a); + ASSERT_PRED_FORMAT2(TimespecClose, E, r); + } +} + + +// nsec -> frac -> nsec roundtrip, using a prime start and increment +TEST_F(timespecTest, LFProundtrip) { + for (int32_t t = -1; t < 2; ++t) + for (u_int32 i = 4999; i < 1000000000; i+=10007) { + timespec_wrap E(t, i); + l_fp_wrap a; + timespec_wrap r; + + a = tspec_intv_to_lfp(E); + r = lfp_intv_to_tspec(a); + ASSERT_EQ(E, r); + } +} + +//---------------------------------------------------------------------- +// string formatting +//---------------------------------------------------------------------- + +TEST_F(timespecTest, ToString) { + 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" }, + }; + for (int i = 0; i < COUNTOF(data); i++) { + timespec_wrap a(data[i].sec, data[i].nsec); + std::string E(data[i].repr); + std::string r(tspectoa(a)); + ASSERT_EQ(E, r); + } +} + +// -*- EOF -*- diff --git a/contrib/ntp/tests/libntp/g_timestructs.cpp b/contrib/ntp/tests/libntp/g_timestructs.cpp new file mode 100644 index 0000000..15b5ec1 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_timestructs.cpp @@ -0,0 +1,156 @@ +/* + * timestructs.cpp -- test bed adaptors for time structs. + * + * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project. + * The contents of 'html/copyright.html' apply. + */ +#include "g_libntptest.h" +#include "g_timestructs.h" + +extern "C" { +#include "timetoa.h" +#include "timevalops.h" +#include "timespecops.h" +} + +namespace timeStruct { + +std::ostream& +operator << (std::ostream& os, const timeStruct::l_fp_wrap& val) +{ + // raw data formatting + os << "0x" << std::hex << val.V.l_ui << ':' + << std::setfill('0') << std::setw(8) << val.V.l_uf + << std::dec; + // human-readable format + os << '[' << lfptoa(&val.V, 10) << ']'; + return os; +} + +std::ostream& +operator << (std::ostream& os, const timeStruct::timeval_wrap& val) +{ + // raw data formatting + os << val.V.tv_sec << ':' << val.V.tv_usec; + // human-readable format + os << '[' + << format_time_fraction(val.V.tv_sec, val.V.tv_usec, 6) + << ']'; + return os; +} + +std::ostream& +operator << (std::ostream& os, const timeStruct::timespec_wrap& val) +{ + // raw data formatting + os << val.V.tv_sec << ':' << val.V.tv_nsec; + // human-readable format + os << '[' + << format_time_fraction(val.V.tv_sec, val.V.tv_nsec, 9) + << ']'; + return os; +} + +// Implementation of the l_fp closeness predicate + +AssertFpClose::AssertFpClose( + u_int32 hi, + u_int32 lo + ) +{ + limit.l_ui = hi; + limit.l_uf = lo; +} + +::testing::AssertionResult +AssertFpClose::operator()( + const char* m_expr, + const char* n_expr, + const l_fp & m, + const l_fp & n + ) +{ + 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 ::testing::AssertionSuccess(); + + return ::testing::AssertionFailure() + << m_expr << " which is " << l_fp_wrap(m) + << "\nand\n" + << n_expr << " which is " << l_fp_wrap(n) + << "\nare not close; diff=" << l_fp_wrap(diff); +} + +// Implementation of the timeval closeness predicate + +AssertTimevalClose::AssertTimevalClose( + time_t hi, + int32 lo + ) +{ + limit.tv_sec = hi; + limit.tv_usec = lo; +} + +::testing::AssertionResult +AssertTimevalClose::operator()( + const char* m_expr, + const char* n_expr, + const struct timeval & m, + const struct timeval & n + ) +{ + struct timeval diff; + + diff = abs_tval(sub_tval(m, n)); + if (cmp_tval(limit, diff) >= 0) + return ::testing::AssertionSuccess(); + + return ::testing::AssertionFailure() + << m_expr << " which is " << timeval_wrap(m) + << "\nand\n" + << n_expr << " which is " << timeval_wrap(n) + << "\nare not close; diff=" << timeval_wrap(diff); +} + +// Implementation of the timespec closeness predicate + +AssertTimespecClose::AssertTimespecClose( + time_t hi, + int32 lo + ) +{ + limit.tv_sec = hi; + limit.tv_nsec = lo; +} + +::testing::AssertionResult +AssertTimespecClose::operator()( + const char* m_expr, + const char* n_expr, + const struct timespec & m, + const struct timespec & n + ) +{ + struct timespec diff; + + diff = abs_tspec(sub_tspec(m, n)); + if (cmp_tspec(limit, diff) >= 0) + return ::testing::AssertionSuccess(); + + return ::testing::AssertionFailure() + << m_expr << " which is " << timespec_wrap(m) + << "\nand\n" + << n_expr << " which is " << timespec_wrap(n) + << "\nare not close; diff=" << timespec_wrap(diff); +} + +} // namespace timeStruct diff --git a/contrib/ntp/tests/libntp/g_timestructs.h b/contrib/ntp/tests/libntp/g_timestructs.h new file mode 100644 index 0000000..7bc4ffd --- /dev/null +++ b/contrib/ntp/tests/libntp/g_timestructs.h @@ -0,0 +1,185 @@ +/* + * timestructs.h -- test bed adaptors for time structs. + * + * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project. + * The contents of 'html/copyright.html' apply. + * + * Some wrapper classes and a closeness predicate that are used to + * bridge the gap between the goggletest framework and the structs used + * for representing time stamps (l_fp, struct timeval, struct timespec). + * + * Some ostream conversion operators are provided to give diagnostic + * output on errors. The normal string conversion functions will give + * HRVs (human readable values) but we might also be interested in the + * machine representation for diagnostic purposes. + */ +#ifndef TIMESTRUCTS_H +#define TIMESTRUCTS_H + +extern "C" { +#include "ntp_fp.h" +} + +namespace timeStruct { + +// wrap a l_fp struct with common operations +class l_fp_wrap { + public: + l_fp V; + + l_fp_wrap() + { ZERO(V); } + l_fp_wrap(u_int32 hi, u_int32 lo) + { V.l_ui = hi; V.l_uf = lo; } + l_fp_wrap(const l_fp &rhs) + { V = rhs; } + bool operator == (const l_fp_wrap& rhs) const + { return L_ISEQU(&V, &rhs.V); } + operator l_fp* () + { return &V; } + operator l_fp& () + { return V; } + l_fp_wrap & operator = (const l_fp_wrap& rhs) + { V = rhs.V; return *this; } + l_fp_wrap& operator = (const l_fp& rhs) + { V = rhs; return *this; } + }; + +// wrap a 'struct timeval' with common operations +class timeval_wrap { +public: + struct timeval V; + + timeval_wrap() + { ZERO(V); } + timeval_wrap(time_t hi, long lo) + { V.tv_sec = hi; V.tv_usec = lo; } + timeval_wrap(const struct timeval & rhs) + { V = rhs; } + timeval_wrap(const timeval_wrap & rhs) + { V = rhs.V; } + bool operator == (const timeval_wrap& rhs) const + { return V.tv_sec == rhs.V.tv_sec && + V.tv_usec == rhs.V.tv_usec ; } + bool valid() const + { return V.tv_usec >= 0 && V.tv_usec < 1000000; } + operator struct timeval* () + { return &V; } + operator struct timeval& () + { return V; } + timeval_wrap& operator = (const timeval_wrap& rhs) + { V = rhs.V; return *this; } + timeval_wrap& operator = (const struct timeval& rhs) + { V = rhs; return *this; } +}; + +// wrap a 'struct timespec' with common operations +class timespec_wrap { +public: + struct timespec V; + + timespec_wrap() + { ZERO(V); } + timespec_wrap(time_t hi, long lo) + { V.tv_sec = hi; V.tv_nsec = lo; } + timespec_wrap(const struct timespec & rhs) + { V = rhs; } + timespec_wrap(const timespec_wrap & rhs) + { V = rhs.V; } + bool operator == (const timespec_wrap& rhs) const + { return V.tv_sec == rhs.V.tv_sec && + V.tv_nsec == rhs.V.tv_nsec ; } + bool valid() const + { return V.tv_nsec >= 0 && V.tv_nsec < 1000000000; } + operator struct timespec* () + { return &V; } + operator struct timespec& () + { return V; } + timespec_wrap& operator = (const timespec_wrap& rhs) + { V = rhs.V; return *this; } + timespec_wrap& operator = (const struct timespec& rhs) + { V = rhs; return *this; } +}; + +// l_fp closeness testing predicate +// +// This predicate is used for the closeness ('near') testing of l_fp +// values. Once constructed with a limit, it can be used to check the +// absolute difference of two l_fp structs against that limit; if the +// difference is less or equal to this limit, the test passes. +class AssertFpClose { +private: + l_fp limit; + +public: + AssertFpClose(u_int32 hi, u_int32 lo); + + ::testing::AssertionResult + operator()(const char* m_expr, const char* n_expr, + const l_fp & m, const l_fp & n); +}; + + +// timeval closeness testing predicate +// +// CAVEAT: This class uses the timevalops functions +// - sub_tval +// - abs_tval +// - cmp_tval +// +// This creates a dependency loop of sorts. The loop is defused by the +// fact that these basic operations can be tested by exact value tests, +// so once the basic timeval operations passed it's safe to use this +// predicate. +class AssertTimevalClose { +private: + struct timeval limit; + +public: + // note: (hi,lo) should be a positive normalised timeval; + // the constructor does not normalise the values! + AssertTimevalClose(time_t hi, int32 lo); + + ::testing::AssertionResult + operator()(const char* m_expr, const char* n_expr, + const struct timeval & m, const struct timeval & n); +}; + + +// timespec closeness testing predicate +// +// CAVEAT: This class uses the timespecops functions +// - sub_tspec +// - abs_tspec +// - cmp_tspec +// +// See the equivalent timeval helper. +class AssertTimespecClose { +private: + struct timespec limit; + +public: + // note: (hi,lo) should be a positive normalised timespec; + // the constructor does not normalise the values! + AssertTimespecClose(time_t hi, int32 lo); + + ::testing::AssertionResult + operator()(const char* m_expr, const char* n_expr, + const struct timespec & m, const struct timespec & n); +}; + + +// since googletest wants to string format items, we declare the +// necessary operators. Since all adaptors have only public members +// there is need for friend declarations anywhere. + +extern std::ostream& operator << (std::ostream& os, + const timeStruct::l_fp_wrap& val); +extern std::ostream& operator << (std::ostream& os, + const timeStruct::timeval_wrap& val); +extern std::ostream& operator << (std::ostream& os, + const timeStruct::timespec_wrap& val); + +} // namespace timeStruct + +#endif // TIMESTRUCTS_H diff --git a/contrib/ntp/tests/libntp/g_timevalops.cpp b/contrib/ntp/tests/libntp/g_timevalops.cpp new file mode 100644 index 0000000..8c171fc --- /dev/null +++ b/contrib/ntp/tests/libntp/g_timevalops.cpp @@ -0,0 +1,480 @@ +#include "g_libntptest.h" +#include "g_timestructs.h" + +extern "C" { +#include +#include "timevalops.h" +} + +#include +#include + +using namespace timeStruct; + +class timevalTest : public libntptest { +protected: + 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 usec; + u_int32 frac; + }; + static const lfpfracdata fdata[]; +}; + +u_int32 +timevalTest::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); +#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 +timevalTest::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); +#else + return u_int32(double(tsf) / 4294.967296 + 0.5); +#endif + // Beware: The result might be 10^6 due to rounding! +} + +const timevalTest::lfpfracdata timevalTest::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 } +}; + + +// --------------------------------------------------------------------- +// test support stuff - part1 +// --------------------------------------------------------------------- + +TEST_F(timevalTest, Helpers1) { + timeval_wrap x; + + for (x.V.tv_sec = -2; x.V.tv_sec < 3; x.V.tv_sec++) { + x.V.tv_usec = -1; + ASSERT_FALSE(x.valid()); + x.V.tv_usec = 0; + ASSERT_TRUE(x.valid()); + x.V.tv_usec = 999999; + ASSERT_TRUE(x.valid()); + x.V.tv_usec = 1000000; + ASSERT_FALSE(x.valid()); + } +} + +//---------------------------------------------------------------------- +// test normalisation +//---------------------------------------------------------------------- + +TEST_F(timevalTest, Normalise) { + for (long ns = -2000000000; ns <= 2000000000; ns += 10000000) { + timeval_wrap x(0, ns); + + x = normalize_tval(x); + ASSERT_TRUE(x.valid()); + } +} + +//---------------------------------------------------------------------- +// test classification +//---------------------------------------------------------------------- + +TEST_F(timevalTest, SignNoFrac) { + // sign test, no fraction + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 0); + int E = (i > 0) - (i < 0); + int r = test_tval(a); + + ASSERT_EQ(E, r); + } +} + +TEST_F(timevalTest, SignWithFrac) { + // sign test, with fraction + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 10); + int E = (i >= 0) - (i < 0); + int r = test_tval(a); + + ASSERT_EQ(E, r); + } +} + +//---------------------------------------------------------------------- +// test compare +//---------------------------------------------------------------------- +TEST_F(timevalTest, CmpFracEQ) { + // fractions are equal + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timeval_wrap a(i, 200); + timeval_wrap b(j, 200); + int E = (i > j) - (i < j); + int r = cmp_tval_denorm(a, b); + + ASSERT_EQ(E, r); + } +} + +TEST_F(timevalTest, CmpFracGT) { + // fraction a bigger fraction b + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timeval_wrap a( i , 999800); + timeval_wrap b( j , 200); + int E = (i >= j) - (i < j); + int r = cmp_tval_denorm(a, b); + + ASSERT_EQ(E, r); + } +} + +TEST_F(timevalTest, CmpFracLT) { + // fraction a less fraction b + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timeval_wrap a(i, 200); + timeval_wrap b(j, 999800); + int E = (i > j) - (i <= j); + int r = cmp_tval_denorm(a, b); + + ASSERT_EQ(E, r); + } +} + +//---------------------------------------------------------------------- +// Test addition (sum) +//---------------------------------------------------------------------- + +TEST_F(timevalTest, AddFullNorm) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timeval_wrap a(i, 200); + timeval_wrap b(j, 400); + timeval_wrap E(i + j, 200 + 400); + timeval_wrap c; + + c = add_tval(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timevalTest, AddFullOflow1) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timeval_wrap a(i, 200); + timeval_wrap b(j, 999900); + timeval_wrap E(i + j + 1, 100); + timeval_wrap c; + + c = add_tval(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timevalTest, AddUsecNorm) { + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 200); + timeval_wrap E(i, 600); + timeval_wrap c; + + c = add_tval_us(a, 600 - 200); + ASSERT_EQ(E, c); + } +} + +TEST_F(timevalTest, AddUsecOflow1) { + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 200); + timeval_wrap E(i + 1, 100); + timeval_wrap c; + + c = add_tval_us(a, MICROSECONDS - 100); + ASSERT_EQ(E, c); + } +} + +//---------------------------------------------------------------------- +// test subtraction (difference) +//---------------------------------------------------------------------- + +TEST_F(timevalTest, SubFullNorm) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timeval_wrap a(i, 600); + timeval_wrap b(j, 400); + timeval_wrap E(i - j, 600 - 400); + timeval_wrap c; + + c = sub_tval(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timevalTest, SubFullOflow) { + for (int i = -4; i <= 4; ++i) + for (int j = -4; j <= 4; ++j) { + timeval_wrap a(i, 100); + timeval_wrap b(j, 999900); + timeval_wrap E(i - j - 1, 200); + timeval_wrap c; + + c = sub_tval(a, b); + ASSERT_EQ(E, c); + } +} + +TEST_F(timevalTest, SubUsecNorm) { + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 600); + timeval_wrap E(i, 200); + timeval_wrap c; + + c = sub_tval_us(a, 600 - 200); + ASSERT_EQ(E, c); + } +} + +TEST_F(timevalTest, SubUsecOflow) { + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 100); + timeval_wrap E(i - 1, 200); + timeval_wrap c; + + c = sub_tval_us(a, MICROSECONDS - 100); + ASSERT_EQ(E, c); + } +} + +//---------------------------------------------------------------------- +// test negation +//---------------------------------------------------------------------- + +TEST_F(timevalTest, Neg) { + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 100); + timeval_wrap b; + timeval_wrap c; + + b = neg_tval(a); + c = add_tval(a, b); + ASSERT_EQ(0, test_tval(c)); + } +} + +//---------------------------------------------------------------------- +// test abs value +//---------------------------------------------------------------------- + +TEST_F(timevalTest, AbsNoFrac) { + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 0); + timeval_wrap b; + + b = abs_tval(a); + ASSERT_EQ((i != 0), test_tval(b)); + } +} + +TEST_F(timevalTest, AbsWithFrac) { + for (int i = -4; i <= 4; ++i) { + timeval_wrap a(i, 100); + timeval_wrap b; + + b = abs_tval(a); + ASSERT_EQ(1, test_tval(b)); + } +} + +// --------------------------------------------------------------------- +// test support stuff -- part 2 +// --------------------------------------------------------------------- + +TEST_F(timevalTest, Helpers2) { + AssertTimevalClose isClose(0, 2); + timeval_wrap x, y; + + for (x.V.tv_sec = -2; x.V.tv_sec < 3; x.V.tv_sec++) + for (x.V.tv_usec = 1; + x.V.tv_usec < 1000000; + x.V.tv_usec += 499999) { + for (long i = -4; i < 5; i++) { + y = x; + y.V.tv_usec += i; + if (i >= -2 && i <= 2) + ASSERT_PRED_FORMAT2(isClose, x, y); + else + ASSERT_PRED_FORMAT2(!isClose, x, y); + } + } +} + +// and the global predicate instances we're using here +static AssertFpClose FpClose(0, 1); +static AssertTimevalClose TimevalClose(0, 1); + +//---------------------------------------------------------------------- +// conversion to l_fp +//---------------------------------------------------------------------- + +TEST_F(timevalTest, ToLFPbittest) { + for (u_int32 i = 0; i < 1000000; i++) { + timeval_wrap a(1, i); + l_fp_wrap E(1, my_tick_to_tsf(i)); + l_fp_wrap r; + + r = tval_intv_to_lfp(a); + ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +TEST_F(timevalTest, ToLFPrelPos) { + for (int i = 0; i < COUNTOF(fdata); i++) { + timeval_wrap a(1, fdata[i].usec); + l_fp_wrap E(1, fdata[i].frac); + l_fp_wrap r; + + r = tval_intv_to_lfp(a); + ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +TEST_F(timevalTest, ToLFPrelNeg) { + for (int i = 0; i < COUNTOF(fdata); i++) { + timeval_wrap a(-1, fdata[i].usec); + l_fp_wrap E(~0, fdata[i].frac); + l_fp_wrap r; + + r = tval_intv_to_lfp(a); + ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +TEST_F(timevalTest, ToLFPabs) { + for (int i = 0; i < COUNTOF(fdata); i++) { + timeval_wrap a(1, fdata[i].usec); + l_fp_wrap E(1 + JAN_1970, fdata[i].frac); + l_fp_wrap r; + + r = tval_stamp_to_lfp(a); + ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +//---------------------------------------------------------------------- +// conversion from l_fp +//---------------------------------------------------------------------- + +TEST_F(timevalTest, FromLFPbittest) { + // 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. + for (u_int32 tsf = 0; tsf < ~u_int32(1000); tsf += 1000) { + timeval_wrap E(1, my_tsf_to_tick(tsf)); + l_fp_wrap a(1, tsf); + timeval_wrap r; + + r = lfp_intv_to_tval(a); + // The conversion might be off by one microsecond when + // comparing to calculated value. + ASSERT_PRED_FORMAT2(TimevalClose, E, r); + } +} + +TEST_F(timevalTest, FromLFPrelPos) { + for (int i = 0; i < COUNTOF(fdata); i++) { + l_fp_wrap a(1, fdata[i].frac); + timeval_wrap E(1, fdata[i].usec); + timeval_wrap r; + + r = lfp_intv_to_tval(a); + ASSERT_PRED_FORMAT2(TimevalClose, E, r); + } +} + +TEST_F(timevalTest, FromLFPrelNeg) { + for (int i = 0; i < COUNTOF(fdata); i++) { + l_fp_wrap a(~0, fdata[i].frac); + timeval_wrap E(-1, fdata[i].usec); + timeval_wrap r; + + r = lfp_intv_to_tval(a); + ASSERT_PRED_FORMAT2(TimevalClose, E, r); + } +} + +// usec -> frac -> usec roundtrip, using a prime start and increment +TEST_F(timevalTest, LFProundtrip) { + for (int32_t t = -1; t < 2; ++t) + for (u_int32 i = 5; i < 1000000; i+=11) { + timeval_wrap E(t, i); + l_fp_wrap a; + timeval_wrap r; + + a = tval_intv_to_lfp(E); + r = lfp_intv_to_tval(a); + ASSERT_EQ(E, r); + } +} + +//---------------------------------------------------------------------- +// string formatting +//---------------------------------------------------------------------- + +TEST_F(timevalTest, ToString) { + 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" }, + }; + for (int i = 0; i < COUNTOF(data); ++i) { + timeval_wrap a(data[i].sec, data[i].usec); + std::string E(data[i].repr); + std::string r(tvaltoa(a)); + + ASSERT_EQ(E, r); + } +} + +// -*- EOF -*- diff --git a/contrib/ntp/tests/libntp/g_tstotv.cpp b/contrib/ntp/tests/libntp/g_tstotv.cpp new file mode 100644 index 0000000..30f4ca6 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_tstotv.cpp @@ -0,0 +1,57 @@ +#include "g_libntptest.h" + +extern "C" { +#include "ntp_fp.h" +#include "timevalops.h" +}; + +class tstotvTest : public libntptest { +protected: + ::testing::AssertionResult IsEqual(const timeval& expected, + const timeval& actual) { + if (expected.tv_sec == actual.tv_sec && + expected.tv_usec == actual.tv_usec) { + // Success + return ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "expected: " << expected.tv_sec << "." + << expected.tv_usec + << " but was: " << actual.tv_sec << "." + << actual.tv_usec; + } + } + + static const u_long HALF = 2147483648UL; +}; + +TEST_F(tstotvTest, Seconds) { + const l_fp input = {50, 0}; // 50.0 s + const timeval expected = {50, 0}; + timeval actual; + + TSTOTV(&input, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(tstotvTest, MicrosecondsExact) { + const l_fp input = {50, HALF}; // 10.5 s + const timeval expected = {50, 500000}; + timeval actual; + + TSTOTV(&input, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); + +} + +TEST_F(tstotvTest, MicrosecondsRounding) { + const l_fp input = {50, 3865471UL}; // Should round to 50.0009 + const timeval expected = {50, 900}; + timeval actual; + + TSTOTV(&input, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); +} diff --git a/contrib/ntp/tests/libntp/g_tvtots.cpp b/contrib/ntp/tests/libntp/g_tvtots.cpp new file mode 100644 index 0000000..fcb82a3 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_tvtots.cpp @@ -0,0 +1,54 @@ +#include "g_lfptest.h" + +extern "C" { +#include "timevalops.h" +}; + +// Required on Solaris for ldexp. +#include + +class tvtotsTest : public lfptest { +}; + +TEST_F(tvtotsTest, Seconds) { + timeval input = {500, 0}; // 500.0 s + l_fp expected = {500, 0}; + l_fp actual; + + TVTOTS(&input, &actual); + + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(tvtotsTest, MicrosecondsRounded) { + /* 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. */ + + timeval input = {0, 500}; // 0.0005 exact + l_fp expected = {0, HALF_PROMILLE_UP}; + l_fp actual; + + TVTOTS(&input, &actual); + EXPECT_TRUE(IsEqual(expected, actual)); +} + +TEST_F(tvtotsTest, MicrosecondsExact) { + // 0.5 can be represented exact in both l_fp and timeval. + const 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. + EXPECT_EQ(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 + EXPECT_NEAR(expectedDouble, actualDouble, 0.0000005); +} diff --git a/contrib/ntp/tests/libntp/g_uglydate.cpp b/contrib/ntp/tests/libntp/g_uglydate.cpp new file mode 100644 index 0000000..12aa002 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_uglydate.cpp @@ -0,0 +1,18 @@ +#include "g_libntptest.h" + +extern "C" { +#include "ntp_fp.h" +}; + +class uglydateTest : public libntptest { +protected: + static const u_int32 HALF = 2147483648UL; +}; + +TEST_F(uglydateTest, ConstantDateTime) { + l_fp time = {3485080800UL, HALF}; // 2010-06-09 14:00:00.5 + + EXPECT_STREQ("3485080800.500000 10:159:14:00:00.500", + uglydate(&time)); +} + diff --git a/contrib/ntp/tests/libntp/g_vi64ops.cpp b/contrib/ntp/tests/libntp/g_vi64ops.cpp new file mode 100644 index 0000000..29f7932 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_vi64ops.cpp @@ -0,0 +1,64 @@ +#include "g_libntptest.h" + +extern "C" { +#include "vint64ops.h" +} + +class vi64Test : public libntptest { +public: + ::testing::AssertionResult IsEqual(const vint64 &expected, const vint64 &actual) { + if (0 == memcmp(&expected, &actual, sizeof(vint64))) { + return ::testing::AssertionSuccess(); + } else { + return ::testing::AssertionFailure() + << "expected: " + << std::hex << expected.D_s.hi << '.' + << std::hex << expected.D_s.lo + << " but was " + << std::hex << actual.D_s.hi << '.' + << std::hex << actual.D_s.lo; + } + } +}; + +// ---------------------------------------------------------------------- +// test number parser +TEST_F(vi64Test, ParseVUI64_pos) { + 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); + EXPECT_TRUE(IsEqual(exp, act)); + EXPECT_EQ(*ep, 'x'); +} + +TEST_F(vi64Test, ParseVUI64_neg) { + 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); + EXPECT_TRUE(IsEqual(exp, act)); + EXPECT_EQ(*ep, 'x'); +} + +TEST_F(vi64Test, ParseVUI64_case) { + 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); + EXPECT_TRUE(IsEqual(exp, act)); + EXPECT_EQ(*ep, '\0'); +} + diff --git a/contrib/ntp/tests/libntp/g_ymd2yd.cpp b/contrib/ntp/tests/libntp/g_ymd2yd.cpp new file mode 100644 index 0000000..7e25999 --- /dev/null +++ b/contrib/ntp/tests/libntp/g_ymd2yd.cpp @@ -0,0 +1,23 @@ +#include "g_libntptest.h" + +class ymd2ydTest : public libntptest { +}; + +TEST_F(ymd2ydTest, NonLeapYearFebruary) { + EXPECT_EQ(31+20, ymd2yd(2010,2,20)); //2010-02-20 +} + +TEST_F(ymd2ydTest, NonLeapYearJune) { + int expected = 31+28+31+30+31+18; // 18 June non-leap year + EXPECT_EQ(expected, ymd2yd(2011,6,18)); +} + +TEST_F(ymd2ydTest, LeapYearFebruary) { + EXPECT_EQ(31+20, ymd2yd(2012,2,20)); //2012-02-20 (leap year) +} + +TEST_F(ymd2ydTest, LeapYearDecember) { + // 2012-12-31 + int expected = 31+29+31+30+31+30+31+31+30+31+30+31; + EXPECT_EQ(expected, ymd2yd(2012,12,31)); +} diff --git a/contrib/ntp/tests/libntp/hextoint.c b/contrib/ntp/tests/libntp/hextoint.c new file mode 100644 index 0000000..e9f0d39 --- /dev/null +++ b/contrib/ntp/tests/libntp/hextoint.c @@ -0,0 +1,47 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "ntp_fp.h" + +#include "unity.h" + + +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 new file mode 100644 index 0000000..a2f548f --- /dev/null +++ b/contrib/ntp/tests/libntp/hextolfp.c @@ -0,0 +1,63 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" + +#include "unity.h" +#include "lfptest.h" + + +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 new file mode 100644 index 0000000..071fa41 --- /dev/null +++ b/contrib/ntp/tests/libntp/humandate.c @@ -0,0 +1,36 @@ +#include "config.h" + +#include "ntp_calendar.h" +#include "ntp_stdlib.h" + +#include "unity.h" + +void test_RegularTime(void) +{ + time_t sample = 1276601278; + char expected[15]; + + struct tm* time; + time = localtime(&sample); + TEST_ASSERT_TRUE(time != NULL); + + snprintf(expected, 15, "%02d:%02d:%02d", time->tm_hour, time->tm_min, time->tm_sec); + + TEST_ASSERT_EQUAL_STRING(expected, humantime(sample)); +} + +void test_CurrentTime(void) +{ + time_t sample; + char expected[15]; + + time(&sample); + + struct tm* time; + time = localtime(&sample); + TEST_ASSERT_TRUE(time != NULL); + + snprintf(expected, 15, "%02d:%02d:%02d", time->tm_hour, time->tm_min, time->tm_sec); + + TEST_ASSERT_EQUAL_STRING(expected, humantime(sample)); +} diff --git a/contrib/ntp/tests/libntp/lfpfunc.c b/contrib/ntp/tests/libntp/lfpfunc.c new file mode 100644 index 0000000..188478d --- /dev/null +++ b/contrib/ntp/tests/libntp/lfpfunc.c @@ -0,0 +1,561 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "ntp_fp.h" + +#include "unity.h" + +#include +#include + + +//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; + + +static int cmp_work(u_int32 a[3], u_int32 b[3]); + +/* +//---------------------------------------------------------------------- +// OO-wrapper for 'l_fp' +//---------------------------------------------------------------------- + + + ~LFP(); + LFP(); + LFP(const LFP& rhs); + LFP(int32 i, u_int32 f); + + LFP operator+ (const LFP &rhs) const; + LFP& operator+=(const LFP &rhs); + + LFP operator- (const LFP &rhs) const; + LFP& operator-=(const LFP &rhs); + + LFP& operator=(const LFP &rhs); + LFP operator-() const; + + bool operator==(const LFP &rhs) const; + + LFP neg() const; + LFP abs() const; + int signum() const; + + + + int ucmp(const LFP & rhs) const; + int scmp(const LFP & rhs) const; + + std::string toString() const; + std::ostream& toStream(std::ostream &oo) const; + + operator double() const; + explicit LFP(double); + + + LFP(const l_fp &rhs); + + static int cmp_work(u_int32 a[3], u_int32 b[3]); + + l_fp _v; + + +static std::ostream& operator<<(std::ostream &oo, const LFP& rhs) +{ + return rhs.toStream(oo); +} +*/ +//---------------------------------------------------------------------- +// 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; + //const l_fp &op1(_v), &op2(rhs._v); + + 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; + temp = first; + L_ADD(&temp, &second); + return temp; +} + +l_fp l_fp_subtract(const l_fp first, const l_fp second) +{ + l_fp temp; + temp = first; + L_SUB(&temp, &second); + + return temp; +} + +l_fp l_fp_negate(const l_fp first) +{ + l_fp temp; + temp = first; //is this line really necessary? + 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; + +} + + +/* +LFP::LFP() +{ + _v.l_ui = 0; + _v.l_uf = 0; +} + + + +std::string +LFP::toString() const +{ + std::ostringstream oss; + toStream(oss); + return oss.str(); +} + +std::ostream& +LFP::toStream(std::ostream &os) const +{ + return os + << mfptoa(_v.l_ui, _v.l_uf, 9) + << " [$" << std::setw(8) << std::setfill('0') << std::hex << _v.l_ui + << ':' << std::setw(8) << std::setfill('0') << std::hex << _v.l_uf + << ']'; +} + +bool LFP::operator==(const LFP &rhs) const +{ + return L_ISEQU(&_v, &rhs._v); +} + + + +*/ + +//---------------------------------------------------------------------- +// testing the relational macros works better with proper predicate +// formatting functions; it slows down the tests a bit, but makes for +// readable failure messages. +//---------------------------------------------------------------------- + + +typedef int bool; //typedef enum { FALSE, TRUE } boolean; -> can't use this because TRUE and FALSE are already defined + + +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)); //max +} + + + +//---------------------------------------------------------------------- +// test addition +//---------------------------------------------------------------------- +void test_AdditionLR() { + + 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); + //LFP op1(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); + //LFP exp(addsub_tab[idx][2].h, addsub_tab[idx][2].l); + l_fp exp = l_fp_init(addsub_tab[idx][2].h, addsub_tab[idx][2].l); + //LFP res(op1 + op2); + l_fp res = l_fp_add(op1,op2); + + TEST_ASSERT_EQUAL_l_fp(exp,res); + //TEST_ASSERT_EQUAL_MEMORY(&exp, &res,sizeof(exp)); + } +} + +void test_AdditionRL() { + + 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 exp = 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(exp,res); + //TEST_ASSERT_EQUAL_MEMORY(&exp, &res,sizeof(exp)); + } +} + + + +//---------------------------------------------------------------------- +// test subtraction +//---------------------------------------------------------------------- +void test_SubtractionLR() { + + 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 exp = 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); + //LFP res(op1 - op2); + + TEST_ASSERT_EQUAL_l_fp(exp,res); + //TEST_ASSERT_EQUAL_MEMORY(&exp, &res,sizeof(exp)); + } +} + +void test_SubtractionRL() { + + size_t idx=0; + for (idx=0; idx < addsub_cnt; ++idx) { + l_fp exp = 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(exp,res); + //TEST_ASSERT_EQUAL_MEMORY(&exp, &res,sizeof(exp)); + } +} + +//---------------------------------------------------------------------- +// test negation +//---------------------------------------------------------------------- + +void test_Negation() { + + 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); + //TEST_ASSERT_EQUAL_MEMORY(&zero, &sum,sizeof(sum)); + + } +} + + + +//---------------------------------------------------------------------- +// test absolute value +//---------------------------------------------------------------------- +void test_Absolute() { + 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); //op1 -= op2; + + else + op1 = l_fp_add(op1,op2); + + l_fp zero = l_fp_init(0,0); + + TEST_ASSERT_EQUAL_l_fp(zero,op1); + //TEST_ASSERT_EQUAL_MEMORY(&zero, &op1,sizeof(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); + //TEST_ASSERT_EQUAL_MEMORY(&minVal, &minAbs,sizeof(minAbs)); +} + + +//---------------------------------------------------------------------- +// fp -> double -> fp rountrip test +//---------------------------------------------------------------------- +void test_FDF_RoundTrip() { + // 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. + 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); + double op2 = l_fp_convert_to_double(op1); + l_fp op3 = l_fp_init_from_double(op2); + + // for manual checks only: + // std::cout << std::setprecision(16) << op2 << std::endl; + + 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)); //delta,epected,actual + + //ASSERT_LE(fabs(op1-op3), eps(op2)); //unity has no equivalent of LE!!! + //you could use TEST_ASSERT_TRUE(IsLE(fabs(op1-op3), eps(op2))); + } +} + + +//---------------------------------------------------------------------- +// 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() { + //const lfp_hl * tv(&addsub_tab[0][0]); + 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(op1.scmp(op2)); + 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); + //std::swap(op1, op2); + 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: " ); + //TEST_ASSERT_FAIL() << "unexpected SCMP result: " << cmp; + } + } +} + +void test_UnsignedRelOps() { + 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: " ); + //FAIL() << "unexpected UCMP result: " << cmp; + } + } +} +/* +*/ + +//---------------------------------------------------------------------- +// that's all folks... but feel free to add things! +//---------------------------------------------------------------------- diff --git a/contrib/ntp/tests/libntp/lfptest.h b/contrib/ntp/tests/libntp/lfptest.h new file mode 100644 index 0000000..7949821 --- /dev/null +++ b/contrib/ntp/tests/libntp/lfptest.h @@ -0,0 +1,30 @@ +#ifndef NTP_TESTS_LFPTEST_H +#define NTP_TESTS_LFPTEST_H + +#include "ntp_fp.h" + +int IsEqual(const l_fp expected, const l_fp actual) { + if (L_ISEQU(&expected, &actual)) { + return TRUE; + } else { + //printf(" expected: ..."); + /* + << " expected: " << lfptoa(&expected, FRACTION_PREC) + << " (" << expected.l_ui << "." << expected.l_uf << ")" + << " but was: " << lfptoa(&actual, FRACTION_PREC) + << " (" << actual.l_ui << "." << actual.l_uf << ")"; + */ + return FALSE; + } + +} + +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; + +#endif + + diff --git a/contrib/ntp/tests/libntp/lfptostr.c b/contrib/ntp/tests/libntp/lfptostr.c new file mode 100644 index 0000000..c76e07f --- /dev/null +++ b/contrib/ntp/tests/libntp/lfptostr.c @@ -0,0 +1,103 @@ +/* + * 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_calendar.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 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 new file mode 100644 index 0000000..19a76d5 --- /dev/null +++ b/contrib/ntp/tests/libntp/modetoa.c @@ -0,0 +1,20 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" + +#include "unity.h" + + +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)); +// EXPECT_STREQ("mode#100", modetoa(MODE)); +} diff --git a/contrib/ntp/tests/libntp/msyslog.c b/contrib/ntp/tests/libntp/msyslog.c new file mode 100644 index 0000000..23ec401 --- /dev/null +++ b/contrib/ntp/tests/libntp/msyslog.c @@ -0,0 +1,136 @@ +#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 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 new file mode 100644 index 0000000..010b164 --- /dev/null +++ b/contrib/ntp/tests/libntp/netof.c @@ -0,0 +1,74 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" + +#include "unity.h" + +#include "sockaddrtest.h" + +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)); +} + +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)); +} + +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)); +} + +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)); +} + diff --git a/contrib/ntp/tests/libntp/numtoa.c b/contrib/ntp/tests/libntp/numtoa.c new file mode 100644 index 0000000..1d01c78 --- /dev/null +++ b/contrib/ntp/tests/libntp/numtoa.c @@ -0,0 +1,31 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "ntp_fp.h" + +#include "unity.h" + + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_Address(void) { + 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 + u_int32 hostOrder = 255UL*256UL*256UL*256UL + 255UL*256UL*256UL + 255UL*256UL; + 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 new file mode 100644 index 0000000..7472f46 --- /dev/null +++ b/contrib/ntp/tests/libntp/numtohost.c @@ -0,0 +1,19 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "ntp_fp.h" + +#include "unity.h" + +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 + */ + + 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 new file mode 100644 index 0000000..4b0f94c --- /dev/null +++ b/contrib/ntp/tests/libntp/octtoint.c @@ -0,0 +1,64 @@ +#include "config.h" + +#include "ntp_stdlib.h" + +#include "unity.h" + +void test_SingleDigit(void) { + const char* str = "5"; + u_long actual; + + TEST_ASSERT_TRUE(octtoint(str, &actual) ); + TEST_ASSERT_EQUAL(5, actual); +} + +void test_MultipleDigits(void){ + const char* str = "271"; + u_long actual; + + TEST_ASSERT_TRUE(octtoint(str, &actual) ); + TEST_ASSERT_EQUAL(185, actual); + +} + +void test_Zero(void){ + const char* str = "0"; + u_long actual; + + TEST_ASSERT_TRUE(octtoint(str, &actual) ); + TEST_ASSERT_EQUAL(0, actual); + +} + +void test_MaximumUnsigned32bit(void){ + const char* str = "37777777777"; + u_long actual; + + TEST_ASSERT_TRUE(octtoint(str, &actual) ); + TEST_ASSERT_EQUAL(4294967295UL, actual); + +} + +void test_Overflow(void){ + const char* str = "40000000000"; + u_long actual; + + TEST_ASSERT_FALSE(octtoint(str, &actual) ); + +} + +void test_IllegalCharacter(void){ + const char* str = "5ac2"; + u_long actual; + + TEST_ASSERT_FALSE(octtoint(str, &actual) ); + +} + +void test_IllegalDigit(void){ + const char* str = "5283"; + u_long actual; + + TEST_ASSERT_FALSE(octtoint(str, &actual) ); + +} diff --git a/contrib/ntp/tests/libntp/prettydate.c b/contrib/ntp/tests/libntp/prettydate.c new file mode 100644 index 0000000..9a331e8 --- /dev/null +++ b/contrib/ntp/tests/libntp/prettydate.c @@ -0,0 +1,17 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "ntp_fp.h" + +#include "unity.h" + +void +test_ConstantDate(void) { + const u_int32 HALF = 2147483648UL; + + l_fp 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(&time)); +} diff --git a/contrib/ntp/tests/libntp/recvbuff.c b/contrib/ntp/tests/libntp/recvbuff.c new file mode 100644 index 0000000..e9c14da --- /dev/null +++ b/contrib/ntp/tests/libntp/recvbuff.c @@ -0,0 +1,42 @@ +#include "config.h" + +#include "recvbuff.h" + +#include "unity.h" + + +void +setUp(void) +{ + init_recvbuff(RECV_INIT); +} + +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 new file mode 100644 index 0000000..5e9d27c --- /dev/null +++ b/contrib/ntp/tests/libntp/refidsmear.c @@ -0,0 +1,141 @@ +#include "config.h" + +#include +#include +#include + +//#include "ntp_stdlib.h" +//#include "ntp_calendar.h" + +#include "unity.h" + +#include + +/* + * 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 rtol(uint32_t r, char *es); + +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); + +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); + +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 new file mode 100644 index 0000000..8a37690 --- /dev/null +++ b/contrib/ntp/tests/libntp/refnumtoa.c @@ -0,0 +1,64 @@ +#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 test_LocalClock() { +#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() { +#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 new file mode 100644 index 0000000..1c46e3f --- /dev/null +++ b/contrib/ntp/tests/libntp/run-a_md5encrypt.c @@ -0,0 +1,59 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_Encrypt(); +extern void test_DecryptValid(); +extern void test_DecryptInvalid(); +extern void test_IPv4AddressToRefId(); +extern void test_IPv6AddressToRefId(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "a_md5encrypt.c"; + UnityBegin("a_md5encrypt.c"); + RUN_TEST(test_Encrypt, 36); + RUN_TEST(test_DecryptValid, 54); + RUN_TEST(test_DecryptInvalid, 60); + RUN_TEST(test_IPv4AddressToRefId, 68); + RUN_TEST(test_IPv6AddressToRefId, 79); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-atoint.c b/contrib/ntp/tests/libntp/run-atoint.c new file mode 100644 index 0000000..2764c9a --- /dev/null +++ b/contrib/ntp/tests/libntp/run-atoint.c @@ -0,0 +1,61 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "atoint.c"; + UnityBegin("atoint.c"); + RUN_TEST(test_RegularPositive, 7); + RUN_TEST(test_RegularNegative, 15); + RUN_TEST(test_PositiveOverflowBoundary, 23); + RUN_TEST(test_NegativeOverflowBoundary, 30); + RUN_TEST(test_PositiveOverflowBig, 37); + RUN_TEST(test_IllegalCharacter, 44); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-atouint.c b/contrib/ntp/tests/libntp/run-atouint.c new file mode 100644 index 0000000..7adb084 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-atouint.c @@ -0,0 +1,59 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_RegularPositive(); +extern void test_PositiveOverflowBoundary(); +extern void test_PositiveOverflowBig(); +extern void test_Negative(); +extern void test_IllegalChar(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "atouint.c"; + UnityBegin("atouint.c"); + RUN_TEST(test_RegularPositive, 9); + RUN_TEST(test_PositiveOverflowBoundary, 17); + RUN_TEST(test_PositiveOverflowBig, 24); + RUN_TEST(test_Negative, 31); + RUN_TEST(test_IllegalChar, 38); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-authkeys.c b/contrib/ntp/tests/libntp/run-authkeys.c new file mode 100644 index 0000000..5e65cc9 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-authkeys.c @@ -0,0 +1,61 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_AddTrustedKeys(); +extern void test_AddUntrustedKey(); +extern void test_HaveKeyCorrect(); +extern void test_HaveKeyIncorrect(); +extern void test_AddWithAuthUseKey(); +extern void test_EmptyKey(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "authkeys.c"; + UnityBegin("authkeys.c"); + RUN_TEST(test_AddTrustedKeys, 71); + RUN_TEST(test_AddUntrustedKey, 82); + RUN_TEST(test_HaveKeyCorrect, 90); + RUN_TEST(test_HaveKeyIncorrect, 99); + RUN_TEST(test_AddWithAuthUseKey, 106); + RUN_TEST(test_EmptyKey, 113); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-buftvtots.c b/contrib/ntp/tests/libntp/run-buftvtots.c new file mode 100644 index 0000000..c54c339 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-buftvtots.c @@ -0,0 +1,57 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_ZeroBuffer(); +extern void test_IntegerAndFractionalBuffer(); +extern void test_IllegalMicroseconds(); +extern void test_AlwaysFalseOnWindows(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "buftvtots.c"; + UnityBegin("buftvtots.c"); + RUN_TEST(test_ZeroBuffer, 16); + RUN_TEST(test_IntegerAndFractionalBuffer, 30); + RUN_TEST(test_IllegalMicroseconds, 53); + RUN_TEST(test_AlwaysFalseOnWindows, 66); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-calendar.c b/contrib/ntp/tests/libntp/run-calendar.c new file mode 100644 index 0000000..07a5092 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-calendar.c @@ -0,0 +1,71 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_DaySplitMerge(); +extern void test_SplitYearDays1(); +extern void test_SplitYearDays2(); +extern void test_RataDie1(); +extern void test_LeapYears1(); +extern void test_LeapYears2(); +extern void test_RoundTripDate(); +extern void test_RoundTripYearStart(); +extern void test_RoundTripMonthStart(); +extern void test_RoundTripWeekStart(); +extern void test_RoundTripDayStart(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "calendar.c"; + UnityBegin("calendar.c"); + RUN_TEST(test_DaySplitMerge, 230); + RUN_TEST(test_SplitYearDays1, 254); + RUN_TEST(test_SplitYearDays2, 268); + RUN_TEST(test_RataDie1, 283); + RUN_TEST(test_LeapYears1, 293); + RUN_TEST(test_LeapYears2, 308); + RUN_TEST(test_RoundTripDate, 326); + RUN_TEST(test_RoundTripYearStart, 355); + RUN_TEST(test_RoundTripMonthStart, 371); + RUN_TEST(test_RoundTripWeekStart, 387); + RUN_TEST(test_RoundTripDayStart, 403); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-caljulian.c b/contrib/ntp/tests/libntp/run-caljulian.c new file mode 100644 index 0000000..b4e3f48 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-caljulian.c @@ -0,0 +1,58 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(void); +extern void test_RegularTime(); +extern void test_LeapYear(); +extern void test_uLongBoundary(); +extern void test_uLongWrapped(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "caljulian.c"; + UnityBegin("caljulian.c"); + RUN_TEST(test_RegularTime, 74); + RUN_TEST(test_LeapYear, 85); + RUN_TEST(test_uLongBoundary, 96); + RUN_TEST(test_uLongWrapped, 107); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-caltontp.c b/contrib/ntp/tests/libntp/run-caltontp.c new file mode 100644 index 0000000..b7b6626 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-caltontp.c @@ -0,0 +1,57 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "caltontp.c"; + UnityBegin("caltontp.c"); + RUN_TEST(test_DateGivenMonthDay, 6); + RUN_TEST(test_DateGivenYearDay, 16); + RUN_TEST(test_DateLeapYear, 27); + RUN_TEST(test_WraparoundDateIn2036, 40); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-calyearstart.c b/contrib/ntp/tests/libntp/run-calyearstart.c new file mode 100644 index 0000000..d54a0b5 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-calyearstart.c @@ -0,0 +1,55 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_NoWrapInDateRange(); +extern void test_NoWrapInDateRangeLeapYear(); +extern void test_WrapInDateRange(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "calyearstart.c"; + UnityBegin("calyearstart.c"); + RUN_TEST(test_NoWrapInDateRange, 22); + RUN_TEST(test_NoWrapInDateRangeLeapYear, 30); + RUN_TEST(test_WrapInDateRange, 38); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-clocktime.c b/contrib/ntp/tests/libntp/run-clocktime.c new file mode 100644 index 0000000..f21de83 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-clocktime.c @@ -0,0 +1,65 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_CurrentYear(); +extern void test_CurrentYearFuzz(); +extern void test_TimeZoneOffset(); +extern void test_WrongYearStart(); +extern void test_PreviousYear(); +extern void test_NextYear(); +extern void test_NoReasonableConversion(); +extern void test_AlwaysInLimit(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "clocktime.c"; + UnityBegin("clocktime.c"); + RUN_TEST(test_CurrentYear, 32); + RUN_TEST(test_CurrentYearFuzz, 47); + RUN_TEST(test_TimeZoneOffset, 69); + RUN_TEST(test_WrongYearStart, 89); + RUN_TEST(test_PreviousYear, 108); + RUN_TEST(test_NextYear, 127); + RUN_TEST(test_NoReasonableConversion, 145); + RUN_TEST(test_AlwaysInLimit, 167); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-decodenetnum.c b/contrib/ntp/tests/libntp/run-decodenetnum.c new file mode 100644 index 0000000..2e0a7e5 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-decodenetnum.c @@ -0,0 +1,62 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "decodenetnum.c"; + UnityBegin("decodenetnum.c"); + RUN_TEST(test_IPv4AddressOnly, 9); + RUN_TEST(test_IPv4AddressWithPort, 22); + RUN_TEST(test_IPv6AddressOnly, 35); + RUN_TEST(test_IPv6AddressWithPort, 55); + RUN_TEST(test_IllegalAddress, 75); + RUN_TEST(test_IllegalCharInPort, 82); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-hextoint.c b/contrib/ntp/tests/libntp/run-hextoint.c new file mode 100644 index 0000000..a697921 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-hextoint.c @@ -0,0 +1,59 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "hextoint.c"; + UnityBegin("hextoint.c"); + RUN_TEST(test_SingleDigit, 10); + RUN_TEST(test_MultipleDigits, 18); + RUN_TEST(test_MaxUnsigned, 26); + RUN_TEST(test_Overflow, 34); + RUN_TEST(test_IllegalChar, 41); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-hextolfp.c b/contrib/ntp/tests/libntp/run-hextolfp.c new file mode 100644 index 0000000..0ef9f63 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-hextolfp.c @@ -0,0 +1,62 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "hextolfp.c"; + UnityBegin("hextolfp.c"); + RUN_TEST(test_PositiveInteger, 10); + RUN_TEST(test_NegativeInteger, 20); + RUN_TEST(test_PositiveFraction, 30); + RUN_TEST(test_NegativeFraction, 40); + RUN_TEST(test_IllegalNumberOfInteger, 50); + RUN_TEST(test_IllegalChar, 57); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-humandate.c b/contrib/ntp/tests/libntp/run-humandate.c new file mode 100644 index 0000000..291415f --- /dev/null +++ b/contrib/ntp/tests/libntp/run-humandate.c @@ -0,0 +1,53 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "humandate.c"; + UnityBegin("humandate.c"); + RUN_TEST(test_RegularTime, 8); + RUN_TEST(test_CurrentTime, 22); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-lfpfunc.c b/contrib/ntp/tests/libntp/run-lfpfunc.c new file mode 100644 index 0000000..2f0e1c2 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-lfpfunc.c @@ -0,0 +1,68 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(void); +extern void test_AdditionLR(); +extern void test_AdditionRL(); +extern void test_SubtractionLR(); +extern void test_SubtractionRL(); +extern void test_Negation(); +extern void test_Absolute(); +extern void test_FDF_RoundTrip(); +extern void test_SignedRelOps(); +extern void test_UnsignedRelOps(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "lfpfunc.c"; + UnityBegin("lfpfunc.c"); + RUN_TEST(test_AdditionLR, 320); + RUN_TEST(test_AdditionRL, 339); + RUN_TEST(test_SubtractionLR, 358); + RUN_TEST(test_SubtractionRL, 373); + RUN_TEST(test_Negation, 391); + RUN_TEST(test_Absolute, 412); + RUN_TEST(test_FDF_RoundTrip, 447); + RUN_TEST(test_SignedRelOps, 479); + RUN_TEST(test_UnsignedRelOps, 522); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-lfptostr.c b/contrib/ntp/tests/libntp/run-lfptostr.c new file mode 100644 index 0000000..7e54a4f --- /dev/null +++ b/contrib/ntp/tests/libntp/run-lfptostr.c @@ -0,0 +1,71 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "lfptostr.c"; + UnityBegin("lfptostr.c"); + RUN_TEST(test_PositiveInteger, 23); + RUN_TEST(test_NegativeInteger, 30); + RUN_TEST(test_PositiveIntegerWithFraction, 37); + RUN_TEST(test_NegativeIntegerWithFraction, 44); + RUN_TEST(test_RoundingDownToInteger, 51); + RUN_TEST(test_RoundingMiddleToInteger, 58); + RUN_TEST(test_RoundingUpToInteger, 65); + RUN_TEST(test_SingleDecimal, 72); + RUN_TEST(test_MillisecondsRoundingUp, 79); + RUN_TEST(test_MillisecondsRoundingDown, 88); + RUN_TEST(test_UnsignedInteger, 97); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-modetoa.c b/contrib/ntp/tests/libntp/run-modetoa.c new file mode 100644 index 0000000..334e08d --- /dev/null +++ b/contrib/ntp/tests/libntp/run-modetoa.c @@ -0,0 +1,53 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "modetoa.c"; + UnityBegin("modetoa.c"); + RUN_TEST(test_KnownMode, 9); + RUN_TEST(test_UnknownMode, 15); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-msyslog.c b/contrib/ntp/tests/libntp/run-msyslog.c new file mode 100644 index 0000000..ea566a7 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-msyslog.c @@ -0,0 +1,66 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "msyslog.c"; + UnityBegin("msyslog.c"); + RUN_TEST(test_msnprintf, 14); + RUN_TEST(test_msnprintfLiteralPercentm, 30); + RUN_TEST(test_msnprintfBackslashLiteralPercentm, 45); + RUN_TEST(test_msnprintfBackslashPercent, 59); + RUN_TEST(test_msnprintfHangingPercent, 74); + RUN_TEST(test_format_errmsgHangingPercent, 91); + RUN_TEST(test_msnprintfNullTarget, 106); + RUN_TEST(test_msnprintfTruncate, 117); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-netof.c b/contrib/ntp/tests/libntp/run-netof.c new file mode 100644 index 0000000..401192d --- /dev/null +++ b/contrib/ntp/tests/libntp/run-netof.c @@ -0,0 +1,58 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "netof.c"; + UnityBegin("netof.c"); + RUN_TEST(test_ClassBAddress, 10); + RUN_TEST(test_ClassCAddress, 20); + RUN_TEST(test_ClassAAddress, 30); + RUN_TEST(test_IPv6Address, 43); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-numtoa.c b/contrib/ntp/tests/libntp/run-numtoa.c new file mode 100644 index 0000000..5468b72 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-numtoa.c @@ -0,0 +1,53 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "numtoa.c"; + UnityBegin("numtoa.c"); + RUN_TEST(test_Address, 18); + RUN_TEST(test_Netmask, 24); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-numtohost.c b/contrib/ntp/tests/libntp/run-numtohost.c new file mode 100644 index 0000000..3ec4fdf --- /dev/null +++ b/contrib/ntp/tests/libntp/run-numtohost.c @@ -0,0 +1,51 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_LoopbackNetNonResolve(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "numtohost.c"; + 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 new file mode 100644 index 0000000..dc2bed5 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-octtoint.c @@ -0,0 +1,63 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "octtoint.c"; + UnityBegin("octtoint.c"); + RUN_TEST(test_SingleDigit, 7); + RUN_TEST(test_MultipleDigits, 15); + RUN_TEST(test_Zero, 24); + RUN_TEST(test_MaximumUnsigned32bit, 33); + RUN_TEST(test_Overflow, 42); + RUN_TEST(test_IllegalCharacter, 50); + RUN_TEST(test_IllegalDigit, 58); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-prettydate.c b/contrib/ntp/tests/libntp/run-prettydate.c new file mode 100644 index 0000000..2067b13 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-prettydate.c @@ -0,0 +1,51 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_ConstantDate(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "prettydate.c"; + 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 new file mode 100644 index 0000000..8060105 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-recvbuff.c @@ -0,0 +1,55 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "recvbuff.c"; + UnityBegin("recvbuff.c"); + RUN_TEST(test_Initialization, 15); + RUN_TEST(test_GetAndFree, 23); + RUN_TEST(test_GetAndFill, 34); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-refidsmear.c b/contrib/ntp/tests/libntp/run-refidsmear.c new file mode 100644 index 0000000..30651f3 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-refidsmear.c @@ -0,0 +1,52 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(void); +extern void test_refidsmear(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "refidsmear.c"; + UnityBegin("refidsmear.c"); + RUN_TEST(test_refidsmear, 100); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-refnumtoa.c b/contrib/ntp/tests/libntp/run-refnumtoa.c new file mode 100644 index 0000000..60981ca --- /dev/null +++ b/contrib/ntp/tests/libntp/run-refnumtoa.c @@ -0,0 +1,53 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_LocalClock(); +extern void test_UnknownId(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "refnumtoa.c"; + UnityBegin("refnumtoa.c"); + RUN_TEST(test_LocalClock, 13); + RUN_TEST(test_UnknownId, 41); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-sfptostr.c b/contrib/ntp/tests/libntp/run-sfptostr.c new file mode 100644 index 0000000..1c28fe8 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-sfptostr.c @@ -0,0 +1,66 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "sfptostr.c"; + UnityBegin("sfptostr.c"); + RUN_TEST(test_PositiveInteger, 11); + RUN_TEST(test_NegativeInteger, 19); + RUN_TEST(test_PositiveIntegerPositiveFraction, 27); + RUN_TEST(test_NegativeIntegerNegativeFraction, 35); + RUN_TEST(test_PositiveIntegerNegativeFraction, 43); + RUN_TEST(test_NegativeIntegerPositiveFraction, 51); + RUN_TEST(test_SingleDecimalInteger, 59); + RUN_TEST(test_SingleDecimalRounding, 67); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-socktoa.c b/contrib/ntp/tests/libntp/run-socktoa.c new file mode 100644 index 0000000..a6fa778 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-socktoa.c @@ -0,0 +1,61 @@ +/* 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 +#include + +//=======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_ScopedIPv6AddressWithPort(void); +extern void test_HashEqual(void); +extern void test_HashNotEqual(void); +extern void test_IgnoreIPv6Fields(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "socktoa.c"; + UnityBegin("socktoa.c"); + RUN_TEST(test_IPv4AddressWithPort, 11); + RUN_TEST(test_IPv6AddressWithPort, 18); + RUN_TEST(test_ScopedIPv6AddressWithPort, 42); + RUN_TEST(test_HashEqual, 67); + RUN_TEST(test_HashNotEqual, 75); + RUN_TEST(test_IgnoreIPv6Fields, 88); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-ssl_init.c b/contrib/ntp/tests/libntp/run-ssl_init.c new file mode 100644 index 0000000..452a60a --- /dev/null +++ b/contrib/ntp/tests/libntp/run-ssl_init.c @@ -0,0 +1,59 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_MD5KeyTypeWithoutDigestLength(); +extern void test_MD5KeyTypeWithDigestLength(); +extern void test_SHA1KeyTypeWithDigestLength(); +extern void test_MD5KeyName(); +extern void test_SHA1KeyName(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "ssl_init.c"; + UnityBegin("ssl_init.c"); + RUN_TEST(test_MD5KeyTypeWithoutDigestLength, 19); + RUN_TEST(test_MD5KeyTypeWithDigestLength, 23); + RUN_TEST(test_SHA1KeyTypeWithDigestLength, 32); + RUN_TEST(test_MD5KeyName, 47); + RUN_TEST(test_SHA1KeyName, 51); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-statestr.c b/contrib/ntp/tests/libntp/run-statestr.c new file mode 100644 index 0000000..6083eee --- /dev/null +++ b/contrib/ntp/tests/libntp/run-statestr.c @@ -0,0 +1,57 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "statestr.c"; + UnityBegin("statestr.c"); + RUN_TEST(test_PeerRestart, 20); + RUN_TEST(test_SysUnspecified, 24); + RUN_TEST(test_ClockCodeExists, 29); + RUN_TEST(test_ClockCodeUnknown, 33); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-strtolfp.c b/contrib/ntp/tests/libntp/run-strtolfp.c new file mode 100644 index 0000000..0a2912b --- /dev/null +++ b/contrib/ntp/tests/libntp/run-strtolfp.c @@ -0,0 +1,63 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "strtolfp.c"; + UnityBegin("strtolfp.c"); + RUN_TEST(test_PositiveInteger, 11); + RUN_TEST(test_NegativeInteger, 25); + RUN_TEST(test_PositiveFraction, 42); + RUN_TEST(test_NegativeFraction, 56); + RUN_TEST(test_PositiveMsFraction, 73); + RUN_TEST(test_NegativeMsFraction, 89); + RUN_TEST(test_InvalidChars, 107); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-timespecops.c b/contrib/ntp/tests/libntp/run-timespecops.c new file mode 100644 index 0000000..b56e756 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-timespecops.c @@ -0,0 +1,105 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_Helpers1(); +extern void test_Normalise(); +extern void test_SignNoFrac(); +extern void test_SignWithFrac(); +extern void test_CmpFracEQ(); +extern void test_CmpFracGT(); +extern void test_CmpFracLT(); +extern void test_AddFullNorm(); +extern void test_AddFullOflow1(); +extern void test_AddNsecNorm(); +extern void test_AddNsecOflow1(); +extern void test_SubFullNorm(); +extern void test_SubFullOflow(); +extern void test_SubNsecNorm(); +extern void test_SubNsecOflow(); +extern void test_Neg(); +extern void test_AbsNoFrac(); +extern void test_AbsWithFrac(); +extern void test_Helpers2(); +extern void test_ToLFPbittest(); +extern void test_ToLFPrelPos(); +extern void test_ToLFPrelNeg(); +extern void test_ToLFPabs(); +extern void test_FromLFPbittest(); +extern void test_FromLFPrelPos(); +extern void test_FromLFPrelNeg(); +extern void test_LFProundtrip(); +extern void test_ToString(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "timespecops.c"; + UnityBegin("timespecops.c"); + RUN_TEST(test_Helpers1, 155); + RUN_TEST(test_Normalise, 175); + RUN_TEST(test_SignNoFrac, 189); + RUN_TEST(test_SignWithFrac, 201); + RUN_TEST(test_CmpFracEQ, 215); + RUN_TEST(test_CmpFracGT, 228); + RUN_TEST(test_CmpFracLT, 241); + RUN_TEST(test_AddFullNorm, 258); + RUN_TEST(test_AddFullOflow1, 272); + RUN_TEST(test_AddNsecNorm, 286); + RUN_TEST(test_AddNsecOflow1, 298); + RUN_TEST(test_SubFullNorm, 314); + RUN_TEST(test_SubFullOflow, 328); + RUN_TEST(test_SubNsecNorm, 342); + RUN_TEST(test_SubNsecOflow, 354); + RUN_TEST(test_Neg, 370); + RUN_TEST(test_AbsNoFrac, 387); + RUN_TEST(test_AbsWithFrac, 398); + RUN_TEST(test_Helpers2, 413); + RUN_TEST(test_ToLFPbittest, 445); + RUN_TEST(test_ToLFPrelPos, 458); + RUN_TEST(test_ToLFPrelNeg, 470); + RUN_TEST(test_ToLFPabs, 482); + RUN_TEST(test_FromLFPbittest, 497); + RUN_TEST(test_FromLFPrelPos, 516); + RUN_TEST(test_FromLFPrelNeg, 529); + RUN_TEST(test_LFProundtrip, 544); + RUN_TEST(test_ToString, 563); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-timevalops.c b/contrib/ntp/tests/libntp/run-timevalops.c new file mode 100644 index 0000000..013aae1 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-timevalops.c @@ -0,0 +1,105 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_Helpers1(); +extern void test_Normalise(); +extern void test_SignNoFrac(); +extern void test_SignWithFrac(); +extern void test_CmpFracEQ(); +extern void test_CmpFracGT(); +extern void test_CmpFracLT(); +extern void test_AddFullNorm(); +extern void test_AddFullOflow1(); +extern void test_AddUsecNorm(); +extern void test_AddUsecOflow1(); +extern void test_SubFullNorm(); +extern void test_SubFullOflow(); +extern void test_SubUsecNorm(); +extern void test_SubUsecOflow(); +extern void test_Neg(); +extern void test_AbsNoFrac(); +extern void test_AbsWithFrac(); +extern void test_Helpers2(); +extern void test_ToLFPbittest(); +extern void test_ToLFPrelPos(); +extern void test_ToLFPrelNeg(); +extern void test_ToLFPabs(); +extern void test_FromLFPbittest(); +extern void test_FromLFPrelPos(); +extern void test_FromLFPrelNeg(); +extern void test_LFProundtrip(); +extern void test_ToString(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "timevalops.c"; + UnityBegin("timevalops.c"); + RUN_TEST(test_Helpers1, 153); + RUN_TEST(test_Normalise, 173); + RUN_TEST(test_SignNoFrac, 187); + RUN_TEST(test_SignWithFrac, 199); + RUN_TEST(test_CmpFracEQ, 214); + RUN_TEST(test_CmpFracGT, 228); + RUN_TEST(test_CmpFracLT, 242); + RUN_TEST(test_AddFullNorm, 260); + RUN_TEST(test_AddFullOflow1, 274); + RUN_TEST(test_AddUsecNorm, 288); + RUN_TEST(test_AddUsecOflow1, 300); + RUN_TEST(test_SubFullNorm, 316); + RUN_TEST(test_SubFullOflow, 330); + RUN_TEST(test_SubUsecNorm, 344); + RUN_TEST(test_SubUsecOflow, 356); + RUN_TEST(test_Neg, 372); + RUN_TEST(test_AbsNoFrac, 389); + RUN_TEST(test_AbsWithFrac, 400); + RUN_TEST(test_Helpers2, 416); + RUN_TEST(test_ToLFPbittest, 449); + RUN_TEST(test_ToLFPrelPos, 464); + RUN_TEST(test_ToLFPrelNeg, 478); + RUN_TEST(test_ToLFPabs, 491); + RUN_TEST(test_FromLFPbittest, 509); + RUN_TEST(test_FromLFPrelPos, 527); + RUN_TEST(test_FromLFPrelNeg, 540); + RUN_TEST(test_LFProundtrip, 554); + RUN_TEST(test_ToString, 573); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-tstotv.c b/contrib/ntp/tests/libntp/run-tstotv.c new file mode 100644 index 0000000..cf7dd17 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-tstotv.c @@ -0,0 +1,55 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "tstotv.c"; + UnityBegin("tstotv.c"); + RUN_TEST(test_Seconds, 9); + RUN_TEST(test_MicrosecondsExact, 21); + RUN_TEST(test_MicrosecondsRounding, 35); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-tvtots.c b/contrib/ntp/tests/libntp/run-tvtots.c new file mode 100644 index 0000000..468aae5 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-tvtots.c @@ -0,0 +1,55 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "tvtots.c"; + UnityBegin("tvtots.c"); + RUN_TEST(test_Seconds, 10); + RUN_TEST(test_MicrosecondsRounded, 21); + RUN_TEST(test_MicrosecondsExact, 36); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-uglydate.c b/contrib/ntp/tests/libntp/run-uglydate.c new file mode 100644 index 0000000..4e67713 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-uglydate.c @@ -0,0 +1,51 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_ConstantDateTime(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "uglydate.c"; + UnityBegin("uglydate.c"); + RUN_TEST(test_ConstantDateTime, 11); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-vi64ops.c b/contrib/ntp/tests/libntp/run-vi64ops.c new file mode 100644 index 0000000..7e8c2cb --- /dev/null +++ b/contrib/ntp/tests/libntp/run-vi64ops.c @@ -0,0 +1,56 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(void); +extern void test_ParseVUI64_pos(); +extern void test_ParseVUI64_neg(); +extern void test_ParseVUI64_case(); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "vi64ops.c"; + UnityBegin("vi64ops.c"); + RUN_TEST(test_ParseVUI64_pos, 33); + RUN_TEST(test_ParseVUI64_neg, 47); + RUN_TEST(test_ParseVUI64_case, 60); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/run-ymd2yd.c b/contrib/ntp/tests/libntp/run-ymd2yd.c new file mode 100644 index 0000000..faf2fcb --- /dev/null +++ b/contrib/ntp/tests/libntp/run-ymd2yd.c @@ -0,0 +1,57 @@ +/* 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 +#include + +//=======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() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "ymd2yd.c"; + UnityBegin("ymd2yd.c"); + RUN_TEST(test_NonLeapYearFebruary, 17); + RUN_TEST(test_NonLeapYearJune, 21); + RUN_TEST(test_LeapYearFebruary, 26); + RUN_TEST(test_LeapYearDecember, 30); + + return (UnityEnd()); +} diff --git a/contrib/ntp/tests/libntp/sfptostr.c b/contrib/ntp/tests/libntp/sfptostr.c new file mode 100644 index 0000000..fd56114 --- /dev/null +++ b/contrib/ntp/tests/libntp/sfptostr.c @@ -0,0 +1,73 @@ +/* + * 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 "unity.h" + +#define SFP_MAX_PRECISION 6 + +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.h b/contrib/ntp/tests/libntp/sockaddrtest.h new file mode 100644 index 0000000..f9a9fde --- /dev/null +++ b/contrib/ntp/tests/libntp/sockaddrtest.h @@ -0,0 +1,57 @@ +#ifndef TESTS_SOCKADDRTEST_H +#define TESTS_SOCKADDRTEST_H + +#include "ntp.h" +#include "ntp_stdlib.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) { + //<< "Expected sa_family: " << expected.sa.sa_family + //<< " but got: " << 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 { + //<< "IPv4 comparision failed, expected: " + //<< expected.sa4.sin_addr.s_addr + //<< "(" << socktoa(&expected) << ") but was: " + //<< actual.sa4.sin_addr.s_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: ");// << actual.sa.sa_family; + return FALSE; + } +} + + +#endif // TESTS_SOCKADDRTEST_H + + + diff --git a/contrib/ntp/tests/libntp/socktoa.c b/contrib/ntp/tests/libntp/socktoa.c new file mode 100644 index 0000000..537df1e --- /dev/null +++ b/contrib/ntp/tests/libntp/socktoa.c @@ -0,0 +1,109 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" + +#include "unity.h" + +#include "sockaddrtest.h" + + +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) { + 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)); +} + +#ifdef ISC_PLATFORM_HAVESCOPEID +void test_ScopedIPv6AddressWithPort(void) { + 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)); +} +#endif /* ISC_PLATFORM_HAVESCOPEID */ + +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)); + //TODO : EXPECT_NE(sock_hash(&input1), sock_hash(&input2)); + //Damir's suggestion below: + TEST_ASSERT_FALSE(sock_hash(&input1) == sock_hash(&input2)); + //NOTE: sock_hash returns u_short, so you can compare it with == + //for complex structures you have to write an additional function like bool compare(a,b) +} + +void test_IgnoreIPv6Fields(void) { + 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)); +} diff --git a/contrib/ntp/tests/libntp/ssl_init.c b/contrib/ntp/tests/libntp/ssl_init.c new file mode 100644 index 0000000..fe22414 --- /dev/null +++ b/contrib/ntp/tests/libntp/ssl_init.c @@ -0,0 +1,58 @@ +#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; + + +// keytype_from_text() +void test_MD5KeyTypeWithoutDigestLength() { + TEST_ASSERT_EQUAL(KEY_TYPE_MD5, keytype_from_text("MD5", NULL)); +} + +void test_MD5KeyTypeWithDigestLength() { + 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() { +#ifdef OPENSSL + size_t digestLength; + size_t expected = TEST_SHA1_DIGEST_LENGTH; + + TEST_ASSERT_EQUAL(NID_sha, keytype_from_text("SHA", &digestLength)); + TEST_ASSERT_EQUAL(expected, digestLength); + /* OPENSSL */ +#else + TEST_IGNORE_MESSAGE("Skipping because OPENSSL isn't defined"); +#endif +} + + +// keytype_name() +void test_MD5KeyName() { + TEST_ASSERT_EQUAL_STRING("MD5", keytype_name(KEY_TYPE_MD5)); +} + +void test_SHA1KeyName() { +#ifdef OPENSSL + TEST_ASSERT_EQUAL_STRING("SHA", keytype_name(NID_sha)); +#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 new file mode 100644 index 0000000..5f7babe --- /dev/null +++ b/contrib/ntp/tests/libntp/statestr.c @@ -0,0 +1,36 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.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 tearDown(void) +{ +} + + +// 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 new file mode 100644 index 0000000..de9f111 --- /dev/null +++ b/contrib/ntp/tests/libntp/strtolfp.c @@ -0,0 +1,114 @@ +#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 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 new file mode 100644 index 0000000..e489f673 --- /dev/null +++ b/contrib/ntp/tests/libntp/test-libntp.c @@ -0,0 +1,32 @@ +#include + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" + +#include "test-libntp.h" + +//const char *progname = "test-libntp"; + +// current_time is needed by authkeys. Used only in to calculate lifetime. +//u_long current_time = 4; + + +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 new file mode 100644 index 0000000..eb113cd --- /dev/null +++ b/contrib/ntp/tests/libntp/test-libntp.h @@ -0,0 +1,3 @@ +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 new file mode 100644 index 0000000..bb2619a --- /dev/null +++ b/contrib/ntp/tests/libntp/timespecops.c @@ -0,0 +1,587 @@ +#include "config.h" + +#include "ntp_types.h" +#include "ntp_fp.h" + +#include +#include "timespecops.h" + +#include "unity.h" + + +#include + +//in unity_helper.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"); \ +} + +//what about l_fp.l_ui ??? it's a union so it's either l_fp.l_ui or l_fp.l_i? +#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"); \ +} + +//timespec has time_t, long, and time_t is basically long uint, 4 or 8 bytes size, depending on 32/64bit + +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; +}; + +//******************************************MY CUSTOM FUNCTIONS******************************* + +typedef int bool; //TRUE and FALSE are already defined somewhere, so I can't do typedef enum { FALSE, TRUE } boolean; + +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; +} + +//taken from lfpfunc.c -> maybe remove this from timevalops.c and lfpfunc. and put in c_timstructs.h ????!!!!! +l_fp l_fp_init(int32 i, u_int32 f) +{ + l_fp temp; + temp.l_i = i; + temp.l_uf = f; + + return temp; +} + +//also in timelalops.c!!!!!! +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 { + //<< m_expr << " which is " << l_fp_wrap(m) + //<< "\nand\n" + //<< n_expr << " which is " << l_fp_wrap(n) + //<< "\nare not close; diff=" << l_fp_wrap(diff); + 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 + { + //<< m_expr << " which is " << timespec_wrap(m) + //<< "\nand\n" + //<< n_expr << " which is " << timespec_wrap(n) + //<< "\nare not close; diff=" << timespec_wrap(diff); + 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() { + 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)); + } +} + + +//---------------------------------------------------------------------- +// test normalisation +//---------------------------------------------------------------------- + +void test_Normalise() { + 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)); + } +} + +//---------------------------------------------------------------------- +// test classification +//---------------------------------------------------------------------- + +void test_SignNoFrac() { + // 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); + } +} + +void test_SignWithFrac() { + // 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); + } +} + +//---------------------------------------------------------------------- +// test compare +//---------------------------------------------------------------------- +void test_CmpFracEQ() { + // 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); + } +} + +void test_CmpFracGT() { + // 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); + } +} + +void test_CmpFracLT() { + // 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); + } +} + +//---------------------------------------------------------------------- +// Test addition (sum) +//---------------------------------------------------------------------- + +void test_AddFullNorm() { + 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); + } +} + +void test_AddFullOflow1() { + 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); + } +} + +void test_AddNsecNorm() { + 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); + } +} + +void test_AddNsecOflow1() { + 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); + } +} + +//---------------------------------------------------------------------- +// test subtraction (difference) +//---------------------------------------------------------------------- + +void test_SubFullNorm() { + 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); + } +} + +void test_SubFullOflow() { + 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); + } +} + +void test_SubNsecNorm() { + 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); + } +} + +void test_SubNsecOflow() { + 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); + } +} + +//---------------------------------------------------------------------- +// test negation +//---------------------------------------------------------------------- + +void test_Neg() { + 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)); + } +} + +//---------------------------------------------------------------------- +// test abs value +//---------------------------------------------------------------------- + +void test_AbsNoFrac() { + 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)); + } +} + +void test_AbsWithFrac() { + 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)); + } +} + +// --------------------------------------------------------------------- +// test support stuff -- part 2 +// --------------------------------------------------------------------- + +void test_Helpers2() { + 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));//ASSERT_PRED_FORMAT2(isClose, x, y); + } + else + { + TEST_ASSERT_FALSE(AssertTimespecClose(x,y,limit));//ASSERT_PRED_FORMAT2(!isClose, x, y); + } + } + } +} + +// global predicate instances we're using here +//static l_fp lfpClose = l_fp_init(0,1); //static AssertFpClose FpClose(0, 1); +//static struct timespec limit = timespec_init(0,2); //static AssertTimespecClose TimespecClose(0, 2); + +//---------------------------------------------------------------------- +// conversion to l_fp +//---------------------------------------------------------------------- + +void test_ToLFPbittest() { + 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)); //ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +void test_ToLFPrelPos() { + 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); + } +} + +void test_ToLFPrelNeg() { + 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); + } +} + +void test_ToLFPabs() { + 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); + } +} + +//---------------------------------------------------------------------- +// conversion from l_fp +//---------------------------------------------------------------------- +void test_FromLFPbittest() { + 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)); //ASSERT_PRED_FORMAT2(TimespecClose, E, r); + } +} + +void test_FromLFPrelPos() { + 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)); //ASSERT_PRED_FORMAT2(TimespecClose, E, r); + } +} + +void test_FromLFPrelNeg() { + 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)); //ASSERT_PRED_FORMAT2(TimespecClose, E, r); + } +} + + +// nsec -> frac -> nsec roundtrip, using a prime start and increment +void test_LFProundtrip() { + 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); + } +} + +//---------------------------------------------------------------------- +// string formatting +//---------------------------------------------------------------------- + +void test_ToString() { + 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); + } +} + +// -*- EOF -*- diff --git a/contrib/ntp/tests/libntp/timevalops.c b/contrib/ntp/tests/libntp/timevalops.c new file mode 100644 index 0000000..080dfb7 --- /dev/null +++ b/contrib/ntp/tests/libntp/timevalops.c @@ -0,0 +1,598 @@ +#include "config.h" + +//some unused features are still in the wrapper, unconverted + +#include "ntp_types.h" +#include "ntp_fp.h" + +#include +#include "timevalops.h" + +#include "unity.h" + + +//in unity_helper.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"); \ +} + +//timeval has time_t, long, and time_t is basically uint + +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 ; + + +//******************************************MY CUSTOM FUNCTIONS******************************* + +typedef int bool; //TRUE and FALSE are already defined somewhere, so I can't do typedef enum { FALSE, TRUE } boolean; + +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; } + +//taken from lfpfunc.c -> maybe remove this from timevalops.c and lfpfunc. and put in c_timstructs.h ????!!!!! +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 " << timeval_wrap(m) + //<< "\nand\n" + //<< n_expr << " which is " << timeval_wrap(n) + //<< "\nare not close; diff=" << timeval_wrap(diff); + 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 { + //<< m_expr << " which is " << l_fp_wrap(m) + //<< "\nand\n" + //<< n_expr << " which is " << l_fp_wrap(n) + //<< "\nare not close; diff=" << l_fp_wrap(diff); + 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() { + 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)); + } +} + + +//---------------------------------------------------------------------- +// test normalisation +//---------------------------------------------------------------------- + +void test_Normalise() { + 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)); + } +} + +//---------------------------------------------------------------------- +// test classification +//---------------------------------------------------------------------- + +void test_SignNoFrac() { + 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); + } +} + +void test_SignWithFrac() { + // 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); + } +} + +//---------------------------------------------------------------------- +// test compare +//---------------------------------------------------------------------- +void test_CmpFracEQ() { + 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); + } +} + +void test_CmpFracGT() { + // 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); + } +} + +void test_CmpFracLT() { + // 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); + } +} + +//---------------------------------------------------------------------- +// Test addition (sum) +//---------------------------------------------------------------------- + +void test_AddFullNorm() { + 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); + } +} + +void test_AddFullOflow1() { + 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); + } +} + +void test_AddUsecNorm() { + 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); + } +} + +void test_AddUsecOflow1() { + 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); + } +} + +//---------------------------------------------------------------------- +// test subtraction (difference) +//---------------------------------------------------------------------- + +void test_SubFullNorm() { + 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); + } +} + +void test_SubFullOflow() { + 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); + } +} + +void test_SubUsecNorm() { + 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); + } +} + +void test_SubUsecOflow() { + 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); + } +} + +//---------------------------------------------------------------------- +// test negation +//---------------------------------------------------------------------- + +void test_Neg() { + 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)); + } +} + +//---------------------------------------------------------------------- +// test abs value +//---------------------------------------------------------------------- + +void test_AbsNoFrac() { + 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)); + } +} + +void test_AbsWithFrac() { + 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)); + } +} + +// --------------------------------------------------------------------- +// test support stuff -- part 2 +// --------------------------------------------------------------------- + + +void test_Helpers2() { + //struct AssertTimevalClose isClose = AssertTimevalClose_init(0, 2); + 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));//ASSERT_PRED_FORMAT2(!isClose, x, y); + } + } + } + } +} + +// 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() { + 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); + } +} + + +void test_ToLFPrelPos() { + 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)); //ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +void test_ToLFPrelNeg() { + 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)); //ASSERT_PRED_FORMAT2(FpClose,E, r); + } +} + +void test_ToLFPabs() { + 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)); //ASSERT_PRED_FORMAT2(FpClose, E, r); + } +} + +//---------------------------------------------------------------------- +// conversion from l_fp +//---------------------------------------------------------------------- + +void test_FromLFPbittest() { + 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)); //ASSERT_PRED_FORMAT2(TimevalClose, E, r); + } +} + +void test_FromLFPrelPos() { + 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)); //ASSERT_PRED_FORMAT2(TimevalClose, E, r); + } +} + +void test_FromLFPrelNeg() { + 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)); //ASSERT_PRED_FORMAT2(TimevalClose, E, r); + } +} + +// usec -> frac -> usec roundtrip, using a prime start and increment +void test_LFProundtrip() { + 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); + } +} + +//---------------------------------------------------------------------- +// string formatting +//---------------------------------------------------------------------- + +void test_ToString() { + 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); + } +} + +// -*- EOF -*- diff --git a/contrib/ntp/tests/libntp/tstotv.c b/contrib/ntp/tests/libntp/tstotv.c new file mode 100644 index 0000000..0801727 --- /dev/null +++ b/contrib/ntp/tests/libntp/tstotv.c @@ -0,0 +1,44 @@ +#include "config.h" + +#include "ntp_fp.h" +#include "timevalops.h" + +#include "unity.h" + +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 new file mode 100644 index 0000000..6c8345a --- /dev/null +++ b/contrib/ntp/tests/libntp/tvtots.c @@ -0,0 +1,54 @@ +#include "config.h" + +#include "lfptest.h" +#include "timevalops.h" + +#include "unity.h" +#include // Required on Solaris for ldexp. + + +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(0000005, expectedDouble, actualDouble); +} diff --git a/contrib/ntp/tests/libntp/uglydate.c b/contrib/ntp/tests/libntp/uglydate.c new file mode 100644 index 0000000..a8d02d1 --- /dev/null +++ b/contrib/ntp/tests/libntp/uglydate.c @@ -0,0 +1,18 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "ntp_fp.h" + +#include "unity.h" + + +void +test_ConstantDateTime(void) { + const u_int32 HALF = 2147483648UL; + + l_fp time = {3485080800UL, HALF}; // 2010-06-09 14:00:00.5 + + TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500", + uglydate(&time)); +} diff --git a/contrib/ntp/tests/libntp/vi64ops.c b/contrib/ntp/tests/libntp/vi64ops.c new file mode 100644 index 0000000..af7dd1b --- /dev/null +++ b/contrib/ntp/tests/libntp/vi64ops.c @@ -0,0 +1,72 @@ +#include "config.h" + +#include "ntp_stdlib.h" + +#include "unity.h" + +#include "vint64ops.h" + +//technically bool +//int IsEqual(const vint64 &expected, const vint64 &actual) { +int IsEqual(const vint64 expected, const vint64 actual) { + if (0 == memcmp(&expected, &actual, sizeof(vint64))) { + printf( "%x.", expected.D_s.hi); //<< std::hex << expected.D_s.hi << '.' + printf("%x",expected.D_s.lo);//<< std::hex << expected.D_s.lo + printf(" but was "); + printf("%x.",actual.D_s.hi); //<< std::hex << actual.D_s.hi << '.' + printf("%x\n",actual.D_s.lo); //<< std::hex << actual.D_s.lo; + return TRUE; + } else { + + printf("expected: "); + printf( "%d.", expected.D_s.hi); //<< std::hex << expected.D_s.hi << '.' + printf("%d",expected.D_s.lo);//<< std::hex << expected.D_s.lo + printf(" but was "); + printf("%d",actual.D_s.lo); //<< std::hex << actual.D_s.hi << '.' + printf("%d",actual.D_s.lo); //<< std::hex << actual.D_s.lo; + return FALSE; + } +} + +// ---------------------------------------------------------------------- +// test number parser +void test_ParseVUI64_pos() { + 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() { + 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() { + 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 new file mode 100644 index 0000000..8e0725c --- /dev/null +++ b/contrib/ntp/tests/libntp/ymd2yd.c @@ -0,0 +1,35 @@ +#include "config.h" + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" + +#include "unity.h" + +void setUp(void) +{ +} + +void tearDown(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)); +} + -- cgit v1.1