Commit 915b7101 authored by Shane Parris's avatar Shane Parris
Browse files

Enhance RunCMake test coverage for file(GLOB)

parent fcaa134c
^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\)$
file(GLOB CONTENT_LIST FOLLOW_SYMLINKS)
^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\)$
^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\)$
^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\)$
file(GLOB CONTENT_LIST RELATIVE "${CMAKE_CURRENT_BINARY_DIR}")
^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\)$
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment