Tests: Remove empty CMakePresets *.cmake files

When adding a presets test case, the per-case `.cmake` files are
sometimes not necessary to exercise the test logic. Relax the inclusion
of such files and remove all empty placeholders.

Note that some non-empty `CMakePresets/Trace-*.cmake` files are also
removed; they only include other empty files, and nothing in the test
case assertions (trace outputs / stderr) exercises the include
statements themselves.
This commit is contained in:
Tyler Yankee
2026-06-01 16:31:58 -04:00
parent 61d313a541
commit 54be7af178
58 changed files with 5 additions and 14 deletions
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.18)
project(${RunCMake_TEST} NONE)
set(RunCMake_SOURCE_DIR [==[@RunCMake_SOURCE_DIR@]==])
include("${RunCMake_SOURCE_DIR}/${RunCMake_TEST}.cmake")
include("${RunCMake_SOURCE_DIR}/${RunCMake_TEST}.cmake" OPTIONAL)
@@ -1,4 +0,0 @@
include(${CMAKE_CURRENT_LIST_DIR}/TraceExpand.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/TraceFormatJSON.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/TraceSource.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/TraceRedirect.cmake)
@@ -1 +0,0 @@
include(${CMAKE_CURRENT_LIST_DIR}/TraceFormatJSON.cmake)
@@ -1 +0,0 @@
include(${CMAKE_CURRENT_LIST_DIR}/Trace.cmake)
@@ -1 +0,0 @@
include(${CMAKE_CURRENT_LIST_DIR}/NoTrace.cmake)
@@ -1 +0,0 @@
include(${CMAKE_CURRENT_LIST_DIR}/TraceRedirect.cmake)
@@ -1 +0,0 @@
include(${CMAKE_CURRENT_LIST_DIR}/TraceSource.cmake)
@@ -1,3 +1,3 @@
cmake_minimum_required(VERSION 3.19)
project("@CASE_NAME@" NONE)
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake")
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake" OPTIONAL)
@@ -1,3 +1,3 @@
cmake_minimum_required(VERSION 3.19)
project("@CASE_NAME@" NONE)
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake")
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake" OPTIONAL)
@@ -1,3 +1,3 @@
cmake_minimum_required(VERSION 3.19)
project("@CASE_NAME@" NONE)
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake")
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake" OPTIONAL)
@@ -1,3 +1,3 @@
cmake_minimum_required(VERSION 3.19)
project("@CASE_NAME@" NONE)
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake")
include("@CASE_SOURCE_DIR@/@CASE_NAME@.cmake" OPTIONAL)