2020-04-16 09:39:29 +00:00
|
|
|
From 64f29512679fd00c89473d93d8b22017b018dd8f Mon Sep 17 00:00:00 2001
|
2019-02-28 17:17:53 +00:00
|
|
|
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
|
|
|
Date: Wed, 30 Jan 2019 14:37:17 +0100
|
2019-07-24 17:05:06 +00:00
|
|
|
Subject: [PATCH] Create feature-test in source directory
|
2019-02-28 17:17:53 +00:00
|
|
|
|
|
|
|
Feature-test tool is used in system tests to test compiled in changes.
|
|
|
|
Because we build more variants of named with different configuration,
|
|
|
|
compile feature-test for each of them this way.
|
|
|
|
---
|
2019-07-23 13:18:22 +00:00
|
|
|
bin/named/Makefile.in | 11 ++++++++++-
|
2019-02-28 17:17:53 +00:00
|
|
|
bin/tests/system/conf.sh.in | 2 +-
|
2019-07-23 13:18:22 +00:00
|
|
|
2 files changed, 11 insertions(+), 2 deletions(-)
|
2019-02-28 17:17:53 +00:00
|
|
|
|
|
|
|
diff --git a/bin/named/Makefile.in b/bin/named/Makefile.in
|
2020-03-26 20:46:02 +00:00
|
|
|
index dd25774..cb187e5 100644
|
2019-02-28 17:17:53 +00:00
|
|
|
--- a/bin/named/Makefile.in
|
|
|
|
+++ b/bin/named/Makefile.in
|
2020-03-26 20:46:02 +00:00
|
|
|
@@ -87,7 +87,7 @@ NOSYMLIBS = ${NSLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
2019-02-28 17:17:53 +00:00
|
|
|
|
|
|
|
SUBDIRS = unix
|
|
|
|
|
2019-07-23 13:18:22 +00:00
|
|
|
-TARGETS = named@EXEEXT@
|
|
|
|
+TARGETS = named@EXEEXT@ feature-test@EXEEXT@
|
2019-02-28 17:17:53 +00:00
|
|
|
|
2019-07-24 10:50:29 +00:00
|
|
|
GEOIP2LINKOBJS = geoip.@O@
|
2020-03-26 20:46:02 +00:00
|
|
|
|
|
|
|
@@ -156,6 +156,15 @@ named@EXEEXT@: ${OBJS} ${DEPLIBS}
|
2019-07-23 13:18:22 +00:00
|
|
|
export BASEOBJS="${OBJS} ${UOBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
2019-02-28 17:17:53 +00:00
|
|
|
|
|
|
|
+# Bit of hack, do not produce intermediate .o object for featuretest
|
|
|
|
+feature-test.@O@: ${top_srcdir}/bin/tests/system/feature-test.c
|
|
|
|
+ ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
|
|
|
+ -c ${top_srcdir}/bin/tests/system/feature-test.c
|
|
|
|
+
|
|
|
|
+feature-test@EXEEXT@: feature-test.@O@
|
|
|
|
+ ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
|
|
|
|
+ -o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
|
|
|
|
+
|
|
|
|
doc man:: ${MANOBJS}
|
|
|
|
|
|
|
|
docclean manclean maintainer-clean::
|
|
|
|
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
|
2020-04-16 09:39:29 +00:00
|
|
|
index 2317bd8..5015d5c 100644
|
2019-02-28 17:17:53 +00:00
|
|
|
--- a/bin/tests/system/conf.sh.in
|
|
|
|
+++ b/bin/tests/system/conf.sh.in
|
2020-03-26 20:46:02 +00:00
|
|
|
@@ -37,7 +37,7 @@ DELV=$TOP/bin/delv/delv
|
2019-07-23 13:18:22 +00:00
|
|
|
DIG=$TOP/bin/dig/dig
|
|
|
|
DNSTAPREAD=$TOP/bin/tools/dnstap-read
|
|
|
|
DSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
|
2019-02-28 17:17:53 +00:00
|
|
|
-FEATURETEST=$TOP/bin/tests/system/feature-test
|
|
|
|
+FEATURETEST=$TOP/bin/named/feature-test
|
2019-07-23 13:18:22 +00:00
|
|
|
FSTRM_CAPTURE=@FSTRM_CAPTURE@
|
2020-04-16 09:39:29 +00:00
|
|
|
HOST=$TOP/bin/dig/host
|
2019-07-23 13:18:22 +00:00
|
|
|
IMPORTKEY=$TOP/bin/dnssec/dnssec-importkey
|
2019-02-28 17:17:53 +00:00
|
|
|
--
|
2020-03-26 20:46:02 +00:00
|
|
|
2.21.1
|
2019-02-28 17:17:53 +00:00
|
|
|
|