summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresets
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-09-23 13:52:42 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-09-23 14:20:03 (GMT)
commit33b1338a92bb8c83bee290975c11aa1d2d9ef559 (patch)
treeb69a4b43550218bfee3d5dc2a4f2073a311341c5 /Tests/RunCMake/CMakePresets
parent4328deb618c6f0f538964136ba00ca86edbed8eb (diff)
downloadCMake-33b1338a92bb8c83bee290975c11aa1d2d9ef559.zip
CMake-33b1338a92bb8c83bee290975c11aa1d2d9ef559.tar.gz
CMake-33b1338a92bb8c83bee290975c11aa1d2d9ef559.tar.bz2
Tests: Add test for --list-presets=all
Diffstat (limited to 'Tests/RunCMake/CMakePresets')
-rw-r--r--Tests/RunCMake/CMakePresets/DocumentationExampleListAllPresets-stdout.txt18
-rw-r--r--Tests/RunCMake/CMakePresets/RunCMakeTest.cmake1
2 files changed, 19 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresets/DocumentationExampleListAllPresets-stdout.txt b/Tests/RunCMake/CMakePresets/DocumentationExampleListAllPresets-stdout.txt
new file mode 100644
index 0000000..b1fcc28
--- /dev/null
+++ b/Tests/RunCMake/CMakePresets/DocumentationExampleListAllPresets-stdout.txt
@@ -0,0 +1,18 @@
+^Not searching for unused variables given on the command line\.
+Available configure presets:
+
+ "default" ?- Default Config
+ "ninja-multi" ?- Ninja Multi-Config(
+ "windows-only" - Windows-only configuration)?
+
+Available build presets:
+
+ "default"
+
+Available test presets:
+
+ "default"
+
+Available package presets:
+
+ "default"$
diff --git a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
index 4f57e2f..efa838e 100644
--- a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
@@ -408,4 +408,5 @@ set(CMakePresets_EXTRA_FILES
"${RunCMake_SOURCE_DIR}/moreThings.json.in"
)
run_cmake_presets(DocumentationExample --preset=default)
+run_cmake_presets(DocumentationExampleListAllPresets --list-presets=all)
unset(CMakePresets_EXTRA_FILES)