1828535524
Earlier ctest file creation was taking place during build time.
Due to cmake framework issue the file creation had issues,
which in turn failed the test build.
This change moves this logic to the execution phase
and gets rid of the unwanted dependency during build time
Change-Id: Ifbf7e325f1b15a8be12e76560a6d339bc76705ee
[ROCm/hip-tests commit: 4872e70674]
35 строки
1.2 KiB
CMake
35 строки
1.2 KiB
CMake
# File @ctestincludepath@ is generated by cmake.
|
|
# For changes please modify hip/tests/catch/external/Catch2/cmake/Catch2/catch_include.cmake.in
|
|
|
|
get_filename_component(_cmake_path cmake ABSOLUTE)
|
|
|
|
if(EXISTS "@EXEC_NAME@")
|
|
execute_process(
|
|
COMMAND "${_cmake_path}"
|
|
-D "TEST_TARGET=@TARGET@"
|
|
-D "TEST_EXECUTABLE=@EXEC_NAME@"
|
|
-D "TEST_EXECUTOR=@crosscompiling_emulator@"
|
|
-D "TEST_WORKING_DIR=@_workdir@"
|
|
-D "TEST_SPEC=@_TEST_SPEC@"
|
|
-D "TEST_EXTRA_ARGS=@_EXTRA_ARGS@"
|
|
-D "TEST_PROPERTIES=@_PROPERTIES@"
|
|
-D "TEST_PREFIX=@_TEST_PREFIX@"
|
|
-D "TEST_SUFFIX=@_TEST_SUFFIX@"
|
|
-D "TEST_LIST=@_TEST_LIST@"
|
|
-D "TEST_REPORTER=@_REPORTER@"
|
|
-D "TEST_OUTPUT_DIR=@_OUTPUT_DIR@"
|
|
-D "TEST_OUTPUT_PREFIX=@_OUTPUT_PREFIX@"
|
|
-D "TEST_OUTPUT_SUFFIX=@_OUTPUT_SUFFIX@"
|
|
-D "CTEST_FILE=@ctestfilepath@"
|
|
-P "@_CATCH_ADD_TEST_SCRIPT@"
|
|
OUTPUT_VARIABLE output
|
|
RESULT_VARIABLE result
|
|
WORKING_DIRECTORY "@TEST_WORKING_DIR@"
|
|
)
|
|
# include the generated ctest file for execution
|
|
include(@ctestfilepath@)
|
|
else()
|
|
message(STATUS "executable not built : @EXEC_NAME@" )
|
|
endif()
|
|
|