Brad King 00b91b1530 Merge topic 'execute_process-pipeline-results' 8 years ago
..
Android f7c5e970a0 Android: Add CMAKE_<LANG>_ANDROID_TOOLCHAIN_MACHINE 9 years ago
AndroidMK dda6775c94 Android: Record use of C++ by static libs in exported Android.mk files 9 years ago
AndroidTestUtilities 8a5cb84b0e AndroidTestUtilities: do not require ExternalData unconditionally 9 years ago
AutoExportDll afb21342ea bindexplib: fix constants symbols export 8 years ago
BuildDepends 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 8 years ago
CMP0004 d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests 12 years ago
CMP0019 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 years ago
CMP0022 70c6557285 Tests: Fix RunCMake.CMP0022 tll case for Debug configuration 8 years ago
CMP0026 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 years ago
CMP0027 b1bbee3e9a Record more policies on targets when created 12 years ago
CMP0028 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 years ago
CMP0037 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0038 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0039 1c3918ff02 RunCMake: Remove unneeded files. 11 years ago
CMP0040 828e763260 Tests: Fix RunCMake.CMP0040 custom command syntax 9 years ago
CMP0041 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0042 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0043 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0045 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0046 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0049 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0050 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0051 d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CMP0053 9ba91463e6 tests: test CMP0053 in WARN mode when watching variables 11 years ago
CMP0054 7a649111cd Use string(APPEND) in Tests 9 years ago
CMP0055 1c3918ff02 RunCMake: Remove unneeded files. 11 years ago
CMP0057 aed6239e40 if: Implement new IN_LIST operator 10 years ago
CMP0059 845cb217a7 CMP0059: Fix typo in policy description 9 years ago
CMP0060 882f48e5ba Link libraries by full path even in implicit directories 10 years ago
CMP0064 402bf096ec CMP0064: Fix recorded version of introduction to be 3.4 10 years ago
CMP0065 566086187f Fix typos. 9 years ago
CMP0068 1ba91291e3 Add policy CMP0068 separate install_name and RPATH settings on macOS 9 years ago
CMP0069 7e75568b00 Xcode: Support IPO (LTO) 8 years ago
COMPILE_LANGUAGE-genex d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CPack 9e06e97d30 CPack/Archive: per component filenames support 8 years ago
CPackConfig bc2e54db55 Introduction of CPACK_VERBATIM_VARIABLES variable 10 years ago
CPackInstallProperties 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 8 years ago
CPackSymlinks 5f686b8a6b Tests: Add case for CPack source package with symlinks 10 years ago
CTest 681e0429fc Tests: Fix RunCMake.CTest output match to tolerate line number changes 9 years ago
CTestCommandLine a105863772 CTest: Properly reset output to avoid duplication with --repeat-until-fail 9 years ago
CTestTimeoutAfterMatch 993e48d045 CTest: Optionally use a secondary test timeout after matching output 9 years ago
CheckIPOSupported 7e75568b00 Xcode: Support IPO (LTO) 8 years ago
CheckModules 73ae888506 RunCMake: Expect empty output by default. 11 years ago
ClangTidy 80ebc55a7c cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zero 9 years ago
CommandLine 81f9c9e892 Deprecate Visual Studio 8 2005 generator 8 years ago
CommandLineTar 6c4781baa9 Tests: Consolidate, refactor and extend -E tar tests 10 years ago
CompatibleInterface d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
CompileDefinitions c1bf1a59ff CompileDefinitions: Add unit test for setting empty content. 10 years ago
CompileFeatures e556f1b909 CompileFeatures: Makes tests work with meta-feature only 8 years ago
CompilerChange 15610bb5b1 Drop use of configure_file IMMEDIATE option 12 years ago
CompilerLauncher 414438b2fb CUDA: Add option to run the compiler through launcher tools 8 years ago
CompilerNotFound afeb4eb243 nmake/jom: Only warn about bad VS environment if compiler not found. 10 years ago
Configure 25b6e7b710 Tolerate removed/replaced CMakeCache.txt with old CMakeFiles/ 9 years ago
Cpplint 0618ddf6b1 Add properties to run the cpplint style checker with the compiler 9 years ago
CrosscompilingEmulator f648b9be63 Tests: Check that CROSSCOMPILING_EMULATOR is not used on imported targets 9 years ago
DisallowedCommands 4f5bbbeab9 Add deprecation warnings for policies CMP0036 and below 8 years ago
ExportWithoutLanguage d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
ExternalData 230f2d6e70 ExternalData: Add option to recursively match under directories 10 years ago
ExternalProject a3c98cb30e ExternalProject: Fix regression in passing list to CMAKE_CACHE_ARGS 9 years ago
FPHSA 73ae888506 RunCMake: Expect empty output by default. 11 years ago
FeatureSummary 6f62c66b2c FeatureSummary: Add FeatureSummary_<TYPE>_DESCRIPTION global properties 9 years ago
File_Generate 82be694c7a file(GENERATE): Add policy CMP0070 to define relative path behavior 8 years ago
FindGTK2 4bc2c16b5d FindGTK2: Add unit test to check variables when run twice 9 years ago
FindMatlab d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
FindPkgConfig d9bdcf34ef Tests: Add x32 tests to test suite 8 years ago
Framework 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 8 years ago
GNUInstallDirs 913736f17d Tests: Fix RunCMake.GNUInstallDirs on BSD platforms 8 years ago
GenerateExportHeader 9eb05b48cd GenerateExportHeader: always fill in _EXPORT macros 8 years ago
GeneratorExpression d02709d7f7 Genex: Add `TARGET_BUNDLE_[CONTENT_]_DIR` generator expressions 8 years ago
GeneratorPlatform bdc679a8ae VS15: Add Visual Studio 15 generator 9 years ago
GeneratorToolset 7373b389eb Xcode: Drop support for Xcode versions below 3 8 years ago
IfacePaths d430cb7c36 Tests: Fix failures when running under the default install prefix (#15566) 10 years ago
IncludeWhatYouUse d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
IncompatibleQt d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
Languages d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
LinkStatic 18d7f8fbfb Tests: Move LINK_SEARCH_{START,END}_STATIC case to dedicated test 10 years ago
LinkWhatYouUse 96242f8022 Add options to run `ldd -u -r` as a "link-what-you-use" tool 9 years ago
Make 048d1adb4e add_custom_command: Add DEPFILE option for Ninja 9 years ago
Ninja 5e0e03d953 Ninja: Fix command concatenation on Windows 8 years ago
ObjectLibrary eec93bceec Allow OBJECT libraries to be installed, exported, and imported 8 years ago
ObsoleteQtMacros d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
PolicyScope 7c36d2067b cmListFileBacktrace: Refactor storage to provide efficient value semantics 9 years ago
PositionIndependentCode d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
RuntimePath 69528fe65f Tests: Add case for RPATH exclusion of symlinks to implicit directories 8 years ago
Swift 1aa29f0db6 Swift: Remove positive Swift language tests 10 years ago
Syntax 1dda2ec55a Improve error message on unexpected end of file 9 years ago
TargetObjects 69050f4d16 Tests: Use full output paths in file(GENERATE) calls 8 years ago
TargetPolicies 1588a577d1 Add policy CMP0069 to enforce INTERPROCEDURAL_OPTIMIZATION 8 years ago
TargetPropertyGeneratorExpressions d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
TargetSources 7dca104e14 Merge topic 'deprecate-policy-old' 8 years ago
ToolchainFile 8a98cf6432 Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files 9 years ago
VS10Project 506207f928 VS: add test for VS_CSHARP_* source file property 8 years ago
VSSolution c94f1bcf92 Drop Visual Studio 7 .NET 2003 generator 8 years ago
VisibilityPreset 726e461b38 CMP0063: Split unit test by target type. 10 years ago
WriteCompilerDetectionHeader 4cf5179c77 WCDH: Make it possible to generate multiple files. 11 years ago
XcodeProject d02709d7f7 Genex: Add `TARGET_BUNDLE_[CONTENT_]_DIR` generator expressions 8 years ago
add_custom_command 92d76b50aa Make the add_custom_command output more predictable 9 years ago
add_custom_target 1296a0eada Ninja: Fix inter-target order-only dependencies of custom commands 9 years ago
add_dependencies d9f836e956 Add a getter for manually added target dependencies 9 years ago
add_subdirectory df32e564ae Xcode: Add targets marked as EXCLUDE_FROM_ALL to project (#16101) 9 years ago
alias_targets d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
build_command 226df303f9 CTest: Stop telling 'make' to ignore errors with -i 10 years ago
cmake_minimum_required 7d47c69365 Drop compatibility with CMake < 2.4 12 years ago
cmake_parse_arguments 66c70cd9f1 cmake_parse_arguments: Add additional unit tests 9 years ago
configure_file 024e25e485 Tests: Add more signature tests to RunCMake.configure_file test 10 years ago
continue 7a649111cd Use string(APPEND) in Tests 9 years ago
ctest_build 19beee46cc ctest_configure: Propagate CTEST_USE_LAUNCHERS from caller to project 9 years ago
ctest_cmake_error d328dc6853 CTest: Add CAPTURE_CMAKE_ERROR val to `ctest_*` commands 9 years ago
ctest_configure f999dc0bbf ctest_configure: Add QUIET option 11 years ago
ctest_coverage fc58bdb9ad ctest_coverage: Add QUIET option 11 years ago
ctest_disabled_test 851b6c1595 cmCTestTestHandler: indicate why a test did not run 8 years ago
ctest_fixtures c1b2b7c03c Add ctest options for limiting which tests fixtures add 8 years ago
ctest_memcheck e116f2a5de ctest_memcheck: Fix sanitizers when MemoryCheckSanitizerOptions is empty 9 years ago
ctest_skipped_test 851b6c1595 cmCTestTestHandler: indicate why a test did not run 8 years ago
ctest_start 0699e0d3e4 Tests: Move CTestTestConfigFileInBuildDir into RunCMake.ctest_start 10 years ago
ctest_submit 1a7d00bd12 ctest_submit: Add HTTPHEADER option 8 years ago
ctest_test 6a56c8247f Tests: Disable parallel test execution while running ctest_test 10 years ago
ctest_upload ff1ddd2a73 ctest_upload: Add QUIET option 11 years ago
execute_process d6051ca39e execute_process: Add option to get results of every child 8 years ago
export 7e9f908ef5 export: Reject custom target exports earlier (#15657) 10 years ago
file 99b90dbf3c file: Add COPY/INSTALL option for fixed layout relative to a directory 8 years ago
find_dependency ab358d6a85 Improve find_dependency argument handling 8 years ago
find_file b30b32a493 Drop find_(library|file|path) prefixes from PATH on non-Windows 9 years ago
find_library 6f5aede716 find_library: Skip 'lib => lib<arch>' searches if one symlinks the other 8 years ago
find_package a9b11235a8 Merge topic 'find_package-shorter-message' 8 years ago
find_path 188baef00c find_path: Fix location of <dir/header.h> in a framework on OS X 9 years ago
find_program b7b3b675fd Merge topic 'fix-find_program-regression' 10 years ago
get_filename_component de1493176b Tests: Use upper-case drive letters in RunCMake.get_filename_component 9 years ago
get_property 01826231f8 Tests: Add case for GENERATOR_IS_MULTI_CONFIG 8 years ago
if edac95b955 cmIfCommand: Reject duplicate else() and misplaced elseif() 8 years ago
include d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
include_directories a4bd30104f include_directories: Fix regression in BEFORE option (#15693) 10 years ago
include_external_msproject 227de0b95d include_external_msproject: Honor MAP_IMPORTED_CONFIG_<CONFIG> 8 years ago
install f4c23ee244 Tests: Add case for install(FILES) with TARGET_OBJECTS 8 years ago
interface_library 09cda9d5e7 Allow imported INTERFACE libraries to specify a link library name 9 years ago
list 0205f882ae list: Add FILTER subcommand (#3986) 10 years ago
message 0a4af0735f cmake: Issue message independent of cmMakefile definition 9 years ago
no_install_prefix 1c3918ff02 RunCMake: Remove unneeded files. 11 years ago
project 3b4848717a project: Add `DESCRIPTION` parameter 8 years ago
return d124c41168 return: Add test for returning inside a foreach loop 11 years ago
separate_arguments 2a207aaca1 separgs: Add a NATIVE_COMMAND mode 8 years ago
set d1b62185d6 Merge branch 'parent-scope-tests' into variable-pull-failure 11 years ago
set_property 98f2143305 cmTarget: Enforce TYPE being a read-only property 9 years ago
string 6c54f7b365 string: Teach TIMESTAMP to treat %% as % 9 years ago
target_compile_features d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
target_link_libraries d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
try_compile 5599d858c7 CUDA: Port test cases to Windows with MSVC host compiler 9 years ago
try_run d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
variable_watch d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests 12 years ago
while 1afbe7d2cc Make error message of standalone endwhile command consistent 9 years ago
CMakeLists.txt 00b91b1530 Merge topic 'execute_process-pipeline-results' 8 years ago
README.rst 9b50388b09 Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck) 11 years ago
RunCMake.cmake 81f9c9e892 Deprecate Visual Studio 8 2005 generator 8 years ago
RunCTest.cmake f725b20be3 Update tests that expect uncompressed output 9 years ago
exit_code.c d6051ca39e execute_process: Add option to get results of every child 8 years ago
pseudo_cpplint.c 0618ddf6b1 Add properties to run the cpplint style checker with the compiler 9 years ago
pseudo_emulator.c d9fd2f5402 Revise C++ coding style using clang-format 9 years ago
pseudo_emulator_custom_command.c e7480d670b Fix custom command target substitution with CROSSCOMPILING_EMULATOR 9 years ago
pseudo_iwyu.c 44de615781 cmake: Comment why we ignore the include-what-you-use return code 9 years ago
pseudo_tidy.c 80ebc55a7c cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zero 9 years ago

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``.