test(relative-paths): Attempt to fix the tests workflow

main
Anthony Printup 1 year ago
parent bfa1e1fe0d
commit 19e61aa1aa
No known key found for this signature in database
GPG Key ID: C8CB17EEA5183BD0

12
tests/CMakeLists.txt generated

@ -110,6 +110,16 @@ add_test(
build
)
add_test(
NAME
relative-paths-setup
WORKING_DIRECTORY
"${CMAKE_CURRENT_LIST_DIR}/relative-paths"
COMMAND
"$<TARGET_FILE:cmkr>"
"build --target test-library"
)
add_test(
NAME
relative-paths
@ -117,5 +127,5 @@ add_test(
"${CMAKE_CURRENT_LIST_DIR}/relative-paths"
COMMAND
"$<TARGET_FILE:cmkr>"
build
"build --target example"
)

@ -59,8 +59,14 @@ working-directory = "compile-options"
command = "$<TARGET_FILE:cmkr>"
arguments = ["build"]
[[test]]
name = "relative-paths-setup"
working-directory = "relative-paths"
command = "$<TARGET_FILE:cmkr>"
arguments = ["build --target test-library"]
[[test]]
name = "relative-paths"
working-directory = "relative-paths"
command = "$<TARGET_FILE:cmkr>"
arguments = ["build"]
arguments = ["build --target example"]

@ -19,6 +19,3 @@ add_custom_command(
type = "executable"
sources = ["src/main.cpp"]
link-libraries = ["libs/test-library-file.lib"]
cmake-after = """
add_dependencies(${CMKR_TARGET} ${TEST_LIBRARY_TARGET_NAME})
"""

Loading…
Cancel
Save