mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
Tests: Add RunCMake.file-CHMOD cases for keywords missing values
These make the existing `no-perms` case redundant, so repurpose it to replace `no-keyword`.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
include(RunCMake)
|
||||
|
||||
run_cmake_script(no-perms)
|
||||
run_cmake_script(no-keyword)
|
||||
run_cmake_script(missing-perms)
|
||||
run_cmake_script(missing-file-perms)
|
||||
run_cmake_script(missing-dir-perms)
|
||||
run_cmake_script(all-perms)
|
||||
run_cmake_script(invalid-perms)
|
||||
run_cmake_script(invalid-path)
|
||||
|
||||
3
Tests/RunCMake/file-CHMOD/missing-dir-perms-stderr.txt
Normal file
3
Tests/RunCMake/file-CHMOD/missing-dir-perms-stderr.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
^CMake Error at [^
|
||||
]*/missing-dir-perms.cmake:[0-9]+ \(file\):
|
||||
file DIRECTORY_PERMISSIONS is not given any arguments$
|
||||
2
Tests/RunCMake/file-CHMOD/missing-dir-perms.cmake
Normal file
2
Tests/RunCMake/file-CHMOD/missing-dir-perms.cmake
Normal file
@@ -0,0 +1,2 @@
|
||||
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/a)
|
||||
file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a PERMISSIONS OWNER_READ DIRECTORY_PERMISSIONS)
|
||||
1
Tests/RunCMake/file-CHMOD/missing-file-perms-result.txt
Normal file
1
Tests/RunCMake/file-CHMOD/missing-file-perms-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
3
Tests/RunCMake/file-CHMOD/missing-file-perms-stderr.txt
Normal file
3
Tests/RunCMake/file-CHMOD/missing-file-perms-stderr.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
^CMake Error at [^
|
||||
]*/missing-file-perms.cmake:[0-9]+ \(file\):
|
||||
file FILE_PERMISSIONS is not given any arguments$
|
||||
2
Tests/RunCMake/file-CHMOD/missing-file-perms.cmake
Normal file
2
Tests/RunCMake/file-CHMOD/missing-file-perms.cmake
Normal file
@@ -0,0 +1,2 @@
|
||||
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/a)
|
||||
file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a PERMISSIONS OWNER_READ FILE_PERMISSIONS)
|
||||
1
Tests/RunCMake/file-CHMOD/missing-perms-result.txt
Normal file
1
Tests/RunCMake/file-CHMOD/missing-perms-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
3
Tests/RunCMake/file-CHMOD/missing-perms-stderr.txt
Normal file
3
Tests/RunCMake/file-CHMOD/missing-perms-stderr.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
^CMake Error at [^
|
||||
]*/missing-perms.cmake:[0-9]+ \(file\):
|
||||
file PERMISSIONS is not given any arguments$
|
||||
2
Tests/RunCMake/file-CHMOD/missing-perms.cmake
Normal file
2
Tests/RunCMake/file-CHMOD/missing-perms.cmake
Normal file
@@ -0,0 +1,2 @@
|
||||
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/a)
|
||||
file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a FILE_PERMISSIONS OWNER_READ PERMISSIONS)
|
||||
@@ -1,3 +0,0 @@
|
||||
^CMake Error at [^
|
||||
]*/no-keyword\.cmake:[0-9]+ \(file\):
|
||||
file No permissions given$
|
||||
@@ -1,2 +0,0 @@
|
||||
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/a)
|
||||
file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a)
|
||||
@@ -1,2 +1,2 @@
|
||||
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/a)
|
||||
file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a PERMISSIONS)
|
||||
file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a)
|
||||
|
||||
Reference in New Issue
Block a user