aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_bigint.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_bigint.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_bigint.cpp')
-rw-r--r--src/tests/test_bigint.cpp13
1 files changed, 5 insertions, 8 deletions
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<size_t> min_ranges{ 0 };
std::vector<size_t> 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 {