]> 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:06:38 +0000 (14:06 +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 fcc32539cab0385e70eee0fc4238572ca4f379fd..208cf20c7d06e16714911c4b82ec34da97084127 100644 (file)
@@ -19,7 +19,7 @@ SUBDIRS =     dlzexternal dyndb pipelined rndc rpz 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 246cc09b6a010d46579fd4600eab9d2bf2d10ba4..8b9deb604e9d5971cb8e254c0172c281636778e9 100644 (file)
@@ -47,6 +47,7 @@ usage() {
        fprintf(stderr, "       --ipv6only=no\n");
        fprintf(stderr, "       --with-idn\n");
        fprintf(stderr, "       --with-lmdb\n");
+       fprintf(stderr, "       --with-dlz-filesystem\n");
 }
 
 int
@@ -150,6 +151,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 6b91b101141743d3f94e47b566a70b46f5304fef..5b11dad987d3c8f4736c2c36f642f95f083605fa 100644 (file)
@@ -2949,7 +2949,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 109c3503e5a8651d5f53c9dfde3a9ccf1ebe1682..ab4c5c29b14468f09de906e07af0f61dbfaf11de 100644 (file)
 ./bin/tests/system/dlz/ns1/dns-root/com/example/dns.d/@/NS=10=example.com.=    TXT.BRIEF       2010,2016,2018,2019
 ./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/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/clean.sh                SH      2010,2012,2014,2015,2016,2018,2019