diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-07-11 17:41:30 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2019-07-11 17:41:30 (GMT) |
commit | b8828ecbbab89f7ab4f99ee0905ab380d855744a (patch) | |
tree | 04433ed345d20f4d89a503a666ba17e1605d1734 /Tests | |
parent | 0a690fc47427a2ed5656cb0dd4bc17aa172e143a (diff) | |
download | CMake-b8828ecbbab89f7ab4f99ee0905ab380d855744a.zip CMake-b8828ecbbab89f7ab4f99ee0905ab380d855744a.tar.gz CMake-b8828ecbbab89f7ab4f99ee0905ab380d855744a.tar.bz2 |
cmake -E: Add true and false commands
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CommandLine/E_false-extraargs-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/CommandLine/E_false-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/CommandLine/RunCMakeTest.cmake | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/E_false-extraargs-result.txt b/Tests/RunCMake/CommandLine/E_false-extraargs-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CommandLine/E_false-extraargs-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CommandLine/E_false-result.txt b/Tests/RunCMake/CommandLine/E_false-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CommandLine/E_false-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake index c9d3a4d..4e19871 100644 --- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake +++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake @@ -26,6 +26,10 @@ run_cmake_command(E_echo_append ${CMAKE_COMMAND} -E echo_append) run_cmake_command(E_rename-no-arg ${CMAKE_COMMAND} -E rename) run_cmake_command(E_server-arg ${CMAKE_COMMAND} -E server --extra-arg) run_cmake_command(E_server-pipe ${CMAKE_COMMAND} -E server --pipe=) +run_cmake_command(E_true ${CMAKE_COMMAND} -E true) +run_cmake_command(E_true-extraargs ${CMAKE_COMMAND} -E true ignored) +run_cmake_command(E_false ${CMAKE_COMMAND} -E false) +run_cmake_command(E_false-extraargs ${CMAKE_COMMAND} -E false ignored) run_cmake_command(E_touch_nocreate-no-arg ${CMAKE_COMMAND} -E touch_nocreate) run_cmake_command(E_touch-nonexistent-dir ${CMAKE_COMMAND} -E touch "${RunCMake_BINARY_DIR}/touch-nonexistent-dir/foo") |