diff options
author | Jack Lloyd <[email protected]> | 2017-04-02 12:52:30 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-04-02 12:52:30 -0400 |
commit | f6723299eb3a05b0e3482ed88650680a43be1cd8 (patch) | |
tree | a15f4c945be4b80baab0effecc05771e840aceea /src | |
parent | edd19b46252e413048c2d2c819617fb3ba38885c (diff) | |
parent | 4ef2264389c6102577d63a26cc80857df1ead5d5 (diff) |
Merge GH #960 Check name of test suite.
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/main.cpp b/src/tests/main.cpp index a7e56be63..cb105db18 100644 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -123,6 +123,17 @@ class Test_Runner : public Botan_CLI::Command req = {"pkcs11-manage", "pkcs11-module", "pkcs11-slot", "pkcs11-session", "pkcs11-object", "pkcs11-rsa", "pkcs11-ecdsa", "pkcs11-ecdh", "pkcs11-rng", "pkcs11-x509"}; } + else + { + std::set<std::string> all = Botan_Tests::Test::registered_tests(); + for(auto&& r : req) + { + if(all.find(r) == all.end()) + { + throw Botan_CLI::CLI_Usage_Error("Unknown test suite: " + r); + } + } + } output() << "Testing " << Botan::version_string() << "\n"; output() << "Starting tests"; |