summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorJohn Freeman <jfreeman08@gmail.com>2019-05-31 21:35:41 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-03 18:20:00 (GMT)
commit07a80c70020e0e533db8d75d7fe7c4270cc25afb (patch)
tree71e52d98611f1f1042f976b7cd505f6dd1cf95c2 /Tests/RunCMake/CommandLine/RunCMakeTest.cmake
parent013bee698e8470169d99e90aa86d5d85693c6b12 (diff)
downloadCMake-07a80c70020e0e533db8d75d7fe7c4270cc25afb.zip
CMake-07a80c70020e0e533db8d75d7fe7c4270cc25afb.tar.gz
CMake-07a80c70020e0e533db8d75d7fe7c4270cc25afb.tar.bz2
cmake: Teach -E remove_directory to remove multiple directories
The `make_directory` command can make multiple directories in a single invocation. Make `remove_directory` mirror that behavior.
Diffstat (limited to 'Tests/RunCMake/CommandLine/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CommandLine/RunCMakeTest.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
index 25a6435..6c17a6a 100644
--- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
@@ -332,10 +332,16 @@ file(MAKE_DIRECTORY ${out})
file(WRITE ${outfile} "")
run_cmake_command(E_make_directory-three-directories
${CMAKE_COMMAND} -E make_directory ${out}/d1 ${out}/d2 ${out}/d2)
+run_cmake_command(E_remove_directory-three-directories
+ ${CMAKE_COMMAND} -E remove_directory ${out}/d1 ${out}/d2 ${out}/d2)
run_cmake_command(E_make_directory-directory-with-parent
${CMAKE_COMMAND} -E make_directory ${out}/parent/child)
+run_cmake_command(E_remove_directory-directory-with-parent
+ ${CMAKE_COMMAND} -E remove_directory ${out}/parent)
run_cmake_command(E_make_directory-two-directories-and-file
${CMAKE_COMMAND} -E make_directory ${out}/d1 ${out}/d2 ${outfile})
+run_cmake_command(E_remove_directory-two-directories-and-file
+ ${CMAKE_COMMAND} -E remove_directory ${out}/d1 ${out}/d2 ${outfile})
unset(out)
unset(outfile)