Skip to content

Commit

Permalink
Don't pass folder in cmake target test-perl-testsuite
Browse files Browse the repository at this point in the history
Passing arguments to tools/invoke-tests overrides TESTS
and makes it impossible to run individual tests as we
document in the README.md, for example:

    make test-perl-testsuite TESTS="t/23-baseclass.t"

Without this change all tests from t are always executed.
  • Loading branch information
kalikiana committed Jun 21, 2024
1 parent b55275c commit 26f2cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/test-targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ endif ()
find_program(PROVE_PATH prove)
find_program(UNBUFFER_PATH unbuffer)
if (PROVE_PATH)
set(INVOKE_TEST_ARGS --prove-tool "${PROVE_PATH}" --make-tool "${CMAKE_MAKE_PROGRAM}" --unbuffer-tool "${UNBUFFER_PATH}" --build-directory "${CMAKE_CURRENT_BINARY_DIR}" t)
set(INVOKE_TEST_ARGS --prove-tool "${PROVE_PATH}" --make-tool "${CMAKE_MAKE_PROGRAM}" --unbuffer-tool "${UNBUFFER_PATH}" --build-directory "${CMAKE_CURRENT_BINARY_DIR}")
add_test(
NAME test-perl-testsuite
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tools/invoke-tests" ${INVOKE_TEST_ARGS}
Expand Down

0 comments on commit 26f2cd0

Please sign in to comment.