8053 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
..
Android beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
AndroidMK beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
AndroidTestUtilities beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
AutoExportDll beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
BuildDepends beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0004 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0019 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0022 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0026 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0027 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0028 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0037 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0038 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0039 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0040 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0041 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0042 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0043 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0045 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0046 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0049 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0050 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0051 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0053 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0054 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0055 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0057 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0059 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0060 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0064 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0065 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0068 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMP0069 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMakeFiles beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CPack beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CPackConfig beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CPackInstallProperties beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CPackSymlinks beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CSharpCustomCommand beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CTest beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CTestCommandLine beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CTestTimeoutAfterMatch beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CacheNewline beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CheckIPOSupported beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CheckModules beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ClangTidy beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CommandLine beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CommandLineTar beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CompatibleInterface beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CompileDefinitions beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CompileFeatures beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CompilerChange beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CompilerLauncher beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CompilerNotFound beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Configure beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Cppcheck beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Cpplint beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CrosscompilingEmulator beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
DisallowedCommands beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ExportWithoutLanguage beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ExternalData beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ExternalProject beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FPHSA beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FeatureSummary beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FetchContent beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
File_Generate beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FindBoost beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FindGTK2 beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FindMatlab beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FindOpenGL beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
FindPkgConfig beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Framework beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GNUInstallDirs beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GenerateExportHeader beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GeneratorExpression beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GeneratorInstance beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GeneratorPlatform beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GeneratorToolset beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GetPrerequisites beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
GoogleTest beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
IfacePaths beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
IncludeWhatYouUse beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
IncompatibleQt beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Languages beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
LinkStatic beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
LinkWhatYouUse beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Make beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
MultiLint beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Ninja beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ObjectLibrary beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ObsoleteQtMacros beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
PolicyScope beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
PositionIndependentCode beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
RuntimePath beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
SourceProperties beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Swift beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Syntax beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
TargetObjects beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
TargetPolicies beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
TargetPropertyGeneratorExpressions beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
TargetSources beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ToolchainFile beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
VS10Project beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
VSSolution beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
VisibilityPreset beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
WriteCompilerDetectionHeader beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
XcodeProject beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
add_custom_command beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
add_custom_target beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
add_dependencies beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
add_executable beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
add_library beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
add_subdirectory beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
alias_targets beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
build_command beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
cmake_minimum_required beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
cmake_parse_arguments beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
configure_file beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
continue beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_build beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_cmake_error beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_configure beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_coverage beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_disabled_test beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_fixtures beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_labels_for_subprojects beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_memcheck beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_skipped_test beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_start beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_submit beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_test beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
ctest_upload beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
execute_process beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
export beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
file beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
find_dependency beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
find_file beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
find_library beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
find_package beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
find_path beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
find_program beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
foreach beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
get_filename_component beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
get_property beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
if beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
include beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
include_directories beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
include_external_msproject beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
include_guard beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
install beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
interface_library beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
list beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
message beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
no_install_prefix beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
project beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
return beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
separate_arguments beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
set beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
set_property beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
string beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
target_compile_features beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
target_link_libraries beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
test_include_dirs beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
try_compile beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
try_run beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
variable_watch beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
while beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CMakeLists.txt beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
CTestTestfile.cmake beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
Makefile beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
README.rst beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
RunCMake.cmake beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
RunCTest.cmake beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
cmake_install.cmake beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
exit_code beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
exit_code.c beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_cppcheck beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_cppcheck.c beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_cpplint beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_cpplint.c beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_emulator beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_emulator.c beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_emulator_custom_command beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_emulator_custom_command.c beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_iwyu beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_iwyu.c beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_tidy beefd0184a 2022-08-08 ct_chen 2 vuotta sitten
pseudo_tidy.c beefd0184a 2022-08-08 ct_chen 2 vuotta sitten

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