From 32247dc997d4776170faba5a2f3dd0be857c155e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 23 Apr 2020 08:07:07 +0200 Subject: [PATCH] Build wire_test The bin/tests/wire_test helper program is currently not included in any Makefile.am file. Move its source code to bin/tests/system and build it along other helper tools when dnstap support is requested as the "dnstap" system test needs this tool in order to pass. --- bin/tests/system/Makefile.am | 16 ++++++++++++++-- bin/tests/system/conf.sh.in | 2 +- bin/tests/{ => system}/wire_test.c | 0 util/copyrights | 1 - 4 files changed, 15 insertions(+), 4 deletions(-) rename bin/tests/{ => system}/wire_test.c (100%) diff --git a/bin/tests/system/Makefile.am b/bin/tests/system/Makefile.am index 17fa9d1205..cca65fa19e 100644 --- a/bin/tests/system/Makefile.am +++ b/bin/tests/system/Makefile.am @@ -43,7 +43,7 @@ tkey_keycreate_CPPFLAGS = \ $(AM_CPPFLAGS) \ $(LIBDNS_CFLAGS) -tkey_keycreate_LDADD = \ +tkey_keycreate_LDADD = \ $(LDADD) \ $(LIBDNS_LIBS) @@ -51,10 +51,22 @@ tkey_keydelete_CPPFLAGS = \ $(AM_CPPFLAGS) \ $(LIBDNS_CFLAGS) -tkey_keydelete_LDADD = \ +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 addzone allow-query auth autosign \ builtin cacheclean case catz cds \ diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in index 65dbdeddb2..dc9b73be7c 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/wire_test +WIRETEST=$TOP_BUILDDIR/bin/tests/system/wire_test BIGKEY=$TOP_BUILDDIR/bin/tests/system/rsabigexponent/bigkey GENCHECK=$TOP_BUILDDIR/bin/tests/system/rndc/gencheck diff --git a/bin/tests/wire_test.c b/bin/tests/system/wire_test.c similarity index 100% rename from bin/tests/wire_test.c rename to bin/tests/system/wire_test.c diff --git a/util/copyrights b/util/copyrights index 293a843c85..2aa21cca2b 100644 --- a/util/copyrights +++ b/util/copyrights @@ -1023,7 +1023,6 @@ ./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.1 MAN DOCBOOK ./bin/tools/arpaname.c C 2009,2015,2016,2018,2019,2020 ./bin/tools/arpaname.docbook SGML 2009,2014,2015,2016,2018,2019,2020