Fix passing application path when invoking tests
We need to pass the application's path here; not the path of the test itself.
This commit is contained in:
parent
11574209b3
commit
9cbff29c9e
|
@ -136,7 +136,7 @@ endif ()
|
||||||
unset(TEST_TARGET_OPTIONS)
|
unset(TEST_TARGET_OPTIONS)
|
||||||
unset(RUN_TESTS_APPLICATION_ARGS)
|
unset(RUN_TESTS_APPLICATION_ARGS)
|
||||||
if (META_PROJECT_TYPE STREQUAL "application")
|
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 ()
|
endif ()
|
||||||
set(RUN_TESTS_ARGS -p "${CMAKE_CURRENT_SOURCE_DIR}/testfiles" -w "${CMAKE_CURRENT_BINARY_DIR}/testworkingdir"
|
set(RUN_TESTS_ARGS -p "${CMAKE_CURRENT_SOURCE_DIR}/testfiles" -w "${CMAKE_CURRENT_BINARY_DIR}/testworkingdir"
|
||||||
${RUN_TESTS_APPLICATION_ARGS})
|
${RUN_TESTS_APPLICATION_ARGS})
|
||||||
|
|
Loading…
Reference in New Issue