mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-05 04:03:22 +03:00
Enhance RunCMake test coverage for file(GLOB)
This commit is contained in:
1 parent
fcaa134c6c
commit
915b71010c
15 files changed
+35
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,4 @@
|
||||
^CMake Error at GLOB-error-FOLLOW_SYMLINKS\.cmake:[0-9]+ \(file\):
|
||||
file FOLLOW_SYMLINKS is not a valid parameter for GLOB\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)$
|
||||
@@ -0,0 +1 @@
|
||||
file(GLOB CONTENT_LIST FOLLOW_SYMLINKS)
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,4 @@
|
||||
^CMake Error at GLOB-error-RELATIVE-no-arg\.cmake:[0-9]+ \(file\):
|
||||
file GLOB requires a directory after the RELATIVE tag\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)$
|
||||
@@ -0,0 +1 @@
|
||||
file(GLOB CONTENT_LIST RELATIVE)
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,4 @@
|
||||
^CMake Error at GLOB-noexp-LIST_DIRECTORIES\.cmake:[0-9]+ \(file\):
|
||||
file GLOB requires a glob expression after the bool\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)$
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,4 @@
|
||||
^CMake Error at GLOB-noexp-RELATIVE\.cmake:[0-9]+ \(file\):
|
||||
file GLOB requires a glob expression after the directory\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)$
|
||||
@@ -0,0 +1 @@
|
||||
file(GLOB CONTENT_LIST RELATIVE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,4 @@
|
||||
^CMake Error at GLOB_RECURSE-noexp-FOLLOW_SYMLINKS\.cmake:[0-9]+ \(file\):
|
||||
file GLOB_RECURSE requires a glob expression after FOLLOW_SYMLINKS\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)$
|
||||
@@ -0,0 +1 @@
|
||||
file(GLOB_RECURSE CONTENT_LIST FOLLOW_SYMLINKS)
|
||||
@@ -35,11 +35,15 @@ run_cmake(LOCK-lowercase)
|
||||
run_cmake(READ_ELF)
|
||||
run_cmake(GLOB)
|
||||
run_cmake(GLOB_RECURSE)
|
||||
# test is valid both for GLOB and GLOB_RECURSE
|
||||
run_cmake(GLOB_RECURSE-noexp-FOLLOW_SYMLINKS)
|
||||
|
||||
# tests are valid both for GLOB and GLOB_RECURSE
|
||||
run_cmake(GLOB-error-FOLLOW_SYMLINKS)
|
||||
run_cmake(GLOB-error-LIST_DIRECTORIES-not-boolean)
|
||||
# test is valid both for GLOB and GLOB_RECURSE
|
||||
run_cmake(GLOB-error-LIST_DIRECTORIES-no-arg)
|
||||
run_cmake(GLOB-error-RELATIVE-no-arg)
|
||||
run_cmake(GLOB-noexp-LIST_DIRECTORIES)
|
||||
run_cmake(GLOB-noexp-RELATIVE)
|
||||
|
||||
if(NOT WIN32 OR CYGWIN)
|
||||
run_cmake(GLOB_RECURSE-cyclic-recursion)
|
||||
|
||||
Reference in new issue
Block a user