From 6fc3efb93fc9a8ca1ed277d878a61c60c00d3ef8 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 3 Jun 2014 15:15:19 +1000 Subject: [PATCH] keytable depends on openssl/pkcs11 --- lib/dns/tests/keytable_test.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/dns/tests/keytable_test.c b/lib/dns/tests/keytable_test.c index 58766fcd35..ae7f20b9e5 100644 --- a/lib/dns/tests/keytable_test.c +++ b/lib/dns/tests/keytable_test.c @@ -23,6 +23,8 @@ #include #include +#if defined(OPENSSL) || defined(PKCS11CRYPTO) + #include #include #include @@ -582,10 +584,24 @@ ATF_TC_BODY(nta, tc) { dns_test_end(); } +#else +#include + +ATF_TC(untested); +ATF_TC_HEAD(untested, tc) { + atf_tc_set_md_var(tc, "descr", "skipping keytable test"); +} +ATF_TC_BODY(untested, tc) { + UNUSED(tc); + atf_tc_skip("DNSSEC not available"); +} +#endif + /* * Main */ ATF_TP_ADD_TCS(tp) { +#if defined(OPENSSL) || defined(PKCS11CRYPTO) ATF_TP_ADD_TC(tp, add); ATF_TP_ADD_TC(tp, delete); ATF_TP_ADD_TC(tp, deletekeynode); @@ -593,6 +609,9 @@ ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, issecuredomain); ATF_TP_ADD_TC(tp, dump); ATF_TP_ADD_TC(tp, nta); +#else + ATF_TP_ADD_TC(tp, untested); +#endif return (atf_no_error()); }