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_x509_path.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tests/test_x509_path.cpp') 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 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 all_files = Botan::get_files_recursive(test_dir); @@ -213,6 +216,7 @@ std::vector NIST_Path_Validation_Tests::run() validation_result.result_string(), expected_result); + result.end_timer(); results.push_back(result); } -- cgit v1.2.3