]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Support DLZ filesystem detection in feature-test
authorPetr Menšík <pemensik@redhat.com>
Wed, 30 Jan 2019 14:12:54 +0000 (15:12 +0100)
committerMark Andrews <marka@isc.org>
Mon, 4 Mar 2019 03:10:16 +0000 (14:10 +1100)
Do not use variable from configure to detect the feature.

(cherry picked from commit 759a7b4ce31040f3cceec0d219e379dd1b1dfea9)

bin/tests/system/Makefile.in
bin/tests/system/dlz/prereq.sh [moved from bin/tests/system/dlz/prereq.sh.in with 91% similarity]
bin/tests/system/feature-test.c
configure.ac
util/copyrights

index c18b4c53e3917ef70b26a69e9674ddfe449617b6..dea2f7573d822dbf782dc6573b5da9d244b6d5cc 100644 (file)
@@ -19,7 +19,7 @@ SUBDIRS =     dlzexternal dyndb lwresd pipelined rndc rsabigexponent tkey
 
 CINCLUDES =    ${ISC_INCLUDES} ${DNS_INCLUDES}
 
-CDEFINES =     @USE_GSSAPI@
+CDEFINES =     @USE_GSSAPI@ @CONTRIB_DLZ@
 CWARNINGS =
 
 DNSLIBS =
similarity index 91%
rename from bin/tests/system/dlz/prereq.sh.in
rename to bin/tests/system/dlz/prereq.sh
index afec653e0d953a09ced2a18fda9b2a45271664e5..fb3328e409786077d296277183be6f390008ccd2 100644 (file)
@@ -12,7 +12,7 @@
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
-if [ "@DLZ_SYSTEM_TEST@" != "filesystem" ]; then
+if ! $FEATURETEST --with-dlz-filesystem; then
         echo_i "DLZ filesystem driver not supported"
         exit 255
 fi
index f934b6356e6ed65690d0dff83b5f4014683460e7..3ac34e83d1499d2a8ef5a59f8637f8abc6f957fe 100644 (file)
@@ -49,6 +49,7 @@ usage() {
        fprintf(stderr, "       --rpz-nsip\n");
        fprintf(stderr, "       --with-idn\n");
        fprintf(stderr, "       --with-lmdb\n");
+       fprintf(stderr, "       --with-dlz-filesystem\n");
 }
 
 int
@@ -168,6 +169,14 @@ main(int argc, char **argv) {
 #endif
        }
 
+       if (strcmp(argv[1], "--with-dlz-filesystem") == 0) {
+#ifdef DLZ_FILESYSTEM
+               return (0);
+#else
+               return (1);
+#endif
+       }
+
        if (strcmp(argv[1], "--ipv6only=no") == 0) {
 #ifdef WIN32
                return (0);
index 26c509e74242ef6b0e9e4fa7ffe6d565195ee02b..dd478760fbeb1d0bcb6fb9f0f37551907f9097ef 100644 (file)
@@ -5389,7 +5389,6 @@ AC_CONFIG_FILES([
        bin/tests/pkcs11/benchmarks/Makefile
        bin/tests/system/Makefile
        bin/tests/system/conf.sh
-       bin/tests/system/dlz/prereq.sh
        bin/tests/system/dlzexternal/Makefile
        bin/tests/system/dlzexternal/ns1/dlzs.conf
        bin/tests/system/dyndb/Makefile
index 2f080ab95063cbf11addf987dcd5c2dbef55f4e3..d73e274fbc9b092f8f62b546539737ddf013b6a5 100644 (file)
 ./bin/tests/system/dlz/ns1/dns-root/com/example/dns.d/@/SOA=10=ns.example.com.=root.example.com.=2010062900=0=0=0=10=  TXT.BRIEF       2010,2016,2018,2019
 ./bin/tests/system/dlz/ns1/dns-root/com/example/xfr.d/10.53.0.1        TXT.BRIEF       2010,2016,2018,2019
 ./bin/tests/system/dlz/ns1/named.conf.in       CONF-C  2018,2019
-./bin/tests/system/dlz/prereq.sh.in            SH      2011,2012,2016,2018,2019
+./bin/tests/system/dlz/prereq.sh               SH      2011,2012,2016,2018,2019
 ./bin/tests/system/dlz/setup.sh                        SH      2018,2019
 ./bin/tests/system/dlz/tests.sh                        SH      2010,2011,2012,2013,2015,2016,2018,2019
 ./bin/tests/system/dlzexternal/Makefile.in     MAKE    2011,2012,2014,2015,2016,2017,2018,2019