aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNym Seddon <unseddd@shh.xyz>2020-12-31 23:28:22 +0000
committerNym Seddon <unseddd@shh.xyz>2021-01-01 09:09:28 +0000
commit41dfa96e5ad710b54529e3dda6569c1d4da2ea8c (patch)
treedea53a6e2a5f5c673222fae7c88f54979d63962b /tests
parentMerge pull request #7221 (diff)
downloadmonero-41dfa96e5ad710b54529e3dda6569c1d4da2ea8c.tar.xz
Split fuzz tests during fuzz build
Only build fuzz tests in a fuzz build, and don't build other tests. Keeps fuzz compilers from instrumenting other tests, which are not fuzzed. Resolves #7232
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt27
1 files changed, 16 insertions, 11 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 224784a18..85fa8f1dd 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -80,17 +80,22 @@ file(COPY
data/signed_monero_tx
DESTINATION data)
-add_subdirectory(core_tests)
-add_subdirectory(fuzz)
-add_subdirectory(crypto)
-add_subdirectory(functional_tests)
-add_subdirectory(performance_tests)
-add_subdirectory(core_proxy)
-add_subdirectory(unit_tests)
-add_subdirectory(difficulty)
-add_subdirectory(block_weight)
-add_subdirectory(hash)
-add_subdirectory(net_load_tests)
+if (CMAKE_BUILD_TYPE STREQUAL "fuzz" OR OSSFUZZ)
+ add_subdirectory(fuzz)
+else ()
+ add_subdirectory(core_tests)
+ add_subdirectory(fuzz)
+ add_subdirectory(crypto)
+ add_subdirectory(functional_tests)
+ add_subdirectory(performance_tests)
+ add_subdirectory(core_proxy)
+ add_subdirectory(unit_tests)
+ add_subdirectory(difficulty)
+ add_subdirectory(block_weight)
+ add_subdirectory(hash)
+ add_subdirectory(net_load_tests)
+endif()
+
if (BUILD_GUI_DEPS)
add_subdirectory(libwallet_api_tests)
endif()