Fix passing application path when invoking tests

We need to pass the application's path here; not the path of the test
itself.
master
Martchus 11 months ago
parent 11574209b3
commit 9cbff29c9e
  1. 2
      cmake/modules/TestTarget.cmake

@ -136,7 +136,7 @@ endif ()
unset(TEST_TARGET_OPTIONS)
unset(RUN_TESTS_APPLICATION_ARGS)
if (META_PROJECT_TYPE STREQUAL "application")
set(RUN_TESTS_APPLICATION_ARGS -a "$<TARGET_FILE:${META_TARGET_NAME}_tests>")
set(RUN_TESTS_APPLICATION_ARGS -a "$<TARGET_FILE:${META_TARGET_NAME}>")
endif ()
set(RUN_TESTS_ARGS -p "${CMAKE_CURRENT_SOURCE_DIR}/testfiles" -w "${CMAKE_CURRENT_BINARY_DIR}/testworkingdir"
${RUN_TESTS_APPLICATION_ARGS})

Loading…
Cancel
Save