|
|
cf16a9 |
From e645046202006750f87531e21e3ff7c26fba3466 Mon Sep 17 00:00:00 2001
|
|
|
cf16a9 |
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
|
|
cf16a9 |
Date: Wed, 30 Jan 2019 14:37:17 +0100
|
|
|
cf16a9 |
Subject: [PATCH] Create feature-test in source directory
|
|
|
cf16a9 |
|
|
|
cf16a9 |
Feature-test tool is used in system tests to test compiled in changes.
|
|
|
cf16a9 |
Because we build more variants of named with different configuration,
|
|
|
cf16a9 |
compile feature-test for each of them this way.
|
|
|
cf16a9 |
---
|
|
|
cf16a9 |
bin/named/Makefile.in | 12 +++++++++++-
|
|
|
cf16a9 |
bin/tests/system/conf.sh.in | 2 +-
|
|
|
cf16a9 |
2 files changed, 12 insertions(+), 2 deletions(-)
|
|
|
cf16a9 |
|
|
|
cf16a9 |
diff --git a/bin/named/Makefile.in b/bin/named/Makefile.in
|
|
|
cf16a9 |
index 37053a7..ed9add2 100644
|
|
|
cf16a9 |
--- a/bin/named/Makefile.in
|
|
|
cf16a9 |
+++ b/bin/named/Makefile.in
|
|
|
cf16a9 |
@@ -91,7 +91,7 @@ NOSYMLIBS = ${NSLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
|
|
cf16a9 |
|
|
|
cf16a9 |
SUBDIRS = unix
|
|
|
cf16a9 |
|
|
|
cf16a9 |
-TARGETS = named@EXEEXT@
|
|
|
cf16a9 |
+TARGETS = named@EXEEXT@ feature-test@EXEEXT@
|
|
|
cf16a9 |
|
|
|
cf16a9 |
GEOIP2LINKOBJS = geoip.@O@
|
|
|
cf16a9 |
|
|
|
cf16a9 |
@@ -154,6 +154,16 @@ named@EXEEXT@: ${OBJS} ${DEPLIBS}
|
|
|
cf16a9 |
export BASEOBJS="${OBJS} ${UOBJS}"; \
|
|
|
cf16a9 |
${FINALBUILDCMD}
|
|
|
cf16a9 |
|
|
|
cf16a9 |
+# Bit of hack, do not produce intermediate .o object for featuretest
|
|
|
cf16a9 |
+feature-test.@O@: ${top_srcdir}/bin/tests/system/feature-test.c
|
|
|
cf16a9 |
+ ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
|
|
cf16a9 |
+ -c ${top_srcdir}/bin/tests/system/feature-test.c
|
|
|
cf16a9 |
+
|
|
|
cf16a9 |
+feature-test@EXEEXT@: feature-test.@O@
|
|
|
cf16a9 |
+ ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
|
|
|
cf16a9 |
+ -o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
|
|
|
cf16a9 |
+
|
|
|
cf16a9 |
+
|
|
|
cf16a9 |
clean distclean maintainer-clean::
|
|
|
cf16a9 |
rm -f ${TARGETS} ${OBJS}
|
|
|
cf16a9 |
|
|
|
cf16a9 |
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
|
|
|
cf16a9 |
index 7934930..e84fde2 100644
|
|
|
cf16a9 |
--- a/bin/tests/system/conf.sh.in
|
|
|
cf16a9 |
+++ b/bin/tests/system/conf.sh.in
|
|
|
cf16a9 |
@@ -37,7 +37,7 @@ DELV=$TOP/bin/delv/delv
|
|
|
cf16a9 |
DIG=$TOP/bin/dig/dig
|
|
|
cf16a9 |
DNSTAPREAD=$TOP/bin/tools/dnstap-read
|
|
|
cf16a9 |
DSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
|
|
|
cf16a9 |
-FEATURETEST=$TOP/bin/tests/system/feature-test
|
|
|
cf16a9 |
+FEATURETEST=$TOP/bin/named/feature-test
|
|
|
cf16a9 |
FSTRM_CAPTURE=@FSTRM_CAPTURE@
|
|
|
cf16a9 |
HOST=$TOP/bin/dig/host
|
|
|
cf16a9 |
IMPORTKEY=$TOP/bin/dnssec/dnssec-importkey
|
|
|
cf16a9 |
--
|
|
|
cf16a9 |
2.26.2
|
|
|
cf16a9 |
|