diff options
author | Jack Lloyd <[email protected]> | 2016-12-24 21:21:39 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-12-24 21:21:39 -0500 |
commit | 0f3bf4d4d056c41b585b62145d03e1588c24fcec (patch) | |
tree | 24ea7b692eba2f279b3aae9913cf21fe2241f93e /src/tests/test_xmss.cpp | |
parent | 2ee2d884167e43f84830cd45af63ddbf245b540b (diff) |
Add test option --run-long-tests
Previously longer tests were hidden behind higher 'soak levels'
but these arbitrary cutoffs are confusing compared to a simple
short tests/long tests split.
Diffstat (limited to 'src/tests/test_xmss.cpp')
-rw-r--r-- | src/tests/test_xmss.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/test_xmss.cpp b/src/tests/test_xmss.cpp index 73b23483e..da58057e2 100644 --- a/src/tests/test_xmss.cpp +++ b/src/tests/test_xmss.cpp @@ -27,6 +27,22 @@ class XMSS_Signature_Tests : public PK_Signature_Generation_Test "Params,Msg,PrivateKey,Signature") {} + bool skip_this_test(const std::string&, + const VarMap& vars) override + { + if(Test::run_long_tests() == false) + { + const std::string params = get_req_str(vars, "Params"); + + if(params == "SHAKE128_W16_H10") + return false; + + return true; + } + + return false; + } + std::string default_padding(const VarMap& vars) const override { return get_req_str(vars, "Params"); |