aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-21 23:51:44 -0500
committerJack Lloyd <[email protected]>2016-11-23 08:31:09 -0500
commit28b38adb037719ba08691a4e8c6f59ea2e854760 (patch)
treee0761a1fe2dde2bd3b0fc2c42a9202da8cd171fd /src/tests/tests.cpp
parentb95652957cb12e890ac4a7f9000aa957edd70357 (diff)
Better OCSP tests including online tests
Tests touching network are gated by --run-online-tests flag.
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r--src/tests/tests.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index 13094f5dc..1fe41428e 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -467,11 +467,13 @@ Botan::RandomNumberGenerator* Test::m_test_rng = nullptr;
std::string Test::m_data_dir;
size_t Test::m_soak_level = 0;
bool Test::m_log_success = false;
+bool Test::m_run_online_tests = false;
std::string Test::m_pkcs11_lib;
//static
void Test::setup_tests(size_t soak,
bool log_success,
+ bool run_online,
const std::string& data_dir,
const std::string& pkcs11_lib,
Botan::RandomNumberGenerator* rng)
@@ -479,6 +481,7 @@ void Test::setup_tests(size_t soak,
m_data_dir = data_dir;
m_soak_level = soak;
m_log_success = log_success;
+ m_run_online_tests = run_online;
m_test_rng = rng;
m_pkcs11_lib = pkcs11_lib;
}
@@ -508,6 +511,12 @@ bool Test::log_success()
}
//static
+bool Test::run_online_tests()
+ {
+ return m_run_online_tests;
+ }
+
+//static
std::string Test::pkcs11_lib()
{
return m_pkcs11_lib;