mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Tests: Add cases for -{C,D,U} without a source tree
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
^CMake Error: Error processing file: nosuchcachefile.txt
|
||||
CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/C-no-file-build/nosuchcachefile.txt" does not exist.
|
||||
CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/C-no-file-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
|
||||
1
Tests/RunCMake/CommandLine/Cno-file-result.txt
Normal file
1
Tests/RunCMake/CommandLine/Cno-file-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
3
Tests/RunCMake/CommandLine/Cno-file-stderr.txt
Normal file
3
Tests/RunCMake/CommandLine/Cno-file-stderr.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
^CMake Error: Error processing file: nosuchcachefile.txt
|
||||
CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/Cno-file-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
1
Tests/RunCMake/CommandLine/D-no-src-result.txt
Normal file
1
Tests/RunCMake/CommandLine/D-no-src-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
2
Tests/RunCMake/CommandLine/D-no-src-stderr.txt
Normal file
2
Tests/RunCMake/CommandLine/D-no-src-stderr.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
^CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/D-no-src-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
1
Tests/RunCMake/CommandLine/Dno-src-result.txt
Normal file
1
Tests/RunCMake/CommandLine/Dno-src-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
2
Tests/RunCMake/CommandLine/Dno-src-stderr.txt
Normal file
2
Tests/RunCMake/CommandLine/Dno-src-stderr.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
^CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/Dno-src-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
@@ -6,10 +6,15 @@ run_cmake_command(NoArgs ${CMAKE_COMMAND})
|
||||
run_cmake_command(Wizard ${CMAKE_COMMAND} -i)
|
||||
run_cmake_command(C-no-arg ${CMAKE_COMMAND} -C)
|
||||
run_cmake_command(C-no-file ${CMAKE_COMMAND} -C nosuchcachefile.txt)
|
||||
run_cmake_command(Cno-file ${CMAKE_COMMAND} -Cnosuchcachefile.txt)
|
||||
run_cmake_command(cache-no-file ${CMAKE_COMMAND} nosuchsubdir/CMakeCache.txt)
|
||||
run_cmake_command(lists-no-file ${CMAKE_COMMAND} nosuchsubdir/CMakeLists.txt)
|
||||
run_cmake_command(D-no-arg ${CMAKE_COMMAND} -D)
|
||||
run_cmake_command(D-no-src ${CMAKE_COMMAND} -D VAR=VALUE)
|
||||
run_cmake_command(Dno-src ${CMAKE_COMMAND} -DVAR=VALUE)
|
||||
run_cmake_command(U-no-arg ${CMAKE_COMMAND} -U)
|
||||
run_cmake_command(U-no-src ${CMAKE_COMMAND} -U VAR)
|
||||
run_cmake_command(Uno-src ${CMAKE_COMMAND} -UVAR)
|
||||
run_cmake_command(E-no-arg ${CMAKE_COMMAND} -E)
|
||||
run_cmake_command(E_capabilities ${CMAKE_COMMAND} -E capabilities)
|
||||
run_cmake_command(E_capabilities-arg ${CMAKE_COMMAND} -E capabilities --extra-arg)
|
||||
|
||||
1
Tests/RunCMake/CommandLine/U-no-src-result.txt
Normal file
1
Tests/RunCMake/CommandLine/U-no-src-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
2
Tests/RunCMake/CommandLine/U-no-src-stderr.txt
Normal file
2
Tests/RunCMake/CommandLine/U-no-src-stderr.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
^CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/U-no-src-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
1
Tests/RunCMake/CommandLine/Uno-src-result.txt
Normal file
1
Tests/RunCMake/CommandLine/Uno-src-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
2
Tests/RunCMake/CommandLine/Uno-src-stderr.txt
Normal file
2
Tests/RunCMake/CommandLine/Uno-src-stderr.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
^CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/Uno-src-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
Reference in New Issue
Block a user