]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Makefile.am modified for octotint.c file
authorLokesh Walase <lokeshw24@ntp.org>
Fri, 12 Jun 2015 11:09:36 +0000 (16:39 +0530)
committerLokesh Walase <lokeshw24@ntp.org>
Fri, 12 Jun 2015 11:09:36 +0000 (16:39 +0530)
bk: 557abdf0611AvuiG4OhZ42CVvUGl_Q

tests/libntp/Makefile.am

index 01c6f4d60c602da5e50c9eeb090f35617bfbab6b..bfbda22cf03aaed5b951a320c39aeee4d058fb82 100644 (file)
@@ -6,7 +6,7 @@ run_unity =     cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
 
 #removed test-libntp
 check_PROGRAMS = test-modetoa test-uglydate test-ymd2yd test-statestr test-numtoa test-numtohost \
-test-hextoint test-atoint test-atouint test-authkeys test-a_md5encrypt test-lfpfunc
+test-hextoint test-atoint test-atouint test-authkeys test-a_md5encrypt test-lfpfunc test-octtoint
 
 if GTEST_AVAILABLE
 check_PROGRAMS += tests
@@ -66,7 +66,7 @@ tests_SOURCES = $(top_srcdir)/sntp/tests_main.cpp     \
                netof.cpp               \
                g_numtoa.cpp            \
                g_numtohost.cpp         \
-               octtoint.cpp            \
+               g_octtoint.cpp          \
                prettydate.cpp          \
                recvbuff.cpp            \
                refnumtoa.cpp           \
@@ -171,6 +171,15 @@ test_atoint_LDADD =                   \
        $(unity_tests_LDADD)
        $(NULL)
 
+test_octtoint_CFLAGS =                  \
+       -I$(top_srcdir)/sntp/unity      \
+       $(NULL)
+
+test_octtoint_LDADD =                   \
+       $(unity_tests_LDADD)
+       $(NULL)
+
+
 test_a_md5encrypt_CFLAGS =                  \
        -I$(top_srcdir)/sntp/unity      \
        $(NULL)
@@ -256,6 +265,12 @@ test_atoint_SOURCES =                      \
        run-test-atoint.c               \
        $(NULL)
 
+test_octtoint_SOURCES =                \
+       octtoint.c                      \
+       run-test-octtoint.c                     \
+       $(NULL)
+
+
 test_a_md5encrypt_SOURCES =                    \
        a_md5encrypt.c                          \
        run-test-a_md5encrypt.c                 \
@@ -302,6 +317,9 @@ $(srcdir)/run-test-hextoint.c: $(srcdir)/hextoint.c $(std_unity_list)
 $(srcdir)/run-test-atoint.c: $(srcdir)/atoint.c $(std_unity_list)
        $(run_unity) atoint.c run-test-atoint.c
 
+$(srcdir)/run-test-octtoint.c: $(srcdir)/octtoint.c $(std_unity_list)
+       $(run_unity) octtoint.c run-test-octtoint.c
+
 $(srcdir)/run-test-a_md5encrypt.c: $(srcdir)/a_md5encrypt.c $(std_unity_list)
        $(run_unity) a_md5encrypt.c run-test-a_md5encrypt.c