diff options
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r-- | src/tests/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 685ccb449..ea81de7a8 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -5,6 +5,8 @@ find_pkg(Qt5 COMPONENTS Test REQUIRED) +option(online-tests "Whether or not tests that need a working internet connection should be included" OFF) + set(TESTS "") macro(use_test TEST_NAME) @@ -28,12 +30,18 @@ use_test("TestPacketDataStream") use_test("TestPasswordGenerator") use_test("TestSelfSignedCertificate") use_test("TestServerAddress") -use_test("TestServerResolver") use_test("TestSSLLocks") use_test("TestStdAbs") use_test("TestTimer") use_test("TestUnresolvedServerAddress") +if(online-tests) + message(STATUS "Including online tests - These will fail if you don't have a working internet connection when running them") + use_test("TestServerResolver") +else() + message(STATUS "Omitting online tests - Testing can be performed without an active internet connection") +endif() + # Set output directory foreach(CURRENT_TEST IN LISTS TESTS) |