mirror of
https://github.com/reactos/CMake.git
synced 2025-01-05 18:38:46 +00:00
CheckIncludeFiles: add unit tests
This commit is contained in:
parent
7669695a74
commit
ea1bb90270
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,8 @@
|
||||
CMake Error at .*/Modules/CheckIncludeFiles.cmake:[0-9]+. \(message\):
|
||||
Unknown arguments:
|
||||
|
||||
LANGUAGE
|
||||
|
||||
Call Stack \(most recent call first\):
|
||||
CheckIncludeFilesMissingLanguage.cmake:[0-9]+ \(check_include_files\)
|
||||
CMakeLists.txt:[0-9]+ \(include\)
|
@ -0,0 +1,3 @@
|
||||
enable_language(C)
|
||||
include(CheckIncludeFiles)
|
||||
check_include_files("stddef.h;stdlib.h" HAVE_MISSING_ARGUMENT_H LANGUAGE)
|
6
Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake
Normal file
6
Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
enable_language(C)
|
||||
enable_language(CXX)
|
||||
include(CheckIncludeFiles)
|
||||
check_include_files("stddef.h;stdlib.h" HAVE_STDLIB_H)
|
||||
check_include_files("stddef.h;stdlib.h" HAVE_STDLIB_H2 LANGUAGE C)
|
||||
check_include_files("cstddef;cstdlib" HAVE_CSTDLIB_H LANGUAGE CXX)
|
4
Tests/RunCMake/CheckModules/CheckIncludeFilesOkNoC.cmake
Normal file
4
Tests/RunCMake/CheckModules/CheckIncludeFilesOkNoC.cmake
Normal file
@ -0,0 +1,4 @@
|
||||
enable_language(CXX)
|
||||
include(CheckIncludeFiles)
|
||||
check_include_files("cstddef;cstdlib" HAVE_CSTDLIB_H3 LANGUAGE CXX)
|
||||
check_include_files("cstddef;cstdlib" HAVE_CSTDLIB_H4)
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,8 @@
|
||||
CMake Error at .*/Modules/CheckIncludeFiles.cmake:[0-9]+. \(message\):
|
||||
Unknown arguments:
|
||||
|
||||
FOOBAR
|
||||
|
||||
Call Stack \(most recent call first\):
|
||||
CheckIncludeFilesUnknownArgument.cmake:[0-9]+ \(check_include_files\)
|
||||
CMakeLists.txt:[0-9]+ \(include\)
|
@ -0,0 +1,3 @@
|
||||
enable_language(C)
|
||||
include(CheckIncludeFiles)
|
||||
check_include_files("stddef.h;stdlib.h" HAVE_UNKNOWN_ARGUMENT_H FOOBAR)
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,10 @@
|
||||
CMake Error at .*/Modules/CheckIncludeFiles.cmake:[0-9]+. \(message\):
|
||||
Unknown language:
|
||||
|
||||
FOOBAR
|
||||
|
||||
Supported languages: C, CXX.
|
||||
|
||||
Call Stack \(most recent call first\):
|
||||
CheckIncludeFilesUnknownLanguage.cmake:[0-9]+ \(check_include_files\)
|
||||
CMakeLists.txt:[0-9]+ \(include\)
|
@ -0,0 +1,3 @@
|
||||
enable_language(C)
|
||||
include(CheckIncludeFiles)
|
||||
check_include_files("stddef.h;stdlib.h" HAVE_UNKNOWN_ARGUMENT_H LANGUAGE FOOBAR)
|
@ -14,3 +14,9 @@ run_cmake(CheckTypeSizeUnknownArgument)
|
||||
run_cmake(CheckTypeSizeMixedArgs)
|
||||
|
||||
run_cmake(CheckTypeSizeOkNoC)
|
||||
|
||||
run_cmake(CheckIncludeFilesOk)
|
||||
run_cmake(CheckIncludeFilesOkNoC)
|
||||
run_cmake(CheckIncludeFilesMissingLanguage)
|
||||
run_cmake(CheckIncludeFilesUnknownArgument)
|
||||
run_cmake(CheckIncludeFilesUnknownLanguage)
|
||||
|
Loading…
Reference in New Issue
Block a user