diff options
author | Jack Lloyd <[email protected]> | 2016-09-14 13:21:26 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-10-24 21:07:01 -0400 |
commit | d78a540dd0145665805e9804d8f20a71c39b0bf8 (patch) | |
tree | 4536cf911e8744a61756312a62f9ad51cb4041f1 /src/tests | |
parent | 36e0ea1e407027ac48e82b56016a6813ff6a1082 (diff) |
Add TPM and PKCS #11 to coverage build
SoftHSMv1 included in 14.04 is too old and many tests fail,
so grabs prebuilt SoftHSMv2 binaries from www.randombit.net.
This can change to use the packaged SoftHSM in 16.04, whenever
Travis makes that available.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/main.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/tests/main.cpp b/src/tests/main.cpp index d80049d53..cf61ea0b0 100644 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -93,16 +93,19 @@ class Test_Runner : public Botan_CLI::Command std::set<std::string> all_others = Botan_Tests::Test::registered_tests(); - // do not run pkcs11 tests by default - for(std::set<std::string>::iterator iter = all_others.begin(); iter != all_others.end();) + if(pkcs11_lib.empty()) { - if((*iter).find("pkcs11") != std::string::npos) + // do not run pkcs11 tests by default unless pkcs11-lib set + for(std::set<std::string>::iterator iter = all_others.begin(); iter != all_others.end();) { - iter = all_others.erase(iter); - } - else - { - ++iter; + if((*iter).find("pkcs11") != std::string::npos) + { + iter = all_others.erase(iter); + } + else + { + ++iter; + } } } |