From: Lokesh Walase Date: Fri, 19 Jun 2015 06:34:49 +0000 (+0530) Subject: lfptostr & strtolfp tests X-Git-Tag: NTP_4_3_43~2^2~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=313998ff52012112cba8f5d44a1243307090eaeb;p=thirdparty%2Fntp.git lfptostr & strtolfp tests bk: 5583b809E_VZax-8TyitEALG3rGtVA --- diff --git a/tests/libntp/Makefile.am b/tests/libntp/Makefile.am index ba89cc9ae..f007d867e 100644 --- a/tests/libntp/Makefile.am +++ b/tests/libntp/Makefile.am @@ -18,6 +18,7 @@ check_PROGRAMS = \ test-hextoint \ test-hextolfp \ test-lfpfunc \ + test-lfptostr \ test-modetoa \ test-netof \ test-numtoa \ @@ -26,6 +27,7 @@ check_PROGRAMS = \ test-refnumtoa \ test-socktoa \ test-statestr \ + test-strtolfp \ test-timespecops \ test-timevalops \ test-uglydate \ @@ -86,7 +88,7 @@ tests_SOURCES = \ g_hextolfp.cpp \ humandate.cpp \ g_lfpfunc.cpp \ - lfptostr.cpp \ + g_lfptostr.cpp \ g_modetoa.cpp \ msyslog.cpp \ g_netof.cpp \ @@ -100,7 +102,7 @@ tests_SOURCES = \ socktoa.cpp \ ssl_init.cpp \ g_statestr.cpp \ - strtolfp.cpp \ + g_strtolfp.cpp \ g_timespecops.cpp \ timestructs.cpp \ g_timevalops.cpp \ @@ -123,6 +125,7 @@ BUILT_SOURCES += \ $(srcdir)/run-hextoint.c \ $(srcdir)/run-hextolfp.c \ $(srcdir)/run-lfpfunc.c \ + $(srcdir)/run-lfptostr.c \ $(srcdir)/run-modetoa.c \ $(srcdir)/run-netof.c \ $(srcdir)/run-numtoa.c \ @@ -131,6 +134,7 @@ BUILT_SOURCES += \ $(srcdir)/run-refnumtoa.c \ $(srcdir)/run-socktoa.c \ $(srcdir)/run-statestr.c \ + $(srcdir)/run-strtolfp.c \ $(srcdir)/run-uglydate.c \ $(srcdir)/run-vi64ops.c \ $(srcdir)/run-ymd2yd.c \ @@ -270,6 +274,22 @@ test_socktoa_LDADD = \ $(unity_tests_LDADD) \ $(NULL) +test_strtolfp_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_strtolfp_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_lfptostr_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_lfptostr_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + test_a_md5encrypt_CFLAGS = \ -I$(top_srcdir)/sntp/unity \ $(NULL) @@ -446,6 +466,16 @@ test_socktoa_SOURCES = \ run-socktoa.c \ $(NULL) +test_strtolfp_SOURCES = \ + strtolfp.c \ + run-strtolfp.c \ + $(NULL) + +test_lfptostr_SOURCES = \ + lfptostr.c \ + run-lfptostr.c \ + $(NULL) + test_atouint_SOURCES = \ atouint.c \ run-atouint.c \ @@ -544,6 +574,12 @@ $(srcdir)/run-decodenetnum.c: $(srcdir)/decodenetnum.c $(std_unity_list) $(srcdir)/run-socktoa.c: $(srcdir)/socktoa.c $(std_unity_list) $(run_unity) socktoa.c run-socktoa.c +$(srcdir)/run-strtolfp.c: $(srcdir)/strtolfp.c $(std_unity_list) + $(run_unity) strtolfp.c run-strtolfp.c + +$(srcdir)/run-lfptostr.c: $(srcdir)/lfptostr.c $(std_unity_list) + $(run_unity) lfptostr.c run-lfptostr.c + $(srcdir)/run-a_md5encrypt.c: $(srcdir)/a_md5encrypt.c $(std_unity_list) $(run_unity) a_md5encrypt.c run-a_md5encrypt.c