aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_x509_path.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_x509_path.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_x509_path.cpp')
-rw-r--r--src/tests/test_x509_path.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test_x509_path.cpp b/src/tests/test_x509_path.cpp
index 63a4a9070..e897d3e01 100644
--- a/src/tests/test_x509_path.cpp
+++ b/src/tests/test_x509_path.cpp
@@ -76,6 +76,7 @@ class X509test_Path_Validation_Tests : public Test
for(auto i = expected.begin(); i != expected.end(); ++i)
{
Test::Result result("X509test path validation");
+ result.start_timer();
const std::string filename = i->first;
const std::string expected_result = i->second;
@@ -94,6 +95,7 @@ class X509test_Path_Validation_Tests : public Test
path_result = Botan::Path_Validation_Result(Botan::Certificate_Status_Code::CANNOT_ESTABLISH_TRUST);
result.test_eq("test " + filename, path_result.result_string(), expected_result);
+ result.end_timer();
results.push_back(result);
}
@@ -171,6 +173,7 @@ std::vector<Test::Result> NIST_Path_Validation_Tests::run()
const std::string test_dir = nist_test_dir + "/" + test_name;
Test::Result result("NIST path validation");
+ result.start_timer();
const std::vector<std::string> all_files = Botan::get_files_recursive(test_dir);
@@ -213,6 +216,7 @@ std::vector<Test::Result> NIST_Path_Validation_Tests::run()
validation_result.result_string(),
expected_result);
+ result.end_timer();
results.push_back(result);
}