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

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