aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-12-13 09:51:36 -0500
committerJack Lloyd <[email protected]>2019-12-13 09:51:36 -0500
commitb402640a187b7e163bd4ccc4402631151adffb03 (patch)
treed346fc1ec1270c9d613eb58db7a2bef18dac1868 /src
parentaa5fe37037bc181c08dfcd1fdccb5e5a3657bdd7 (diff)
Only run multi-iteration block test with long tests enabled
The SM4 test takes several seconds to run under qemu
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_block.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/test_block.cpp b/src/tests/test_block.cpp
index ceda8ca07..065e951bf 100644
--- a/src/tests/test_block.cpp
+++ b/src/tests/test_block.cpp
@@ -32,6 +32,11 @@ class Block_Cipher_Tests final : public Text_Based_Test
Test::Result result(algo);
+ if(iterations > 1 && run_long_tests() == false)
+ {
+ return result;
+ }
+
const std::vector<std::string> providers = possible_providers(algo);
if(providers.empty())