diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-10-26 11:42:25 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-10-26 11:42:25 +0000 |
commit | 009e7aaa36cdc634402b808846ff82869c79b076 (patch) | |
tree | 87ec8a7d959d10b98fa9068d0c72ebea6c14f0fb /contrib/ntp/tests/ntpd/Makefile.am | |
parent | 9f2ff1c7f301609664a1ef5f55688b9254c1b424 (diff) | |
download | src-009e7aaa36cdc634402b808846ff82869c79b076.tar.gz src-009e7aaa36cdc634402b808846ff82869c79b076.zip |
Upgrade NTP to 4.2.8p4.
Security: FreeBSD-SA-15:25.ntp
Security: CVE-2015-7871
Security: CVE-2015-7855
Security: CVE-2015-7854
Security: CVE-2015-7853
Security: CVE-2015-7852
Security: CVE-2015-7851
Security: CVE-2015-7850
Security: CVE-2015-7849
Security: CVE-2015-7848
Security: CVE-2015-7701
Security: CVE-2015-7703
Security: CVE-2015-7704, CVE-2015-7705
Security: CVE-2015-7691, CVE-2015-7692, CVE-2015-7702
Approved by: so
Notes
Notes:
svn path=/releng/9.3/; revision=290001
Diffstat (limited to 'contrib/ntp/tests/ntpd/Makefile.am')
-rw-r--r-- | contrib/ntp/tests/ntpd/Makefile.am | 222 |
1 files changed, 222 insertions, 0 deletions
diff --git a/contrib/ntp/tests/ntpd/Makefile.am b/contrib/ntp/tests/ntpd/Makefile.am new file mode 100644 index 000000000000..2cab14f4c722 --- /dev/null +++ b/contrib/ntp/tests/ntpd/Makefile.am @@ -0,0 +1,222 @@ +NULL = +BUILT_SOURCES = +CLEANFILES = + +std_unity_list = \ + $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \ + $(NULL) + +run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb + +check_PROGRAMS = \ + test-leapsec \ + test-ntp_prio_q \ + $(NULL) +if BUILD_TEST_NTP_RESTRICT +check_PROGRAMS += test-ntp_restrict +endif +if BUILD_TEST_NTP_SCANNER +check_PROGRAMS += test-ntp_scanner +endif +if BUILD_TEST_NTP_SIGND +check_PROGRAMS += test-ntp_signd +endif +check_PROGRAMS += \ + test-rc_cmdlength \ + $(NULL) + +EXTRA_PROGRAMS = \ + test-ntp_restrict \ + test-ntp_scanner \ + test-ntp_signd \ + $(NULL) + + +LDADD = \ + $(top_builddir)/ntpd/libntpd.a \ + $(top_builddir)/libntp/libntp.a \ + $(LDADD_LIBNTP) \ + $(PTHREAD_LIBS) \ + $(LDADD_NTP) \ + $(NULL) + +unity_tests_LDADD = \ + $(LDADD) \ + $(top_builddir)/sntp/unity/libunity.a \ + $(LIBM) \ + $(NULL) + +AM_CFLAGS = $(CFLAGS_NTP) + +AM_CPPFLAGS = $(NTP_INCS) +AM_CPPFLAGS += -I$(top_srcdir)/sntp +AM_CPPFLAGS += -I$(top_srcdir)/ntpd +AM_CPPFLAGS += -I$(top_srcdir)/tests/libntp +AM_CPPFLAGS += $(CPPFLAGS_NTP) +AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H +AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity + +AM_LDFLAGS = $(LDFLAGS_NTP) + +BUILT_SOURCES += \ + $(srcdir)/run-leapsec.c \ + $(srcdir)/run-ntp_prio_q.c \ + $(srcdir)/run-ntp_restrict.c \ + $(srcdir)/run-rc_cmdlength.c \ + $(srcdir)/run-t-ntp_signd.c \ + $(NULL) + +### + +test_leapsec_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +# Might need pthread support +test_leapsec_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_leapsec_SOURCES = \ + leapsec.c \ + run-leapsec.c \ + $(srcdir)/../libntp/test-libntp.c \ + $(NULL) + +$(srcdir)/run-leapsec.c: $(srcdir)/leapsec.c $(std_unity_list) + $(run_unity) leapsec.c run-leapsec.c + +### +test_ntp_prio_q_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_ntp_prio_q_LDADD = \ + $(unity_tests_LDADD) \ + ../../ntpd/ntpdsim-ntp_prio_q.o \ + $(NULL) + +test_ntp_prio_q_SOURCES = \ + ntp_prio_q.c \ + run-ntp_prio_q.c \ + $(srcdir)/../libntp/test-libntp.c \ + $(NULL) + +$(srcdir)/run-ntp_prio_q.c: $(srcdir)/ntp_prio_q.c $(std_unity_list) + $(run_unity) ntp_prio_q.c run-ntp_prio_q.c + + +### +test_ntp_restrict_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_ntp_restrict_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_ntp_restrict_SOURCES = \ + ntp_restrict.c \ + run-ntp_restrict.c \ + $(srcdir)/../libntp/test-libntp.c \ + $(NULL) + +$(srcdir)/run-ntp_restrict.c: $(srcdir)/ntp_restrict.c $(std_unity_list) + $(run_unity) ntp_restrict.c run-ntp_restrict.c + + + +### +test_rc_cmdlength_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_rc_cmdlength_LDADD = \ + $(unity_tests_LDADD) \ + $(NULL) + +test_rc_cmdlength_SOURCES = \ + rc_cmdlength.c \ + run-rc_cmdlength.c \ + $(srcdir)/../libntp/test-libntp.c \ + $(NULL) + +$(srcdir)/run-rc_cmdlength.c: $(srcdir)/rc_cmdlength.c $(std_unity_list) + $(run_unity) rc_cmdlength.c run-rc_cmdlength.c + +### + +test_ntp_signd_LDADD = \ + $(unity_tests_LDADD) \ + $(top_builddir)/ntpd/ntp_config.o \ + $(top_builddir)/ntpd/ntp_io.o \ + $(NULL) + +test_ntp_signd_SOURCES = \ + t-ntp_signd.c \ + run-t-ntp_signd.c \ + $(srcdir)/../libntp/test-libntp.c \ + $(srcdir)/../../ntpd/ntp_signd.c \ + $(NULL) + +$(srcdir)/run-t-ntp_signd.c: $(srcdir)/t-ntp_signd.c $(std_unity_list) + $(run_unity) t-ntp_signd.c run-t-ntp_signd.c + +### +test_ntp_scanner_CFLAGS = \ + -I$(top_srcdir)/sntp/unity \ + $(NULL) + +test_ntp_scanner_LDADD = \ + $(unity_tests_LDADD) \ + $(top_builddir)/ntpd/ntp_config.o \ + $(top_builddir)/ntpd/ntp_parser.o \ + $(NULL) + +test_ntp_scanner_SOURCES = \ + t-ntp_scanner.c \ + run-t-ntp_scanner.c \ + $(srcdir)/../libntp/test-libntp.c \ + $(NULL) + +$(srcdir)/run-t-ntp_scanner.c: $(srcdir)/t-ntp_scanner.c $(std_unity_list) + $(run_unity) t-ntp_scanner.c run-t-ntp_scanner.c + + +TESTS = + +if !NTP_CROSSCOMPILE +TESTS += $(check_PROGRAMS) +endif + +## check-libntp.mf - automake fragment +## slightly adapted for deeper directory + +BUILT_SOURCES += check-libntpd check-libntp check-libunity +CLEANFILES += check-libntpd check-libntp check-libunity + +check-libntpd: ../../ntpd/libntpd.a + @echo stamp > $@ + +../../ntpd/libntpd.a: + cd ../../ntpd && $(MAKE) $(AM_MAKEFLAGS) libntpd.a + + +check-libntp: ../../libntp/libntp.a + @echo stamp > $@ + +../../libntp/libntp.a: + cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a + + +check-libunity: ../../sntp/unity/libunity.a + @echo stamp > $@ + +../../sntp/unity/libunity.a: + cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a + +$(top_builddir)/ntpd/ntpdsim-ntp_prio_q.o: + cd ../../ntpd/ && $(MAKE) $(AM_MAKEFLAGS) ntpdsim-ntp_prio_q.o + +include $(top_srcdir)/depsver.mf +include $(top_srcdir)/includes.mf |