From: Evan Hunt Date: Fri, 15 May 2020 19:57:18 +0000 (-0700) Subject: move wire_test back to bin/tests, no longer dependent on dnstap X-Git-Tag: v9.17.2~72^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e45be9d1349d4feabcb53cbac514a20e76f1a8e3;p=thirdparty%2Fbind9.git move wire_test back to bin/tests, no longer dependent on dnstap wire_test is not only used by the dnstap system test, but also in fuzz testing. it doesn't need to be installed, but it's useful to have it built when BIND is. this commit moves it back from bin/tests/system to bin/tests, as a noinst_PROGRAM so that it's built by "make all" but not installed. --- diff --git a/bin/tests/Makefile.am b/bin/tests/Makefile.am index d4008c0dd03..fc017eb1f28 100644 --- a/bin/tests/Makefile.am +++ b/bin/tests/Makefile.am @@ -1 +1,13 @@ +include $(top_srcdir)/Makefile.top + SUBDIRS = system + +noinst_PROGRAMS = wire_test + +AM_CPPFLAGS += \ + $(LIBISC_CFLAGS) \ + $(LIBDNS_CFLAGS) + +LDADD = \ + $(LIBISC_LIBS) \ + $(LIBDNS_LIBS) diff --git a/bin/tests/system/Makefile.am b/bin/tests/system/Makefile.am index c107e2853a5..003d8698a8b 100644 --- a/bin/tests/system/Makefile.am +++ b/bin/tests/system/Makefile.am @@ -55,18 +55,6 @@ tkey_keydelete_LDADD = \ $(LDADD) \ $(LIBDNS_LIBS) -if HAVE_DNSTAP -check_PROGRAMS += wire_test - -wire_test_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - $(LIBDNS_CFLAGS) - -wire_test_LDADD = \ - $(LDADD) \ - $(LIBDNS_LIBS) -endif HAVE_DNSTAP - TESTS = \ acl \ additional \ diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in index 4088fb4411c..552b7a0edea 100644 --- a/bin/tests/system/conf.sh.in +++ b/bin/tests/system/conf.sh.in @@ -61,7 +61,7 @@ SETTIME=$TOP_BUILDDIR/bin/dnssec/dnssec-settime SIGNER=$TOP_BUILDDIR/bin/dnssec/dnssec-signzone TSIGKEYGEN=$TOP_BUILDDIR/bin/confgen/tsig-keygen VERIFY=$TOP_BUILDDIR/bin/dnssec/dnssec-verify -WIRETEST=$TOP_BUILDDIR/bin/tests/system/wire_test +WIRETEST=$TOP_BUILDDIR/bin/tests/wire_test BIGKEY=$TOP_BUILDDIR/bin/tests/system/rsabigexponent/bigkey GENCHECK=$TOP_BUILDDIR/bin/tests/system/rndc/gencheck diff --git a/bin/tests/system/wire_test.c b/bin/tests/wire_test.c similarity index 100% rename from bin/tests/system/wire_test.c rename to bin/tests/wire_test.c diff --git a/util/copyrights b/util/copyrights index e7a7acee618..35273cb4f88 100644 --- a/util/copyrights +++ b/util/copyrights @@ -929,7 +929,6 @@ ./bin/tests/system/win32/pipequeries.vcxproj.filters.in X 2016,2018,2019,2020 ./bin/tests/system/win32/pipequeries.vcxproj.in X 2016,2017,2018,2019,2020 ./bin/tests/system/win32/pipequeries.vcxproj.user X 2016,2018,2019,2020 -./bin/tests/system/wire_test.c C 2020 ./bin/tests/system/xfer/ans5/badkeydata X 2011,2018,2019,2020 ./bin/tests/system/xfer/ans5/badmessageid X 2020 ./bin/tests/system/xfer/ans5/goodaxfr X 2011,2018,2019,2020 @@ -981,6 +980,7 @@ ./bin/tests/win32/timer_test.vcxproj.filters.in X 2013,2015,2018,2019,2020 ./bin/tests/win32/timer_test.vcxproj.in X 2013,2015,2016,2017,2018,2019,2020 ./bin/tests/win32/timer_test.vcxproj.user X 2013,2018,2019,2020 +./bin/tests/wire_test.c C 1999,2000,2001,2004,2005,2007,2015,2016,2018,2019,2020 ./bin/tools/arpaname.c C 2009,2015,2016,2018,2019,2020 ./bin/tools/arpaname.rst RST 2020 ./bin/tools/dnstap-read.c C 2015,2016,2017,2018,2019,2020