file(CONFIGURE): Add test cases covering missing mandatory options

This commit is contained in:
Brad King
2022-07-05 15:22:01 -04:00
parent 035d6d5251
commit f713146a10
7 changed files with 14 additions and 0 deletions
@@ -0,0 +1 @@
1
@@ -0,0 +1,4 @@
^CMake Error at NoArgContent.cmake:[0-9]+ \(file\):
file CONFIGURE CONTENT option is mandatory.
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)$
@@ -0,0 +1 @@
file(CONFIGURE OUTPUT "")
@@ -0,0 +1 @@
1
@@ -0,0 +1,4 @@
^CMake Error at NoArgOutput.cmake:[0-9]+ \(file\):
file CONFIGURE OUTPUT option is mandatory.
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)$
@@ -0,0 +1 @@
file(CONFIGURE CONTENT "")
@@ -9,6 +9,8 @@ run_cmake(DirOutput)
run_cmake(NewLineStyle-NoArg)
run_cmake(NewLineStyle-ValidArg)
run_cmake(NewLineStyle-WrongArg)
run_cmake(NoArgOutput)
run_cmake(NoArgContent)
run_cmake(SubDir)
run_cmake(AtOnly)
run_cmake(EscapeQuotes)