From 0f3bf4d4d056c41b585b62145d03e1588c24fcec Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 24 Dec 2016 21:21:39 -0500 Subject: 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. --- src/tests/test_bigint.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/tests/test_bigint.cpp') diff --git a/src/tests/test_bigint.cpp b/src/tests/test_bigint.cpp index 29f0203b8..2d9992abb 100644 --- a/src/tests/test_bigint.cpp +++ b/src/tests/test_bigint.cpp @@ -91,17 +91,14 @@ class BigInt_Unit_Tests : public Test std::vector min_ranges{ 0 }; std::vector max_ranges{ 10 }; - // This gets slow quickly: - if(Test::soak_level() > 10) + if(Test::run_long_tests()) { + // This gets slow quickly: min_ranges.push_back(10); max_ranges.push_back(100); - if(Test::soak_level() > 50) - { - min_ranges.push_back(79); - max_ranges.push_back(293); - } + min_ranges.push_back(79); + max_ranges.push_back(293); } for(size_t range_min : min_ranges) @@ -556,7 +553,7 @@ class DSA_ParamGen_Test : public Text_Based_Test Test::Result result("DSA Parameter Generation"); // These tests are very slow so skip in normal runs - if(Test::soak_level() <= 5 && p_bits > 1024) + if(p_bits > 1024 && Test::run_long_tests() == false) return result; try { -- cgit v1.2.3