diff options
author | John Freeman <jfreeman08@gmail.com> | 2019-05-31 21:35:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-03 18:17:11 (GMT) |
commit | 013bee698e8470169d99e90aa86d5d85693c6b12 (patch) | |
tree | c40b0d8d1848c022d6e09f4345a36a86d10afe6b /Tests/RunCMake/CommandLine | |
parent | 3eb16de32733c7d3f61d22b16a893135267e7bbc (diff) | |
download | CMake-013bee698e8470169d99e90aa86d5d85693c6b12.zip CMake-013bee698e8470169d99e90aa86d5d85693c6b12.tar.gz CMake-013bee698e8470169d99e90aa86d5d85693c6b12.tar.bz2 |
Tests: Add RunCMake.CommandLine make_directory test checks
Diffstat (limited to 'Tests/RunCMake/CommandLine')
-rw-r--r-- | Tests/RunCMake/CommandLine/E_make_directory-directory-with-parent-check.cmake | 3 | ||||
-rw-r--r-- | Tests/RunCMake/CommandLine/E_make_directory-three-directories-check.cmake | 6 |
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 0000000..ea3d161 --- /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 0000000..c1e8474 --- /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() |