diff options
Diffstat (limited to 'src/tests/test_dsa.cpp')
-rw-r--r-- | src/tests/test_dsa.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tests/test_dsa.cpp b/src/tests/test_dsa.cpp index b31bda9fe..37b2851af 100644 --- a/src/tests/test_dsa.cpp +++ b/src/tests/test_dsa.cpp @@ -5,10 +5,10 @@ */ #include "tests.h" -#include "test_pubkey.h" #if defined(BOTAN_HAS_DSA) +#include "test_pubkey.h" #include <botan/pubkey.h> #include <botan/dsa.h> @@ -47,22 +47,24 @@ size_t dsa_sig_kat(const std::string& p, } } -#endif size_t test_dsa() { size_t fails = 0; -#if defined(BOTAN_HAS_DSA) - std::ifstream dsa_sig(PK_TEST_DATA_DIR "/dsa.vec"); + std::ifstream dsa_sig(TEST_DATA_DIR_PK "/dsa.vec"); fails += run_tests_bb(dsa_sig, "DSA Signature", "Signature", false, [](std::map<std::string, std::string> m) -> size_t { return dsa_sig_kat(m["P"], m["Q"], m["G"], m["X"], m["Hash"], m["Msg"], m["Nonce"], m["Signature"]); }); -#endif return fails; } +#else + +SKIP_TEST(dsa); + +#endif // BOTAN_HAS_DSA |