]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
lfptostr & strtolfp tests
authorLokesh Walase <lokeshw24@ntp.org>
Fri, 19 Jun 2015 06:34:49 +0000 (12:04 +0530)
committerLokesh Walase <lokeshw24@ntp.org>
Fri, 19 Jun 2015 06:34:49 +0000 (12:04 +0530)
bk: 5583b809E_VZax-8TyitEALG3rGtVA

tests/libntp/Makefile.am

index ba89cc9ae3e22bccfc48401e8dc311cd0f18d63a..f007d867e9c3914757fc8eec0a0e68cbb47c3d57 100644 (file)
@@ -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