aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-01-15 23:51:23 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-01-15 23:51:23 -0500
commit7908f848a3633251ba8cc221f15b679038469915 (patch)
tree55439db1bc8412aefd36f74eb3d39f9196a1a3fc /tests
parentMerge pull request #7240 (diff)
parentSplit fuzz tests during fuzz build (diff)
downloadmonero-7908f848a3633251ba8cc221f15b679038469915.tar.xz
Merge pull request #7245
41dfa96 Split fuzz tests during fuzz build (Nym Seddon)
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()