Skip to content

Commit

Permalink
Functional tests keep the source directory READ-ONLY
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Aug 6, 2024
1 parent 0c77a91 commit 5a13139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
18 changes: 4 additions & 14 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ endfunction()

create_test_config()

file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/functional)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/fuzz)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/util)

file(GLOB_RECURSE functional_tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} functional/*)
foreach(script ${functional_tests} fuzz/test_runner.py util/rpcauth-test.py util/test_runner.py)
if(CMAKE_HOST_WIN32)
set(symlink)
else()
set(symlink SYMBOLIC)
endif()
file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/${script} ${CMAKE_CURRENT_BINARY_DIR}/${script} COPY_ON_ERROR ${symlink})
endforeach()
unset(functional_tests)
file(COPY functional util/rpcauth-test.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY fuzz/test_runner.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/fuzz)
file(COPY util/rpcauth-test.py util/test_runner.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/util)
file(COPY ${PROJECT_SOURCE_DIR}/contrib/signet/miner DESTINATION ${PROJECT_BINARY_DIR}/contrib/signet)
2 changes: 1 addition & 1 deletion test/functional/tool_signet_miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run_test(self):
node.importprivkey(bytes_to_wif(CHALLENGE_PRIVATE_KEY))

# generate block with signet miner tool
base_dir = self.config["environment"]["SRCDIR"]
base_dir = self.config["environment"]["BUILDDIR"]
signet_miner_path = os.path.join(base_dir, "contrib", "signet", "miner")
subprocess.run([
sys.executable,
Expand Down

0 comments on commit 5a13139

Please sign in to comment.