1
0
Bernhard M. Wiedemann 243aed525a cmTimestamp: Support SOURCE_DATE_EPOCH to override current time 9 жил өмнө
..
Android f7c5e970a0 Android: Add CMAKE_<LANG>_ANDROID_TOOLCHAIN_MACHINE 9 жил өмнө
AndroidMK dda6775c94 Android: Record use of C++ by static libs in exported Android.mk files 9 жил өмнө
AndroidTestUtilities 130784e039 AndroidTestUtilities: Add module to help drive Android device tests 9 жил өмнө
AutoExportDll 13a6ff31be VS: Fix WINDOWS_EXPORT_ALL_SYMBOLS for object libraries 9 жил өмнө
BuildDepends 7a649111cd Use string(APPEND) in Tests 9 жил өмнө
CMP0004 d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests 12 жил өмнө
CMP0019 881613c4ab cmMakefile: Remove special handling of LINK_DIRECTORIES property. 10 жил өмнө
CMP0022 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0026 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0027 b1bbee3e9a Record more policies on targets when created 12 жил өмнө
CMP0028 1c3918ff02 RunCMake: Remove unneeded files. 11 жил өмнө
CMP0037 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0038 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0039 1c3918ff02 RunCMake: Remove unneeded files. 11 жил өмнө
CMP0040 828e763260 Tests: Fix RunCMake.CMP0040 custom command syntax 9 жил өмнө
CMP0041 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0042 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0043 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0045 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0046 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0049 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0050 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0051 d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CMP0053 9ba91463e6 tests: test CMP0053 in WARN mode when watching variables 11 жил өмнө
CMP0054 7a649111cd Use string(APPEND) in Tests 9 жил өмнө
CMP0055 1c3918ff02 RunCMake: Remove unneeded files. 11 жил өмнө
CMP0057 aed6239e40 if: Implement new IN_LIST operator 10 жил өмнө
CMP0059 845cb217a7 CMP0059: Fix typo in policy description 9 жил өмнө
CMP0060 882f48e5ba Link libraries by full path even in implicit directories 10 жил өмнө
CMP0064 402bf096ec CMP0064: Fix recorded version of introduction to be 3.4 10 жил өмнө
CMP0065 566086187f Fix typos. 9 жил өмнө
COMPILE_LANGUAGE-genex d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CPack 624709c824 CPack/STGZ: minimalistic packages test 9 жил өмнө
CPackConfig bc2e54db55 Introduction of CPACK_VERBATIM_VARIABLES variable 10 жил өмнө
CPackInstallProperties d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CPackSymlinks 5f686b8a6b Tests: Add case for CPack source package with symlinks 10 жил өмнө
CTest 681e0429fc Tests: Fix RunCMake.CTest output match to tolerate line number changes 9 жил өмнө
CTestCommandLine a105863772 CTest: Properly reset output to avoid duplication with --repeat-until-fail 9 жил өмнө
CTestTimeoutAfterMatch 993e48d045 CTest: Optionally use a secondary test timeout after matching output 9 жил өмнө
CheckModules 73ae888506 RunCMake: Expect empty output by default. 11 жил өмнө
ClangTidy 80ebc55a7c cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zero 9 жил өмнө
CommandLine 1d601c6cb9 server-mode: Introduce cmServerConnection 9 жил өмнө
CommandLineTar 6c4781baa9 Tests: Consolidate, refactor and extend -E tar tests 10 жил өмнө
CompatibleInterface d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CompileDefinitions c1bf1a59ff CompileDefinitions: Add unit test for setting empty content. 10 жил өмнө
CompileFeatures df252db15a Features: Test cycle diagnostic with language standard meta-feature 9 жил өмнө
CompilerChange 15610bb5b1 Drop use of configure_file IMMEDIATE option 12 жил өмнө
CompilerLauncher d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
CompilerNotFound afeb4eb243 nmake/jom: Only warn about bad VS environment if compiler not found. 10 жил өмнө
Configure 25b6e7b710 Tolerate removed/replaced CMakeCache.txt with old CMakeFiles/ 9 жил өмнө
CrosscompilingEmulator f648b9be63 Tests: Check that CROSSCOMPILING_EMULATOR is not used on imported targets 9 жил өмнө
DisallowedCommands 1c3918ff02 RunCMake: Remove unneeded files. 11 жил өмнө
ExportWithoutLanguage d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
ExternalData 230f2d6e70 ExternalData: Add option to recursively match under directories 10 жил өмнө
ExternalProject a3c98cb30e ExternalProject: Fix regression in passing list to CMAKE_CACHE_ARGS 9 жил өмнө
FPHSA 73ae888506 RunCMake: Expect empty output by default. 11 жил өмнө
FeatureSummary 38ef2b7363 FeatureSummary: Print each feature info only once 11 жил өмнө
File_Generate d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
FindMatlab d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
FindPkgConfig 896ad251de Teach find_library and find_package to search lib32 paths (#11260) 9 жил өмнө
Framework 677e73cb8a Tests: Fix RunCMake.Framework on case sensitive file systems. 9 жил өмнө
GNUInstallDirs c8bd37ec68 GNUInstallDirs: Add special cases for certain prefixes 10 жил өмнө
GenerateExportHeader 612d6f29f8 Tests: Refactor GenerateExportHeader test code 9 жил өмнө
GeneratorExpression c3fb0d95ad cmTarget: Move sanity checks and computed property access to callers 9 жил өмнө
GeneratorPlatform bdc679a8ae VS15: Add Visual Studio 15 generator 9 жил өмнө
GeneratorToolset d079e71c29 VS: Provide an option to use x64 host tools 9 жил өмнө
IfacePaths d430cb7c36 Tests: Fix failures when running under the default install prefix (#15566) 10 жил өмнө
IncludeWhatYouUse d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
IncompatibleQt d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
Languages d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
LinkStatic 18d7f8fbfb Tests: Move LINK_SEARCH_{START,END}_STATIC case to dedicated test 10 жил өмнө
LinkWhatYouUse 96242f8022 Add options to run `ldd -u -r` as a "link-what-you-use" tool 9 жил өмнө
Make 048d1adb4e add_custom_command: Add DEPFILE option for Ninja 9 жил өмнө
Ninja e983bd326a Ninja: Use binary dir for `$subdir/all` targets 9 жил өмнө
ObjectLibrary d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
ObsoleteQtMacros d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
PolicyScope 7c36d2067b cmListFileBacktrace: Refactor storage to provide efficient value semantics 9 жил өмнө
PositionIndependentCode d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
Swift 1aa29f0db6 Swift: Remove positive Swift language tests 10 жил өмнө
Syntax 1dda2ec55a Improve error message on unexpected end of file 9 жил өмнө
TargetObjects affe9d56a2 Allow INTERFACE_SOURCES to specify $<TARGET_OBJECTS> (#14970) 11 жил өмнө
TargetPolicies d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
TargetPropertyGeneratorExpressions d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
TargetSources d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
ToolchainFile 8a98cf6432 Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files 9 жил өмнө
VS10Project 6fda6005b3 VS: renamed target property VS_USER_PROPS_CXX to VS_USER_PROPS 9 жил өмнө
VSSolution 9e3164dfa2 VS: Add option to place `PACKAGE` target in solution default build 9 жил өмнө
VisibilityPreset 726e461b38 CMP0063: Split unit test by target type. 10 жил өмнө
WriteCompilerDetectionHeader 4cf5179c77 WCDH: Make it possible to generate multiple files. 11 жил өмнө
XcodeProject 10c9c73d58 Xcode: Control emission of EFFECTIVE_PLATFORM_NAME 9 жил өмнө
add_custom_command 92d76b50aa Make the add_custom_command output more predictable 9 жил өмнө
add_custom_target 1296a0eada Ninja: Fix inter-target order-only dependencies of custom commands 9 жил өмнө
add_dependencies d9f836e956 Add a getter for manually added target dependencies 9 жил өмнө
add_subdirectory df32e564ae Xcode: Add targets marked as EXCLUDE_FROM_ALL to project (#16101) 9 жил өмнө
alias_targets d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
build_command 226df303f9 CTest: Stop telling 'make' to ignore errors with -i 10 жил өмнө
cmake_minimum_required 7d47c69365 Drop compatibility with CMake < 2.4 12 жил өмнө
cmake_parse_arguments 66c70cd9f1 cmake_parse_arguments: Add additional unit tests 9 жил өмнө
configure_file 024e25e485 Tests: Add more signature tests to RunCMake.configure_file test 10 жил өмнө
continue 7a649111cd Use string(APPEND) in Tests 9 жил өмнө
ctest_build 19beee46cc ctest_configure: Propagate CTEST_USE_LAUNCHERS from caller to project 9 жил өмнө
ctest_cmake_error d328dc6853 CTest: Add CAPTURE_CMAKE_ERROR val to `ctest_*` commands 9 жил өмнө
ctest_configure f999dc0bbf ctest_configure: Add QUIET option 11 жил өмнө
ctest_coverage fc58bdb9ad ctest_coverage: Add QUIET option 11 жил өмнө
ctest_fixtures 298b5b31ca CTest: Ensure setup/cleanup ordering even when fixture not required 9 жил өмнө
ctest_memcheck 0a2e588585 ctest_memcheck: join *SAN_OPTIONS with : 9 жил өмнө
ctest_start 0699e0d3e4 Tests: Move CTestTestConfigFileInBuildDir into RunCMake.ctest_start 10 жил өмнө
ctest_submit 5614a5cd1f ctest_submit: Allow RETRY_COUNT for CDASH_UPLOAD 9 жил өмнө
ctest_test 6a56c8247f Tests: Disable parallel test execution while running ctest_test 10 жил өмнө
ctest_upload ff1ddd2a73 ctest_upload: Add QUIET option 11 жил өмнө
execute_process 2ed473b3b8 execute_process: Add ENCODING option for Windows child process output 9 жил өмнө
export 7e9f908ef5 export: Reject custom target exports earlier (#15657) 10 жил өмнө
file 2bba0bfc2c file: Fix crash on GLOB with no expressions after LIST_DIRECTORIES 9 жил өмнө
find_dependency a25b809f20 Tests: Check find_dependency empty extra arguments 11 жил өмнө
find_file b30b32a493 Drop find_(library|file|path) prefixes from PATH on non-Windows 9 жил өмнө
find_library b30b32a493 Drop find_(library|file|path) prefixes from PATH on non-Windows 9 жил өмнө
find_package 7c36d2067b cmListFileBacktrace: Refactor storage to provide efficient value semantics 9 жил өмнө
find_path 188baef00c find_path: Fix location of <dir/header.h> in a framework on OS X 9 жил өмнө
find_program b7b3b675fd Merge topic 'fix-find_program-regression' 10 жил өмнө
get_filename_component de1493176b Tests: Use upper-case drive letters in RunCMake.get_filename_component 9 жил өмнө
get_property d0be1e15c3 Add directory properties to get source and binary directories 9 жил өмнө
if 7a649111cd Use string(APPEND) in Tests 9 жил өмнө
include d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
include_directories a4bd30104f include_directories: Fix regression in BEFORE option (#15693) 10 жил өмнө
include_external_msproject 7a649111cd Use string(APPEND) in Tests 9 жил өмнө
install 7a649111cd Use string(APPEND) in Tests 9 жил өмнө
interface_library 09cda9d5e7 Allow imported INTERFACE libraries to specify a link library name 9 жил өмнө
list 0205f882ae list: Add FILTER subcommand (#3986) 10 жил өмнө
message 0a4af0735f cmake: Issue message independent of cmMakefile definition 9 жил өмнө
no_install_prefix 1c3918ff02 RunCMake: Remove unneeded files. 11 жил өмнө
project 9c5238dfd6 project: Fix support for explicit RC language 9 жил өмнө
return d124c41168 return: Add test for returning inside a foreach loop 11 жил өмнө
set d1b62185d6 Merge branch 'parent-scope-tests' into variable-pull-failure 11 жил өмнө
set_property 98f2143305 cmTarget: Enforce TYPE being a read-only property 9 жил өмнө
string 243aed525a cmTimestamp: Support SOURCE_DATE_EPOCH to override current time 9 жил өмнө
target_compile_features d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
target_link_libraries d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
try_compile 5599d858c7 CUDA: Port test cases to Windows with MSVC host compiler 9 жил өмнө
try_run d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
variable_watch d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests 12 жил өмнө
while 1afbe7d2cc Make error message of standalone endwhile command consistent 9 жил өмнө
CMakeLists.txt 624709c824 CPack/STGZ: minimalistic packages test 9 жил өмнө
README.rst 9b50388b09 Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck) 11 жил өмнө
RunCMake.cmake 2ed473b3b8 execute_process: Add ENCODING option for Windows child process output 9 жил өмнө
RunCTest.cmake f725b20be3 Update tests that expect uncompressed output 9 жил өмнө
pseudo_emulator.c d9fd2f5402 Revise C++ coding style using clang-format 9 жил өмнө
pseudo_emulator_custom_command.c e7480d670b Fix custom command target substitution with CROSSCOMPILING_EMULATOR 9 жил өмнө
pseudo_iwyu.c 44de615781 cmake: Comment why we ignore the include-what-you-use return code 9 жил өмнө
pseudo_tidy.c 80ebc55a7c cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zero 9 жил өмнө

README.rst

This directory contains tests that run CMake to configure a project
but do not actually build anything. To add a test:

1. Add a subdirectory named for the test, say ``/``.

2. In ``./CMakeLists.txt`` call ``add_RunCMake_test`` and pass the
test directory name ````.

3. Create script ``/RunCMakeTest.cmake`` in the directory containing::

include(RunCMake)
run_cmake(SubTest1)
...
run_cmake(SubTestN)

where ``SubTest1`` through ``SubTestN`` are sub-test names each
corresponding to an independent CMake run and project configuration.

One may also add calls of the form::

run_cmake_command(SubTestI ${CMAKE_COMMAND} ...)

to fully customize the test case command-line.

Alternatively, if the test is to cover running ``ctest -S`` then use::

include(RunCTest)
run_ctest(SubTest1)
...
run_ctest(SubTestN)

and create ``test.cmake.in``, ``CTestConfig.cmake.in``, and
``CMakeLists.txt.in`` files to be configured for each case.

4. Create file ``/CMakeLists.txt`` in the directory containing::

cmake_minimum_required(...)
project(${RunCMake_TEST} NONE) # or languages needed
include(${RunCMake_TEST}.cmake)

where ``${RunCMake_TEST}`` is literal. A value for ``RunCMake_TEST``
will be passed to CMake by the ``run_cmake`` macro when running each
sub-test.

5. Create a ``/.cmake`` file for each sub-test named
above containing the actual test code. Optionally create files
containing expected test results:

``-result.txt``
Process result expected if not "0"
``-stdout.txt``
Regex matching expected stdout content
``-stderr.txt``
Regex matching expected stderr content, if not "^$"
``-check.cmake``
Custom result check.

Note that trailing newlines will be stripped from actual and expected
test output before matching against the stdout and stderr expressions.
The code in ``-check.cmake`` may use variables

``RunCMake_TEST_SOURCE_DIR``
Top of test source tree
``RunCMake_TEST_BINARY_DIR``
Top of test binary tree

and an failure must store a message in ``RunCMake_TEST_FAILED``.