Tests: Add test for outputLogFile in CMakePresets.json

This commit is contained in:
Kyle Edwards
2022-10-18 15:20:29 -04:00
parent b68c3596e7
commit 757786bb73
3 changed files with 12 additions and 1 deletions

View File

@@ -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()

View File

@@ -171,6 +171,13 @@
"execution": {
"showOnly": "human"
}
},
{
"name": "outputLog",
"inherits": "minimal",
"output": {
"outputLogFile": "${sourceDir}/build/default/output.log"
}
}
]
}

View File

@@ -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"
""