aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.cpp
diff options
context:
space:
mode:
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;