From: Lokesh Walase Date: Sat, 20 Jun 2015 10:41:49 +0000 (+0530) Subject: Crypto test file X-Git-Tag: NTP_4_3_43~2^2~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beb113f5d91049daaa649cc1136430fb70d47d4f;p=thirdparty%2Fntp.git Crypto test file bk: 5585436dpHON7mPJCS4D5bbadUWbEg --- diff --git a/sntp/tests/Makefile.am b/sntp/tests/Makefile.am index 591fd101e..9ec4b2693 100644 --- a/sntp/tests/Makefile.am +++ b/sntp/tests/Makefile.am @@ -11,6 +11,7 @@ run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb #EXTRA_PROGRAMS += test-keyFile check_PROGRAMS = \ + test-crypto \ test-keyFile \ test-kodDatabase \ test-kodFile \ @@ -33,7 +34,7 @@ base_SOURCES = \ tests_SOURCES = \ $(base_SOURCES) \ - crypto.cpp \ + g_crypto.cpp \ g_keyFile.cpp \ g_kodDatabase.cpp \ g_kodFile.cpp \ @@ -108,12 +109,29 @@ AM_CPPFLAGS += $(CPPFLAGS_NTP) AM_LDFLAGS = $(LDFLAGS_NTP) BUILT_SOURCES += \ + $(srcdir)/run-crypto.c \ $(srcdir)/run-keyFile.c \ $(srcdir)/run-kodDatabase.c \ $(srcdir)/run-kodFile.c \ $(srcdir)/run-networking.c \ $(NULL) +test_crypto_CFLAGS = \ + -I$(top_srcdir)/unity \ + $(NULL) + +test_crypto_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_crypto_SOURCES = \ + crypto.c \ + run-crypto.c \ + $(top_builddir)/version.c \ + $(NULL) + +$(srcdir)/run-crypto.c: $(srcdir)/crypto.c $(std_unity_list) + $(run_unity) crypto.c run-crypto.c test_keyFile_CFLAGS = \ -I$(top_srcdir)/unity \ diff --git a/sntp/tests/crypto.c b/sntp/tests/crypto.c index 15ba803a0..a51275205 100644 --- a/sntp/tests/crypto.c +++ b/sntp/tests/crypto.c @@ -2,7 +2,7 @@ #include "unity.h" #include "ntp_types.h" -#include "c_sntptest.h" +#include "sntptest.h" #include "crypto.h" #define MD5_LENGTH 16