mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
Tests: Add test for outputLogFile in CMakePresets.json
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/check.cmake")
|
||||
if(NOT EXISTS "${RunCMake_TEST_BINARY_DIR}/default/output.log")
|
||||
string(APPEND RunCMake_TEST_FAILED "Expected ${RunCMake_TEST_BINARY_DIR}/default/output.log to exist but it does not\n")
|
||||
endif()
|
||||
@@ -171,6 +171,13 @@
|
||||
"execution": {
|
||||
"showOnly": "human"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "outputLog",
|
||||
"inherits": "minimal",
|
||||
"output": {
|
||||
"outputLogFile": "${sourceDir}/build/default/output.log"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ set(CMakePresetsTest_ASSETS "Good-indexFile.txt")
|
||||
set(GoodTestPresets
|
||||
"minimal;defaults;noEnvironment;withEnvironment"
|
||||
"config-debug;config-release"
|
||||
"exclude;index;indexFile;showOnly")
|
||||
"exclude;index;indexFile;showOnly;outputLog")
|
||||
run_cmake_test_presets(Good
|
||||
"default"
|
||||
""
|
||||
|
||||
Reference in New Issue
Block a user