From 33b1338a92bb8c83bee290975c11aa1d2d9ef559 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 23 Sep 2022 09:52:42 -0400 Subject: Tests: Add test for --list-presets=all --- .../DocumentationExampleListAllPresets-stdout.txt | 18 ++++++++++++++++++ Tests/RunCMake/CMakePresets/RunCMakeTest.cmake | 1 + 2 files changed, 19 insertions(+) create mode 100644 Tests/RunCMake/CMakePresets/DocumentationExampleListAllPresets-stdout.txt 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) -- cgit v0.12