From fee2ccfb67ef6e8d71cc056f4b9d1201415c7fa2 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Wed, 12 Feb 2025 12:39:30 +0000 Subject: [PATCH] cmake, test: Disable tests instead of ignoring them --- cmake/tests.cmake | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/cmake/tests.cmake b/cmake/tests.cmake index e0bb729ba17..7bab6a0c45f 100644 --- a/cmake/tests.cmake +++ b/cmake/tests.cmake @@ -2,14 +2,16 @@ # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/license/mit/. -if(TARGET bitcoin-util AND TARGET bitcoin-tx AND TARGET Python3::Interpreter) - add_test(NAME util_test_runner - COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/test_runner.py - ) -endif() +add_test(NAME util_test_runner + COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/test_runner.py +) +set_tests_properties(util_test_runner PROPERTIES + DISABLED $,$,$>> +) -if(TARGET Python3::Interpreter) - add_test(NAME util_rpcauth_test - COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/rpcauth-test.py - ) -endif() +add_test(NAME util_rpcauth_test + COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/rpcauth-test.py +) +set_tests_properties(util_rpcauth_test PROPERTIES + DISABLED $> +)