aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_xmss.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-24 21:21:39 -0500
committerJack Lloyd <[email protected]>2016-12-24 21:21:39 -0500
commit0f3bf4d4d056c41b585b62145d03e1588c24fcec (patch)
tree24ea7b692eba2f279b3aae9913cf21fe2241f93e /src/tests/test_xmss.cpp
parent2ee2d884167e43f84830cd45af63ddbf245b540b (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.cpp16
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");