Brad King db6ea482f6 Merge topic 'gtest-dynamic-discovery' 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 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 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 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 лет назад
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 d9fd2f5402 Revise C++ coding style using clang-format 9 лет назад
CPack 9e06e97d30 CPack/Archive: per component filenames support 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 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 лет назад
CheckIPOSupported ba247ccaba IPO: Consider support for each language separately 8 лет назад
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 c4de0a25ac Add sha1sum, sha224sum, sha256sum, sha384sum and sha512sum to command mode 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 414438b2fb CUDA: 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 лет назад
Cpplint 0618ddf6b1 Add properties to run the cpplint style checker with the compiler 9 лет назад
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 8842a0272b ExternalProject: Improve documentation 8 лет назад
FPHSA 73ae888506 RunCMake: Expect empty output by default. 11 лет назад
FeatureSummary 6f62c66b2c FeatureSummary: Add FeatureSummary_<TYPE>_DESCRIPTION global properties 9 лет назад
File_Generate 82be694c7a file(GENERATE): Add policy CMP0070 to define relative path behavior 8 лет назад
FindGTK2 4bc2c16b5d FindGTK2: Add unit test to check variables when run twice 9 лет назад
FindMatlab d9fd2f5402 Revise C++ coding style using clang-format 9 лет назад
FindPkgConfig d9bdcf34ef Tests: Add x32 tests to test suite 8 лет назад
Framework 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 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 e49c9eec27 cmGeneratorExpressionNode: add some missing commas 8 лет назад
GeneratorPlatform bdc679a8ae VS15: Add Visual Studio 15 generator 9 лет назад
GeneratorToolset 7373b389eb Xcode: Drop support for Xcode versions below 3 8 лет назад
GoogleTest bfcda4013a Add dynamic test discovery for for Google Test 8 лет назад
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 5e0e03d953 Ninja: Fix command concatenation on Windows 8 лет назад
ObjectLibrary d89e10cd58 Diagnose object library self-reference 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 9 лет назад
Swift 1aa29f0db6 Swift: Remove positive Swift language tests 10 лет назад
Syntax 1dda2ec55a Improve error message on unexpected end of file 9 лет назад
TargetObjects 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 8 лет назад
TargetPolicies 1588a577d1 Add policy CMP0069 to enforce INTERPROCEDURAL_OPTIMIZATION 8 лет назад
TargetPropertyGeneratorExpressions d9fd2f5402 Revise C++ coding style using clang-format 9 лет назад
TargetSources 7dca104e14 Merge topic 'deprecate-policy-old' 8 лет назад
ToolchainFile 8a98cf6432 Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files 9 лет назад
VS10Project f3ffd18ab6 Merge topic 'vs_csharp_prop_for_all_extensions' 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 d02709d7f7 Genex: Add `TARGET_BUNDLE_[CONTENT_]_DIR` generator expressions 8 лет назад
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 11 лет назад
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 c1b2b7c03c Add ctest options for limiting which tests fixtures add 8 лет назад
ctest_labels_for_subprojects a70d8e93e8 Add tests for new directory labels and labels-for-subprojects features 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 99b90dbf3c file: Add COPY/INSTALL option for fixed layout relative to a directory 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 9 лет назад
find_package 4a20711690 find_package: Split PACKAGE_ROOT tests to work with smaller 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 лет назад
get_filename_component de1493176b Tests: Use upper-case drive letters in RunCMake.get_filename_component 9 лет назад
get_property 01826231f8 Tests: Add case for GENERATOR_IS_MULTI_CONFIG 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 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 3b4848717a project: Add `DESCRIPTION` parameter 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 98f2143305 cmTarget: Enforce TYPE being a read-only property 9 лет назад
string b794164143 cmStringCommand: clear intermediate matches 8 лет назад
target_compile_features e03a1b3b61 target_compile_features: Do not crash on non-enabled language 8 лет назад
target_link_libraries d9fd2f5402 Revise C++ coding style using clang-format 9 лет назад
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 d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests 12 лет назад
while 1afbe7d2cc Make error message of standalone endwhile command consistent 9 лет назад
CMakeLists.txt bfcda4013a Add dynamic test discovery for for Google Test 8 лет назад
README.rst 9b50388b09 Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck) 11 лет назад
RunCMake.cmake 81f9c9e892 Deprecate Visual Studio 8 2005 generator 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_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``
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``.