diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-12 14:53:38 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-17 13:07:01 (GMT) |
commit | 25c3fb6c3512a76d45fd8a70d95fabe2777a4c2d (patch) | |
tree | 422a93f7f30cd6e333d48eb1358abedee151ba2f /Tests | |
parent | b5df4faa203bfac4bee9924520015f76f9692676 (diff) | |
download | CMake-25c3fb6c3512a76d45fd8a70d95fabe2777a4c2d.zip CMake-25c3fb6c3512a76d45fd8a70d95fabe2777a4c2d.tar.gz CMake-25c3fb6c3512a76d45fd8a70d95fabe2777a4c2d.tar.bz2 |
Tests: Add test for install(FILES) with PERMISSIONS
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/install/FILES-PERMISSIONS-all-check.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/install/FILES-PERMISSIONS.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/install/RunCMakeTest.cmake | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/FILES-PERMISSIONS-all-check.cmake b/Tests/RunCMake/install/FILES-PERMISSIONS-all-check.cmake new file mode 100644 index 0000000..b8ba6d0 --- /dev/null +++ b/Tests/RunCMake/install/FILES-PERMISSIONS-all-check.cmake @@ -0,0 +1 @@ +check_installed([[^src;src/empty.c]]) diff --git a/Tests/RunCMake/install/FILES-PERMISSIONS.cmake b/Tests/RunCMake/install/FILES-PERMISSIONS.cmake new file mode 100644 index 0000000..999c271 --- /dev/null +++ b/Tests/RunCMake/install/FILES-PERMISSIONS.cmake @@ -0,0 +1,5 @@ +install( + FILES empty.c + DESTINATION src + PERMISSIONS OWNER_READ OWNER_WRITE + ) diff --git a/Tests/RunCMake/install/RunCMakeTest.cmake b/Tests/RunCMake/install/RunCMakeTest.cmake index 27be9e2..cfd0a02 100644 --- a/Tests/RunCMake/install/RunCMakeTest.cmake +++ b/Tests/RunCMake/install/RunCMakeTest.cmake @@ -87,6 +87,7 @@ run_install_test(SCRIPT) run_install_test(TARGETS-CONFIGURATIONS) run_install_test(DIRECTORY-PATTERN) run_install_test(TARGETS-Parts) +run_install_test(FILES-PERMISSIONS) set(run_install_test_components 1) run_install_test(FILES-EXCLUDE_FROM_ALL) |