mirror of
https://github.com/reactos/CMake.git
synced 2024-12-05 02:06:34 +00:00
f725b20be3
Pass --no-compressed-output to ctest for tests that expect uncompressed output.
19 lines
707 B
CMake
19 lines
707 B
CMake
include(RunCMake)
|
|
|
|
function(run_ctest CASE_NAME)
|
|
configure_file(${RunCMake_SOURCE_DIR}/test.cmake.in
|
|
${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake @ONLY)
|
|
configure_file(${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in
|
|
${RunCMake_BINARY_DIR}/${CASE_NAME}/CTestConfig.cmake @ONLY)
|
|
configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in
|
|
${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY)
|
|
run_cmake_command(${CASE_NAME} ${CMAKE_CTEST_COMMAND}
|
|
-C Debug
|
|
-S ${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake
|
|
-V
|
|
--output-log ${RunCMake_BINARY_DIR}/${CASE_NAME}-build/testOutput.log
|
|
--no-compress-output
|
|
${ARGN}
|
|
)
|
|
endfunction()
|