Skip to content

Commit

Permalink
cmake: Exclude svneditor.py from tests, since it is just an internal …
Browse files Browse the repository at this point in the history
…script

for the test-suite and cannot be run as a test.

* CMakeLists.txt
  (pytests): Filter 'svneditor' test name.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1920768 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rinrab committed Sep 18, 2024
1 parent f36c09c commit 8d7182c
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -667,20 +667,22 @@ if(SVN_ENABLE_TESTS)
# Keep `.py'.
get_filename_component(py_test_name ${py_test_path} NAME_WLE)

add_test(
NAME
"cmdline.${py_test_name}"
COMMAND
"${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/build/run_tests.py"
--bin ${CMAKE_CURRENT_BINARY_DIR}
--tools-bin ${CMAKE_CURRENT_BINARY_DIR}
--verbose
--log-to-stdout
--set-log-level=WARNING
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${py_test_path}
)
if(NOT ${py_test_name} STREQUAL "svneditor")
add_test(
NAME
"cmdline.${py_test_name}"
COMMAND
"${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/build/run_tests.py"
--bin ${CMAKE_CURRENT_BINARY_DIR}
--tools-bin ${CMAKE_CURRENT_BINARY_DIR}
--verbose
--log-to-stdout
--set-log-level=WARNING
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${py_test_path}
)
endif()
endforeach()
endif()

Expand Down

0 comments on commit 8d7182c

Please sign in to comment.