Commit 9d8bab64 authored by Mark Andrews's avatar Mark Andrews Committed by Michał Kępień
Browse files

return untested if not built with OPENSSL or PKCS11CRYPTO

(cherry picked from commit 2420320b)
parent 31283484
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
#include <atf-c.h> #include <atf-c.h>
#include <isc/util.h>
#if defined(OPENSSL) || defined(PKCS11CRYPTO)
#include <dns/db.h> #include <dns/db.h>
#include <dns/dnssec.h> #include <dns/dnssec.h>
#include <dns/rdatatype.h> #include <dns/rdatatype.h>
...@@ -437,9 +440,23 @@ ATF_TC_BODY(updatesigs, tc) { ...@@ -437,9 +440,23 @@ ATF_TC_BODY(updatesigs, tc) {
dns_test_end(); dns_test_end();
} }
#else
ATF_TC(untested);
ATF_TC_HEAD(untested, tc) {
atf_tc_set_md_var(tc, "descr", "skipping dns__zone_updatesigs() test");
}
ATF_TC_BODY(untested, tc) {
UNUSED(tc);
atf_tc_skip("DNSSEC support not compiled in");
}
#endif
ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TCS(tp) {
#if defined(OPENSSL) || defined(PKCS11CRYPTO)
ATF_TP_ADD_TC(tp, updatesigs); ATF_TP_ADD_TC(tp, updatesigs);
#else
ATF_TP_ADD_TC(tp, untested);
#endif
return (atf_no_error()); return (atf_no_error());
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment