2024-08-07 18:42:03 +00:00
|
|
|
From e9e7069ede766fa5c881517bdae74e2fc6682398 Mon Sep 17 00:00:00 2001
|
2023-02-27 17:22:46 +00:00
|
|
|
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
|
|
|
Date: Wed, 30 Jan 2019 14:37:17 +0100
|
|
|
|
Subject: [PATCH] Create feature-test in source directory
|
|
|
|
|
|
|
|
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.
|
2024-08-07 18:42:03 +00:00
|
|
|
|
|
|
|
Make gsstsig test supported
|
2023-02-27 17:22:46 +00:00
|
|
|
---
|
2024-08-07 18:42:03 +00:00
|
|
|
bin/named/Makefile.in | 14 ++++++++++++--
|
2023-02-27 17:22:46 +00:00
|
|
|
bin/tests/system/conf.sh.in | 2 +-
|
2024-08-07 18:42:03 +00:00
|
|
|
2 files changed, 13 insertions(+), 3 deletions(-)
|
2023-02-27 17:22:46 +00:00
|
|
|
|
|
|
|
diff --git a/bin/named/Makefile.in b/bin/named/Makefile.in
|
2024-08-07 18:42:03 +00:00
|
|
|
index debb906adc..dd894fe934 100644
|
2023-02-27 17:22:46 +00:00
|
|
|
--- a/bin/named/Makefile.in
|
|
|
|
+++ b/bin/named/Makefile.in
|
2024-08-07 18:42:03 +00:00
|
|
|
@@ -56,7 +56,7 @@ CINCLUDES = -I${srcdir}/include -I${srcdir}/unix/include -I. \
|
|
|
|
${LIBXML2_CFLAGS} \
|
|
|
|
${MAXMINDDB_CFLAGS}
|
|
|
|
|
|
|
|
-CDEFINES = @CONTRIB_DLZ@
|
|
|
|
+CDEFINES = @USE_GSSAPI@ @CONTRIB_DLZ@
|
|
|
|
|
|
|
|
CWARNINGS =
|
|
|
|
|
|
|
|
@@ -93,7 +93,7 @@ NOSYMLIBS = ${NSLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
2023-02-27 17:22:46 +00:00
|
|
|
|
|
|
|
SUBDIRS = unix
|
|
|
|
|
|
|
|
-TARGETS = named@EXEEXT@
|
|
|
|
+TARGETS = named@EXEEXT@ feature-test@EXEEXT@
|
|
|
|
|
|
|
|
GEOIP2LINKOBJS = geoip.@O@
|
|
|
|
|
2024-08-07 18:42:03 +00:00
|
|
|
@@ -156,6 +156,16 @@ named@EXEEXT@: ${OBJS} ${DEPLIBS}
|
2023-02-27 17:22:46 +00:00
|
|
|
export BASEOBJS="${OBJS} ${UOBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
|
|
|
|
|
|
|
+# 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}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
clean distclean maintainer-clean::
|
|
|
|
rm -f ${TARGETS} ${OBJS}
|
|
|
|
|
|
|
|
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
|
2024-08-07 18:42:03 +00:00
|
|
|
index 9a61622143..f69c5be334 100644
|
2023-02-27 17:22:46 +00:00
|
|
|
--- a/bin/tests/system/conf.sh.in
|
|
|
|
+++ b/bin/tests/system/conf.sh.in
|
2024-08-07 18:42:03 +00:00
|
|
|
@@ -38,7 +38,7 @@ DELV=$TOP/bin/delv/delv
|
2023-02-27 17:22:46 +00:00
|
|
|
DIG=$TOP/bin/dig/dig
|
|
|
|
DNSTAPREAD=$TOP/bin/tools/dnstap-read
|
|
|
|
DSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
|
|
|
|
-FEATURETEST=$TOP/bin/tests/system/feature-test
|
|
|
|
+FEATURETEST=$TOP/bin/named/feature-test
|
|
|
|
FSTRM_CAPTURE=@FSTRM_CAPTURE@
|
|
|
|
HOST=$TOP/bin/dig/host
|
|
|
|
IMPORTKEY=$TOP/bin/dnssec/dnssec-importkey
|
|
|
|
--
|
2024-08-07 18:42:03 +00:00
|
|
|
2.45.2
|
2023-02-27 17:22:46 +00:00
|
|
|
|