|
|
841d88 |
From 3f2fafe5368655225eddf0537e58e425bbc297be Mon Sep 17 00:00:00 2001
|
|
|
d0d728 |
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
|
|
d0d728 |
Date: Wed, 30 Jan 2019 14:37:17 +0100
|
|
|
371a1e |
Subject: [PATCH] Create feature-test in source directory
|
|
|
d0d728 |
|
|
|
d0d728 |
Feature-test tool is used in system tests to test compiled in changes.
|
|
|
d0d728 |
Because we build more variants of named with different configuration,
|
|
|
d0d728 |
compile feature-test for each of them this way.
|
|
|
841d88 |
|
|
|
841d88 |
Named variant specific feature-test does not have defined gss support,
|
|
|
841d88 |
even when it was enabled by configure. bin/tests/system Makefile defines
|
|
|
841d88 |
it, so define it also in named variants.
|
|
|
d0d728 |
---
|
|
|
841d88 |
bin/named/Makefile.in | 13 +++++++++++--
|
|
|
d0d728 |
bin/tests/system/conf.sh.in | 2 +-
|
|
|
841d88 |
2 files changed, 12 insertions(+), 3 deletions(-)
|
|
|
d0d728 |
|
|
|
d0d728 |
diff --git a/bin/named/Makefile.in b/bin/named/Makefile.in
|
|
|
841d88 |
index 3166368..70e5571 100644
|
|
|
d0d728 |
--- a/bin/named/Makefile.in
|
|
|
d0d728 |
+++ b/bin/named/Makefile.in
|
|
|
841d88 |
@@ -48,7 +48,7 @@ CINCLUDES = -I${srcdir}/include -I${srcdir}/unix/include -I. \
|
|
|
841d88 |
${DLZDRIVER_INCLUDES} ${DBDRIVER_INCLUDES} ${MAXMINDDB_CFLAGS} \
|
|
|
841d88 |
@DST_OPENSSL_INC@
|
|
|
841d88 |
|
|
|
841d88 |
-CDEFINES = @CONTRIB_DLZ@ @USE_PKCS11@ @PKCS11_ENGINE@ @CRYPTO@
|
|
|
841d88 |
+CDEFINES = @CONTRIB_DLZ@ @USE_PKCS11@ @PKCS11_ENGINE@ @USE_GSSAPI@ @CRYPTO@
|
|
|
841d88 |
|
|
|
841d88 |
CWARNINGS =
|
|
|
841d88 |
|
|
|
371a1e |
@@ -80,7 +80,7 @@ NOSYMLIBS = ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
|
|
d0d728 |
|
|
|
d0d728 |
SUBDIRS = unix
|
|
|
d0d728 |
|
|
|
d0d728 |
-TARGETS = named@EXEEXT@ lwresd@EXEEXT@
|
|
|
d0d728 |
+TARGETS = named@EXEEXT@ lwresd@EXEEXT@ feature-test@EXEEXT@
|
|
|
d0d728 |
|
|
|
d0d728 |
GEOIPLINKOBJS = geoip.@O@
|
|
|
371a1e |
GEOIP2LINKOBJS = geoip.@O@
|
|
|
371a1e |
@@ -163,6 +163,15 @@ lwresd@EXEEXT@: named@EXEEXT@
|
|
|
d0d728 |
rm -f lwresd@EXEEXT@
|
|
|
d0d728 |
@LN@ named@EXEEXT@ lwresd@EXEEXT@
|
|
|
d0d728 |
|
|
|
d0d728 |
+# Bit of hack, do not produce intermediate .o object for featuretest
|
|
|
d0d728 |
+feature-test.@O@: ${top_srcdir}/bin/tests/system/feature-test.c
|
|
|
d0d728 |
+ ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
|
|
d0d728 |
+ -c ${top_srcdir}/bin/tests/system/feature-test.c
|
|
|
d0d728 |
+
|
|
|
d0d728 |
+feature-test@EXEEXT@: feature-test.@O@
|
|
|
d0d728 |
+ ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
|
|
|
d0d728 |
+ -o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
|
|
|
d0d728 |
+
|
|
|
d0d728 |
doc man:: ${MANOBJS}
|
|
|
d0d728 |
|
|
|
d0d728 |
docclean manclean maintainer-clean::
|
|
|
d0d728 |
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
|
|
|
841d88 |
index cedabbe..e1bf5da 100644
|
|
|
d0d728 |
--- a/bin/tests/system/conf.sh.in
|
|
|
d0d728 |
+++ b/bin/tests/system/conf.sh.in
|
|
|
371a1e |
@@ -71,7 +71,7 @@ DNSTAPREAD=$TOP/bin/tools/dnstap-read
|
|
|
d0d728 |
MDIG=$TOP/bin/tools/mdig
|
|
|
d0d728 |
NZD2NZF=$TOP/bin/tools/named-nzd2nzf
|
|
|
d0d728 |
FSTRM_CAPTURE=@FSTRM_CAPTURE@
|
|
|
d0d728 |
-FEATURETEST=$TOP/bin/tests/system/feature-test
|
|
|
d0d728 |
+FEATURETEST=$TOP/bin/named/feature-test
|
|
|
d0d728 |
|
|
|
d0d728 |
RANDFILE=$TOP/bin/tests/system/random.data
|
|
|
d0d728 |
|
|
|
d0d728 |
--
|
|
|
d0d728 |
2.20.1
|
|
|
d0d728 |
|