mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-19 13:09:47 -06:00
Tests: Add RunCTest helper option to control CTest verbose flag
This commit is contained in:
@@ -11,10 +11,13 @@ function(run_ctest CASE_NAME)
|
|||||||
endif()
|
endif()
|
||||||
configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in
|
configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in
|
||||||
${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY)
|
${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY)
|
||||||
|
if(NOT DEFINED RunCTest_VERBOSE_FLAG)
|
||||||
|
set(RunCTest_VERBOSE_FLAG "-V")
|
||||||
|
endif()
|
||||||
run_cmake_command(${CASE_NAME} ${CMAKE_CTEST_COMMAND}
|
run_cmake_command(${CASE_NAME} ${CMAKE_CTEST_COMMAND}
|
||||||
-C Debug
|
-C Debug
|
||||||
-S ${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake
|
-S ${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake
|
||||||
-V
|
${RunCTest_VERBOSE_FLAG}
|
||||||
--output-log ${RunCMake_BINARY_DIR}/${CASE_NAME}-build/testOutput.log
|
--output-log ${RunCMake_BINARY_DIR}/${CASE_NAME}-build/testOutput.log
|
||||||
--no-compress-output
|
--no-compress-output
|
||||||
${ARGN}
|
${ARGN}
|
||||||
|
|||||||
Reference in New Issue
Block a user