]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Build wire_test
authorMichał Kępień <michal@isc.org>
Thu, 23 Apr 2020 06:07:07 +0000 (08:07 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 24 Apr 2020 14:11:20 +0000 (16:11 +0200)
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
bin/tests/system/conf.sh.in
bin/tests/system/wire_test.c [moved from bin/tests/wire_test.c with 100% similarity]
util/copyrights

index 17fa9d1205c3965ce3863e2753d9df427aeb9089..cca65fa19e0f9d7c1a234a79b00340860a574617 100644 (file)
@@ -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 \
index 65dbdeddb2b2c757cddfe801e8b383ac9c0bcae5..dc9b73be7ced188fc120bc02516340e210a202f8 100644 (file)
@@ -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
index 293a843c85b746976591da5c6f53427e7a75c801..2aa21cca2b2a6f42be7fbb8ce981f8d2b4b849d9 100644 (file)
 ./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