]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Move resconf_test.c to tests/dns and cleanup
authorMark Andrews <marka@isc.org>
Wed, 11 Dec 2024 01:28:40 +0000 (12:28 +1100)
committerMark Andrews <marka@isc.org>
Thu, 12 Dec 2024 22:16:36 +0000 (22:16 +0000)
25 files changed:
configure.ac
tests/Makefile.am
tests/dns/Makefile.am
tests/dns/resconf_test.c [moved from tests/irs/resconf_test.c with 68% similarity]
tests/dns/testdata/resconf/domain.conf [moved from tests/irs/testdata/domain.conf with 100% similarity]
tests/dns/testdata/resconf/nameserver-v4.conf [moved from tests/irs/testdata/nameserver-v4.conf with 100% similarity]
tests/dns/testdata/resconf/nameserver-v6-scoped.conf [moved from tests/irs/testdata/nameserver-v6-scoped.conf with 100% similarity]
tests/dns/testdata/resconf/nameserver-v6.conf [moved from tests/irs/testdata/nameserver-v6.conf with 100% similarity]
tests/dns/testdata/resconf/options-attempts.conf [moved from tests/irs/testdata/options-attempts.conf with 100% similarity]
tests/dns/testdata/resconf/options-bad-ndots.conf [moved from tests/irs/testdata/options-bad-ndots.conf with 100% similarity]
tests/dns/testdata/resconf/options-debug.conf [moved from tests/irs/testdata/options-debug.conf with 100% similarity]
tests/dns/testdata/resconf/options-empty.conf [moved from tests/irs/testdata/options-empty.conf with 100% similarity]
tests/dns/testdata/resconf/options-ndots.conf [moved from tests/irs/testdata/options-ndots.conf with 100% similarity]
tests/dns/testdata/resconf/options-timeout.conf [moved from tests/irs/testdata/options-timeout.conf with 100% similarity]
tests/dns/testdata/resconf/options-unknown.conf [moved from tests/irs/testdata/options-unknown.conf with 100% similarity]
tests/dns/testdata/resconf/options.conf [moved from tests/irs/testdata/options.conf with 100% similarity]
tests/dns/testdata/resconf/port.conf [moved from tests/irs/testdata/port.conf with 100% similarity]
tests/dns/testdata/resconf/resolv.conf [moved from tests/irs/testdata/resolv.conf with 100% similarity]
tests/dns/testdata/resconf/search.conf [moved from tests/irs/testdata/search.conf with 100% similarity]
tests/dns/testdata/resconf/sortlist-v4.conf [moved from tests/irs/testdata/sortlist-v4.conf with 100% similarity]
tests/dns/testdata/resconf/timeout.conf [moved from tests/irs/testdata/timeout.conf with 100% similarity]
tests/dns/testdata/resconf/unknown+search.conf [moved from tests/irs/testdata/unknown+search.conf with 100% similarity]
tests/dns/testdata/resconf/unknown-with-value.conf [moved from tests/irs/testdata/unknown-with-value.conf with 100% similarity]
tests/dns/testdata/resconf/unknown-without-value.conf [moved from tests/irs/testdata/unknown-without-value.conf with 100% similarity]
tests/irs/Makefile.am [deleted file]

index caad12ef021740e85bdba3e4c693323e434dfdde..4ac7264ab41d2cc322d6bbb4903a8c4bbac51c4b 100644 (file)
@@ -1437,7 +1437,6 @@ AC_CONFIG_FILES([tests/Makefile
                 tests/isc/Makefile
                 tests/dns/Makefile
                 tests/ns/Makefile
-                tests/irs/Makefile
                 tests/isccfg/Makefile
                 tests/libtest/Makefile])
 
index 9e27f39289578903ab80c9db8357effb63eaf30d..c9240727ba6d9b4e72a6f6cffa56ed7c39a6ca32 100644 (file)
@@ -15,7 +15,7 @@ LDADD +=                      \
 SUBDIRS = libtest
 
 if HAVE_CMOCKA
-SUBDIRS += isc dns ns isccfg irs bench
+SUBDIRS += isc dns ns isccfg bench
 endif HAVE_CMOCKA
 
 check_PROGRAMS =
index 8d33cc46f349f60a52f6e59b61b6d6acf857f7c1..0eb30dcabf478c0c16585d3419420acb4dee8f17 100644 (file)
@@ -42,6 +42,7 @@ check_PROGRAMS =              \
        rdata_test              \
        rdataset_test           \
        rdatasetstats_test      \
+       resconf_test            \
        resolver_test           \
        rsa_test                \
        sigs_test               \
similarity index 68%
rename from tests/irs/resconf_test.c
rename to tests/dns/resconf_test.c
index f9d22d9d34761916828c43cb19e613b15ae0f2fd..dae666a6a5aa4aec61ebe59b061dc3e2551869ae 100644 (file)
@@ -122,44 +122,46 @@ ISC_RUN_TEST_IMPL(irs_resconf_load) {
                isc_result_t loadres;
                isc_result_t (*check)(irs_resconf_t *resconf);
                isc_result_t checkres;
-       } tests[] = {
-               { "testdata/domain.conf", ISC_R_SUCCESS, NULL, ISC_R_SUCCESS },
-               { "testdata/nameserver-v4.conf", ISC_R_SUCCESS, check_ns4,
-                 ISC_R_SUCCESS },
-               { "testdata/nameserver-v6.conf", ISC_R_SUCCESS, check_ns6,
-                 ISC_R_SUCCESS },
-               { "testdata/nameserver-v6-scoped.conf", ISC_R_SUCCESS,
-                 check_scoped, ISC_R_SUCCESS },
-               { "testdata/options-attempts.conf", ISC_R_SUCCESS,
-                 check_attempts, ISC_R_SUCCESS },
-               { "testdata/options-debug.conf", ISC_R_SUCCESS, NULL,
-                 ISC_R_SUCCESS },
-               { "testdata/options-ndots.conf", ISC_R_SUCCESS, check_ndots,
-                 ISC_R_SUCCESS },
-               { "testdata/options-timeout.conf", ISC_R_SUCCESS, check_timeout,
-                 ISC_R_SUCCESS },
-               { "testdata/options-unknown.conf", ISC_R_SUCCESS, NULL,
-                 ISC_R_SUCCESS },
-               { "testdata/options.conf", ISC_R_SUCCESS, check_options,
-                 ISC_R_SUCCESS },
-               { "testdata/options-bad-ndots.conf", ISC_R_RANGE, NULL,
-                 ISC_R_SUCCESS },
-               { "testdata/options-empty.conf", ISC_R_UNEXPECTEDEND, NULL,
-                 ISC_R_SUCCESS },
-               { "testdata/port.conf", ISC_R_SUCCESS, NULL, ISC_R_SUCCESS },
-               { "testdata/resolv.conf", ISC_R_SUCCESS, NULL, ISC_R_SUCCESS },
-               { "testdata/search.conf", ISC_R_SUCCESS, search_example,
-                 ISC_R_SUCCESS },
-               { "testdata/sortlist-v4.conf", ISC_R_SUCCESS, NULL,
-                 ISC_R_SUCCESS },
-               { "testdata/timeout.conf", ISC_R_SUCCESS, NULL, ISC_R_SUCCESS },
-               { "testdata/unknown-with-value.conf", ISC_R_SUCCESS, NULL,
-                 ISC_R_SUCCESS },
-               { "testdata/unknown-without-value.conf", ISC_R_SUCCESS, NULL,
-                 ISC_R_SUCCESS },
-               { "testdata/unknown+search.conf", ISC_R_SUCCESS, search_example,
-                 ISC_R_SUCCESS }
-       };
+       } tests[] = { { "testdata/resconf/domain.conf", ISC_R_SUCCESS, NULL,
+                       ISC_R_SUCCESS },
+                     { "testdata/resconf/nameserver-v4.conf", ISC_R_SUCCESS,
+                       check_ns4, ISC_R_SUCCESS },
+                     { "testdata/resconf/nameserver-v6.conf", ISC_R_SUCCESS,
+                       check_ns6, ISC_R_SUCCESS },
+                     { "testdata/resconf/nameserver-v6-scoped.conf",
+                       ISC_R_SUCCESS, check_scoped, ISC_R_SUCCESS },
+                     { "testdata/resconf/options-attempts.conf", ISC_R_SUCCESS,
+                       check_attempts, ISC_R_SUCCESS },
+                     { "testdata/resconf/options-debug.conf", ISC_R_SUCCESS,
+                       NULL, ISC_R_SUCCESS },
+                     { "testdata/resconf/options-ndots.conf", ISC_R_SUCCESS,
+                       check_ndots, ISC_R_SUCCESS },
+                     { "testdata/resconf/options-timeout.conf", ISC_R_SUCCESS,
+                       check_timeout, ISC_R_SUCCESS },
+                     { "testdata/resconf/options-unknown.conf", ISC_R_SUCCESS,
+                       NULL, ISC_R_SUCCESS },
+                     { "testdata/resconf/options.conf", ISC_R_SUCCESS,
+                       check_options, ISC_R_SUCCESS },
+                     { "testdata/resconf/options-bad-ndots.conf", ISC_R_RANGE,
+                       NULL, ISC_R_SUCCESS },
+                     { "testdata/resconf/options-empty.conf",
+                       ISC_R_UNEXPECTEDEND, NULL, ISC_R_SUCCESS },
+                     { "testdata/resconf/port.conf", ISC_R_SUCCESS, NULL,
+                       ISC_R_SUCCESS },
+                     { "testdata/resconf/resolv.conf", ISC_R_SUCCESS, NULL,
+                       ISC_R_SUCCESS },
+                     { "testdata/resconf/search.conf", ISC_R_SUCCESS,
+                       search_example, ISC_R_SUCCESS },
+                     { "testdata/resconf/sortlist-v4.conf", ISC_R_SUCCESS,
+                       NULL, ISC_R_SUCCESS },
+                     { "testdata/resconf/timeout.conf", ISC_R_SUCCESS, NULL,
+                       ISC_R_SUCCESS },
+                     { "testdata/resconf/unknown-with-value.conf",
+                       ISC_R_SUCCESS, NULL, ISC_R_SUCCESS },
+                     { "testdata/resconf/unknown-without-value.conf",
+                       ISC_R_SUCCESS, NULL, ISC_R_SUCCESS },
+                     { "testdata/resconf/unknown+search.conf", ISC_R_SUCCESS,
+                       search_example, ISC_R_SUCCESS } };
 
        UNUSED(state);
 
diff --git a/tests/irs/Makefile.am b/tests/irs/Makefile.am
deleted file mode 100644 (file)
index 5bf0846..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-include $(top_srcdir)/Makefile.top
-
-AM_CPPFLAGS +=                 \
-       $(LIBISC_CFLAGS)        \
-       $(LIBDNS_CFLAGS)
-
-LDADD +=                       \
-       $(LIBISC_LIBS)          \
-       $(LIBDNS_LIBS)
-
-check_PROGRAMS =               \
-       resconf_test
-
-EXTRA_DIST = testdata
-
-include $(top_srcdir)/Makefile.tests