Brad King e1a09cfbd1 Merge topic 'externalproject_download_dir' 8 лет назад
..
Android 4bafa3922e Android: Always add standard include directories last 8 лет назад
AndroidMK dda6775c94 Android: Record use of C++ by static libs in exported Android.mk files 9 лет назад
AndroidTestUtilities 8a5cb84b0e AndroidTestUtilities: do not require ExternalData unconditionally 9 лет назад
AutoExportDll 3250b9a122 bindexplib: Revert support for constants symbols 8 лет назад
BuildDepends ce602febf0 Tests: Fix RunCMake.BuildDepends on VS 2017 with v90 toolset 8 лет назад
CMP0004 d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests 12 лет назад
CMP0019 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 лет назад
CMP0022 70c6557285 Tests: Fix RunCMake.CMP0022 tll case for Debug configuration 8 лет назад
CMP0026 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 лет назад
CMP0027 b1bbee3e9a Record more policies on targets when created 12 лет назад
CMP0028 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 лет назад
CMP0037 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0038 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0039 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0040 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0041 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0042 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0043 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0045 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0046 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0049 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0050 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0051 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0053 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
CMP0054 a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
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 лет назад
CMP0068 1ba91291e3 Add policy CMP0068 separate install_name and RPATH settings on macOS 9 лет назад
CMP0069 ba247ccaba IPO: Consider support for each language separately 8 лет назад
COMPILE_LANGUAGE-genex 2ae880fa8f Genex: Enable COMPILE_LANGUAGE for COMPILE_OPTIONS with Visual Studio 8 лет назад
CPack 325f34d150 CPack tests: add possibility for expecting config developer warnings 8 лет назад
CPackConfig bc2e54db55 Introduction of CPACK_VERBATIM_VARIABLES variable 10 лет назад
CPackInstallProperties 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 8 лет назад
CPackSymlinks 5f686b8a6b Tests: Add case for CPack source package with symlinks 10 лет назад
CSharpCustomCommand ec409a116f Vs: fix CSharp custom command by introducing inline MSBuild <Targets>s 8 лет назад
CTest 681e0429fc Tests: Fix RunCMake.CTest output match to tolerate line number changes 9 лет назад
CTestCommandLine 7904b659ea Tests: Remove incorrect use of 'test-timeout' option 8 лет назад
CTestTimeoutAfterMatch 993e48d045 CTest: Optionally use a secondary test timeout after matching output 9 лет назад
CheckIPOSupported ba247ccaba IPO: Consider support for each language separately 8 лет назад
CheckModules b31d5e1dfd CheckIncludeFiles: improve warning for missing argument 8 лет назад
ClangTidy 80ebc55a7c cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zero 9 лет назад
CommandLine 992962c76d cmcmd: Restore support for running multiple lint tools 8 лет назад
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 e556f1b909 CompileFeatures: Makes tests work with meta-feature only 8 лет назад
CompilerChange 15610bb5b1 Drop use of configure_file IMMEDIATE option 12 лет назад
CompilerLauncher f19c70c3d2 Fortran: Add option to run the compiler through launcher tools 8 лет назад
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 лет назад
Cppcheck 3bbe95f58a Clean up iwyu code to not be one big if statement. 8 лет назад
Cpplint bfcc20343c Update cpplint support to return 0 and mark warnings for CDash. 8 лет назад
CrosscompilingEmulator f648b9be63 Tests: Check that CROSSCOMPILING_EMULATOR is not used on imported targets 9 лет назад
DisallowedCommands 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 лет назад
ExportWithoutLanguage d9fd2f5402 Revise C++ coding style using clang-format 9 лет назад
ExternalData 230f2d6e70 ExternalData: Add option to recursively match under directories 10 лет назад
ExternalProject b8b8748977 ExternalProject: Support substituting <DOWNLOAD_DIR> 8 лет назад
FPHSA 5dc215e03b FPHSA: fix typo in comment 8 лет назад
FeatureSummary 6f62c66b2c FeatureSummary: Add FeatureSummary_<TYPE>_DESCRIPTION global properties 9 лет назад
FetchContent 1e56634faa FetchContent: Add tests 8 лет назад
File_Generate 2b7d59f310 Genex: Enable COMPILE_LANGUAGE for file(GENERATE) with Visual Studio 8 лет назад
FindBoost c044b9ae84 FindBoost: Improve messages when a Boost CMake package is found 8 лет назад
FindGTK2 4bc2c16b5d FindGTK2: Add unit test to check variables when run twice 9 лет назад
FindMatlab d9fd2f5402 Revise C++ coding style using clang-format 9 лет назад
FindOpenGL 2ea17412a9 FindOpenGL: Add policy CMP0072 to prefer GLVND for legacy GL 8 лет назад
FindPkgConfig d9bdcf34ef Tests: Add x32 tests to test suite 8 лет назад
Framework 58d9297eef Tests: Fix RunCMake.Framework ios arch for Xcode 9 8 лет назад
GNUInstallDirs 913736f17d Tests: Fix RunCMake.GNUInstallDirs on BSD platforms 8 лет назад
GenerateExportHeader 49640d3629 HP-UX: Drop support for building CMake on HP-UX 8 лет назад
GeneratorExpression 344d149ae4 VS,Xcode: Add CMakeLists.txt sources without mutating targets 8 лет назад
GeneratorInstance 9ffb35386f VS: Select and save a VS 2017 instance persistently 8 лет назад
GeneratorPlatform bdc679a8ae VS15: Add Visual Studio 15 generator 9 лет назад
GeneratorToolset 7373b389eb Xcode: Drop support for Xcode versions below 3 8 лет назад
GetPrerequisites 1a7b8c8321 GetPrerequisites: Restore behavior on missing binary of not clearing list 8 лет назад
GoogleTest 935848a8a7 GoogleTest: Add test for missing test executable 8 лет назад
IfacePaths a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
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 лет назад
MultiLint 992962c76d cmcmd: Restore support for running multiple lint tools 8 лет назад
Ninja 5e0e03d953 Ninja: Fix command concatenation on Windows 8 лет назад
ObjectLibrary b0e2f1415e target_link_libraries: Slightly fix some error-messages. 8 лет назад
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 лет назад
RuntimePath 69528fe65f Tests: Add case for RPATH exclusion of symlinks to implicit directories 8 лет назад
Swift 1aa29f0db6 Swift: Remove positive Swift language tests 10 лет назад
Syntax a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
TargetObjects 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 8 лет назад
TargetPolicies ae5f40696e CMP0037: Allow test and package targets when features are not enabled 8 лет назад
TargetPropertyGeneratorExpressions d9fd2f5402 Revise C++ coding style using clang-format 9 лет назад
TargetSources 344d149ae4 VS,Xcode: Add CMakeLists.txt sources without mutating targets 8 лет назад
ToolchainFile 8a98cf6432 Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files 9 лет назад
VS10Project 8e654a3785 VS: Enable generation of CSharp projects without initial .cs files 8 лет назад
VSSolution 5cf9c3d0cc VS: Add SolutionGuid to generated .sln files 8 лет назад
VisibilityPreset 726e461b38 CMP0063: Split unit test by target type. 10 лет назад
WriteCompilerDetectionHeader 4cf5179c77 WCDH: Make it possible to generate multiple files. 11 лет назад
XcodeProject 9432f686e6 Add generator expression support to per-source COMPILE_DEFINITIONS 8 лет назад
add_custom_command 9ed2428078 VS: only add custom command line if it is not empty 8 лет назад
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_executable 4e7f67383f Defer check for sources within a target until generation. 8 лет назад
add_library fe4b25ec2f Teach target_* commands to set INTERFACE properties of IMPORTED targets 8 лет назад
add_subdirectory df32e564ae Xcode: Add targets marked as EXCLUDE_FROM_ALL to project (#16101) 9 лет назад
alias_targets 494906a8a2 Add support for IMPORTED GLOBAL targets to be aliased 8 лет назад
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_disabled_test 851b6c1595 cmCTestTestHandler: indicate why a test did not run 8 лет назад
ctest_fixtures fbe91dba6a CTest: Check failed fixture dependencies before test command and args 8 лет назад
ctest_labels_for_subprojects 5b829c89b8 CTest: Weight reported test times by PROCESSORS in summaries 8 лет назад
ctest_memcheck e116f2a5de ctest_memcheck: Fix sanitizers when MemoryCheckSanitizerOptions is empty 9 лет назад
ctest_skipped_test 851b6c1595 cmCTestTestHandler: indicate why a test did not run 8 лет назад
ctest_start 0699e0d3e4 Tests: Move CTestTestConfigFileInBuildDir into RunCMake.ctest_start 10 лет назад
ctest_submit 1a7d00bd12 ctest_submit: Add HTTPHEADER option 8 лет назад
ctest_test 6a56c8247f Tests: Disable parallel test execution while running ctest_test 10 лет назад
ctest_upload ff1ddd2a73 ctest_upload: Add QUIET option 11 лет назад
execute_process d6051ca39e execute_process: Add option to get results of every child 8 лет назад
export 7e9f908ef5 export: Reject custom target exports earlier (#15657) 10 лет назад
file 754e39dd36 Add testcases for file(DOWNLOAD|UPLOAD) netrc options 8 лет назад
find_dependency ab358d6a85 Improve find_dependency argument handling 8 лет назад
find_file b30b32a493 Drop find_(library|file|path) prefixes from PATH on non-Windows 9 лет назад
find_library 6f5aede716 find_library: Skip 'lib => lib<arch>' searches if one symlinks the other 8 лет назад
find_package 311f338ddc Merge topic 'find-package_root-test-regex' 8 лет назад
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 лет назад
foreach fb114a40aa Tests: Add test for bad foreach inside a function 8 лет назад
get_filename_component 31f73eb12d get_filename_component: Revise PROGRAM/PROGRAM_ARGS split semantics 8 лет назад
get_property 6a3922bebe Add new target-property `IMPORTED_GLOBAL`. 8 лет назад
if edac95b955 cmIfCommand: Reject duplicate else() and misplaced elseif() 8 лет назад
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 227de0b95d include_external_msproject: Honor MAP_IMPORTED_CONFIG_<CONFIG> 8 лет назад
include_guard c96f43b7dd include_guard: add tests for the feature 8 лет назад
install f4c23ee244 Tests: Add case for install(FILES) with TARGET_OBJECTS 8 лет назад
interface_library fb3c5bfdbe cmTargetPropertyComputer: whitelist custom properties 8 лет назад
list 0205f882ae list: Add FILTER subcommand (#3986) 10 лет назад
message 777e87ae00 Fix trivial typos in text 8 лет назад
no_install_prefix 1c3918ff02 RunCMake: Remove unneeded files. 11 лет назад
project a0ec14d363 Add deprecation warnings for policies CMP0054 and below 8 лет назад
return d124c41168 return: Add test for returning inside a foreach loop 11 лет назад
separate_arguments 2a207aaca1 separgs: Add a NATIVE_COMMAND mode 8 лет назад
set d1b62185d6 Merge branch 'parent-scope-tests' into variable-pull-failure 11 лет назад
set_property 6a3922bebe Add new target-property `IMPORTED_GLOBAL`. 8 лет назад
string 014ad2989c Timestamp: support %A and %B 8 лет назад
target_compile_features fe4b25ec2f Teach target_* commands to set INTERFACE properties of IMPORTED targets 8 лет назад
target_link_libraries b0e2f1415e target_link_libraries: Slightly fix some error-messages. 8 лет назад
test_include_dirs 117033c1d9 Add TEST_INCLUDE_DIR[S] unit test 8 лет назад
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 28d2c6ef7e test: Added additional unit test to variable_watch 8 лет назад
while 1afbe7d2cc Make error message of standalone endwhile command consistent 9 лет назад
CMakeLists.txt f19c70c3d2 Fortran: Add option to run the compiler through launcher tools 8 лет назад
README.rst a7a6ae5edd Tests: Update RunCMake/README.rst to clarify meaning of -result.txt 8 лет назад
RunCMake.cmake 314613d1af Add infrastructure for generators to select a build tool instance 8 лет назад
RunCTest.cmake f725b20be3 Update tests that expect uncompressed output 9 лет назад
exit_code.c d6051ca39e execute_process: Add option to get results of every child 8 лет назад
pseudo_cppcheck.c 3bbe95f58a Clean up iwyu code to not be one big if statement. 8 лет назад
pseudo_cpplint.c 0618ddf6b1 Add properties to run the cpplint style checker with the compiler 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``
Regex matching expected process result, 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``.