summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Freeman <jfreeman08@gmail.com>2019-05-31 16:35:41 -0500
committerBrad King <brad.king@kitware.com>2019-06-03 14:17:11 -0400
commit013bee698e8470169d99e90aa86d5d85693c6b12 (patch)
treec40b0d8d1848c022d6e09f4345a36a86d10afe6b
parent3eb16de32733c7d3f61d22b16a893135267e7bbc (diff)
downloadcmake-013bee698e8470169d99e90aa86d5d85693c6b12.tar.gz
Tests: Add RunCMake.CommandLine make_directory test checks
-rw-r--r--Tests/RunCMake/CommandLine/E_make_directory-directory-with-parent-check.cmake3
-rw-r--r--Tests/RunCMake/CommandLine/E_make_directory-three-directories-check.cmake6
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/E_make_directory-directory-with-parent-check.cmake b/Tests/RunCMake/CommandLine/E_make_directory-directory-with-parent-check.cmake
new file mode 100644
index 0000000000..ea3d161aff
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/E_make_directory-directory-with-parent-check.cmake
@@ -0,0 +1,3 @@
+if(NOT IS_DIRECTORY ${out}/parent/child)
+ set(RunCMake_TEST_FAILED "child directory was not created")
+endif()
diff --git a/Tests/RunCMake/CommandLine/E_make_directory-three-directories-check.cmake b/Tests/RunCMake/CommandLine/E_make_directory-three-directories-check.cmake
new file mode 100644
index 0000000000..c1e84744ac
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/E_make_directory-three-directories-check.cmake
@@ -0,0 +1,6 @@
+if(NOT IS_DIRECTORY ${out}/d1)
+ set(RunCMake_TEST_FAILED "directory d1 was not created")
+endif()
+if(NOT IS_DIRECTORY ${out}/d2)
+ set(RunCMake_TEST_FAILED "directory d2 was not created")
+endif()