]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
fixed a makefile: it didn't work if we had gtest enabled
authorTomek Mrugalski <tomasz@isc.org>
Fri, 19 Jun 2015 03:59:58 +0000 (05:59 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 19 Jun 2015 03:59:58 +0000 (05:59 +0200)
bk: 558393befMISEXtaBrZvWT0NEYRmKg

sntp/tests/Makefile.am
sntp/tests/g_keyFile.cpp [moved from sntp/tests/keyFile.cpp with 100% similarity]
tests/libntp/Makefile.am

index cc8b08fac668d89e817c2d04d81f8c7b528cd863..eb5c6a089a1fe02913b2aec615e0a9ba95575f06 100644 (file)
@@ -1,4 +1,4 @@
-NUL =
+NULL =
 BUILT_SOURCES =
 CLEANFILES =
 EXTRA_PROGRAMS =
@@ -29,7 +29,7 @@ base_SOURCES =                        \
 tests_SOURCES =                        \
        $(base_SOURCES)         \
        crypto.cpp              \
-       keyFile.cpp             \
+       g_keyFile.cpp           \
        g_kodDatabase.cpp       \
        kodFile.cpp             \
        g_networking.cpp        \
index ac509eb1783d709e69897fdf3cd7345e9b3845ef..47a98b2503c423dc3acfe163e30e7ae42a7bbec9 100644 (file)
@@ -7,11 +7,12 @@ run_unity =   cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
 #removed test-libntp
 check_PROGRAMS =               \
        test-a_md5encrypt       \
-       test-atoint             \
+       test-atoint                     \
        test-atouint            \
        test-authkeys           \
        test-calendar           \
        test-caljulian          \
+       test-caltontp           \
        test-calyearstart       \
        test-clocktime          \
        test-decodenetnum       \
@@ -19,19 +20,23 @@ check_PROGRAMS =            \
        test-hextolfp           \
        test-lfpfunc            \
        test-modetoa            \
-       test-netof              \
-       test-numtoa             \
+       test-msyslog            \
+       test-netof                      \
+       test-numtoa                     \
        test-numtohost          \
        test-octtoint           \
+       test-prettydate         \
+       test-recvbuff           \
        test-refnumtoa          \
        test-ssl_init           \
        test-socktoa            \
        test-statestr           \
        test-timespecops        \
        test-timevalops         \
+       test-tstotv                     \
        test-uglydate           \
        test-vi64ops            \
-       test-ymd2yd             \
+       test-ymd2yd                     \
        $(NULL)
 
 if GTEST_AVAILABLE
@@ -79,7 +84,7 @@ tests_SOURCES =                                       \
        buftvtots.cpp           \
        g_calendar.cpp          \
        g_caljulian.cpp         \
-       caltontp.cpp            \
+       g_caltontp.cpp          \
        g_calyearstart.cpp      \
        g_clocktime.cpp         \
        g_decodenetnum.cpp      \
@@ -89,13 +94,13 @@ tests_SOURCES =                                     \
        g_lfpfunc.cpp           \
        lfptostr.cpp            \
        g_modetoa.cpp           \
-       msyslog.cpp             \
-       g_netof.cpp             \
+       g_msyslog.cpp           \
+       g_netof.cpp                     \
        g_numtoa.cpp            \
        g_numtohost.cpp         \
        g_octtoint.cpp          \
-       prettydate.cpp          \
-       recvbuff.cpp            \
+       g_prettydate.cpp        \
+       g_recvbuff.cpp          \
        g_refnumtoa.cpp         \
        sfptostr.cpp            \
        g_socktoa.cpp           \
@@ -105,8 +110,8 @@ tests_SOURCES =                                     \
        g_timespecops.cpp       \
        timestructs.cpp         \
        g_timevalops.cpp        \
-       tstotv.cpp              \
-       tvtots.cpp              \
+       g_tstotv.cpp                    \
+       tvtots.cpp                      \
        g_uglydate.cpp          \
        g_vi64ops.cpp           \
        g_ymd2yd.cpp            \
@@ -118,6 +123,7 @@ BUILT_SOURCES +=                    \
        $(srcdir)/run-atouint.c         \
        $(srcdir)/run-authkeys.c        \
        $(srcdir)/run-caljulian.c       \
+       $(srcdir)/run-caltontp.c
        $(srcdir)/run-calyearstart.c    \
        $(srcdir)/run-clocktime.c       \
        $(srcdir)/run-decodenetnum.c    \
@@ -125,16 +131,20 @@ BUILT_SOURCES +=                  \
        $(srcdir)/run-hextolfp.c        \
        $(srcdir)/run-lfpfunc.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-refnumtoa.c       \
        $(srcdir)/run-ssl_init.c        \
        $(srcdir)/run-socktoa.c         \
        $(srcdir)/run-statestr.c        \
        $(srcdir)/run-timevalops.c      \
        $(srcdir)/run-timespecops.c     \
+       $(srcdir)/run-tstotv.c          \
        $(srcdir)/run-uglydate.c        \
        $(srcdir)/run-vi64ops.c         \
        $(srcdir)/run-ymd2yd.c          \
@@ -386,6 +396,51 @@ test_ssl_init_LDADD =                              \
        $(top_builddir)/sntp/unity/libunity.a   \
        $(NULL)
 
+test_caltontp_CFLAGS =                 \
+       -I$(top_srcdir)/sntp/unity              \
+       $(NULL)
+
+test_caltontp_LDADD =                  \
+       $(LDADD)                                \
+       $(top_builddir)/sntp/unity/libunity.a   \
+       $(NULL)
+
+test_msyslog_CFLAGS =                  \
+       -I$(top_srcdir)/sntp/unity              \
+       $(NULL)
+
+test_msyslog_LDADD =                   \
+       $(LDADD)                                \
+       $(top_builddir)/sntp/unity/libunity.a   \
+       $(NULL)
+
+test_prettydate_CFLAGS =                       \
+       -I$(top_srcdir)/sntp/unity              \
+       $(NULL)
+
+test_prettydate_LDADD =                        \
+       $(LDADD)                                \
+       $(top_builddir)/sntp/unity/libunity.a   \
+       $(NULL)
+
+test_recvbuff_CFLAGS =                 \
+       -I$(top_srcdir)/sntp/unity              \
+       $(NULL)
+
+test_recvbuff_LDADD =                  \
+       $(LDADD)                                \
+       $(top_builddir)/sntp/unity/libunity.a   \
+       $(NULL)
+
+test_tstotv_CFLAGS =                   \
+       -I$(top_srcdir)/sntp/unity              \
+       $(NULL)
+
+test_tstotv_LDADD =                    \
+       $(LDADD)                                \
+       $(top_builddir)/sntp/unity/libunity.a   \
+       $(NULL)
+
 
 test_modetoa_SOURCES =                 \
        modetoa.c                       \
@@ -521,6 +576,30 @@ test_ssl_init_SOURCES =                    \
        run-ssl_init.c                  \
        $(NULL)
 
+test_caltontp_SOURCES =                        \
+       caltontp.c                      \
+       run-caltontp.c                  \
+       $(NULL)
+
+test_msyslog_SOURCES =                 \
+       msyslog.c                       \
+       run-msyslog.c                   \
+       $(NULL)
+
+test_prettydate_SOURCES =                      \
+       prettydate.c                    \
+       run-prettydate.c                        \
+       $(NULL)
+
+test_recvbuff_SOURCES =                        \
+       recvbuff.c                      \
+       run-recvbuff.c                  \
+       $(NULL)
+
+test_tstotv_SOURCES =                  \
+       tstotv.c                        \
+       run-tstotv.c                    \
+       $(NULL)
 
 $(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
        $(run_unity) modetoa.c run-modetoa.c
@@ -600,6 +679,22 @@ $(srcdir)/run-timespecops.c: $(srcdir)/timespecops.c $(std_unity_list)
 $(srcdir)/run-ssl_init.c: $(srcdir)/ssl_init.c $(std_unity_list)
        $(run_unity) ssl_init.c run-ssl_init.c
 
+$(srcdir)/run-caltontp.c: $(srcdir)/caltontp.c $(std_unity_list)
+       $(run_unity) caltontp.c run-caltontp.c
+
+$(srcdir)/run-msyslog.c: $(srcdir)/msyslog.c $(std_unity_list)
+       $(run_unity) msyslog.c run-msyslog.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-tstotv.c: $(srcdir)/tstotv.c $(std_unity_list)
+       $(run_unity) tstotv.c run-tstotv.c
+
+
 TESTS =
 
 if !NTP_CROSSCOMPILE