From 013bee698e8470169d99e90aa86d5d85693c6b12 Mon Sep 17 00:00:00 2001 From: John Freeman Date: Fri, 31 May 2019 16:35:41 -0500 Subject: Tests: Add RunCMake.CommandLine make_directory test checks --- .../CommandLine/E_make_directory-directory-with-parent-check.cmake | 3 +++ .../CommandLine/E_make_directory-three-directories-check.cmake | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 Tests/RunCMake/CommandLine/E_make_directory-directory-with-parent-check.cmake create mode 100644 Tests/RunCMake/CommandLine/E_make_directory-three-directories-check.cmake 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() -- cgit v0.12