CMake/Tests
Craig Scott d2456b29f4 Merge topic 'unity-anon-ns'
0fe9c40494 Unity Build: Add option for generating per-file unique id

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4784
2020-12-16 07:40:41 -05:00
..
AliasTarget
Architecture
ArgumentExpansion
Assembler macOS: Default to arm64 architecture on Apple Silicon hosts 2020-09-30 11:58:44 -04:00
BuildDepends Makefiles Generators: use compiler for dependencies generation 2020-11-29 15:25:42 +01:00
BundleGeneratorTest
BundleTest Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
BundleUtilities Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CFBundleTest Tests: Fix CFBundleTest for Ninja Multi-Config 2020-02-25 13:39:46 -05:00
CheckCompilerRelatedVariables
CMakeCommands target_link_libraries: Fix out-of-dir linking of a list of targets 2020-01-16 13:24:27 -05:00
CMakeGUI CMakePresets.json: Split cmakeGeneratorConfig field 2020-10-22 11:24:39 -04:00
CMakeLib test/CMakeLib: make testUVProcessChain work with qemu 2020-10-29 19:52:54 +01:00
CMakeOnly CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlags 2020-10-08 08:30:59 -04:00
CMakeTestAllGenerators
CMakeTestMultipleConfigures replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
CMakeTests cmListFileCache: Enforce proper nesting of flow control statements 2020-10-22 11:40:48 -04:00
CoberturaCoverage
CommandLength
CommandLineTest
CompatibleInterface
CompileCommandOutput
CompileDefinitions
CompileFeatures CUDA, CXX, OBJCXX: C++23 support with Clang 12 2020-12-08 18:43:59 +02:00
CompileOptions
Complex replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
ComplexOneConfig replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
ConfigSources add_custom_{command,target}: Add genex support to OUTPUT and BYPRODUCTS 2020-12-11 08:24:21 -05:00
COnly Tests/*Only: Update cmake_minimum_required versions 2020-06-18 09:52:05 -04:00
Contracts Tests/Contracts: Update VTK release branch build configuration 2020-04-20 12:46:51 -04:00
CPackComponents Update links to gitlab.kitware.com repos to add -/ 2020-05-26 11:38:01 -04:00
CPackComponentsDEB CPack-deb: don't add a line with a dot to pkg desc 2020-05-27 14:44:28 -04:00
CPackComponentsForAll Tests: Verify DMG default SLA content 2020-07-03 11:31:25 -04:00
CPackComponentsPrefix
CPackNSISGenerator CPack/NSIS: Add option for setting DPI-aware 2020-04-14 13:47:49 +02:00
CPackTestAllGenerators
CPackUseDefaultVersion
CPackUseProjectVersion
CPackUseShortProjectVersion
CPackWiXGenerator Tests/CPackWiXGenerator: support suppressing verification 2020-05-22 11:34:14 -04:00
CrossCompile
CSharpLinkFromCxx
CSharpLinkToCxx
CSharpOnly Tests/*Only: Update cmake_minimum_required versions 2020-06-18 09:52:05 -04:00
CSharpWin32GenEx WIN32_EXECUTABLE: Add support for generator expressions 2020-08-21 09:17:27 -04:00
CTestBuildCommandProjectInSubdir
CTestConfig Ninja Multi-Config: Don't include MinSizeRel by default 2020-02-06 11:07:38 -05:00
CTestCoverageCollectGCOV CTestCoverageCollectGCOV: Add TARBALL_COMPRESSION option 2020-04-30 08:42:00 -04:00
CTestLimitDashJ Update links to gitlab.kitware.com repos to add -/ 2020-05-26 11:38:01 -04:00
CTestScriptMode
CTestTest
CTestTest2
CTestTestBadExe
CTestTestBadGenerator
CTestTestChecksum
CTestTestCostSerial
CTestTestCrash
CTestTestCycle
CTestTestDepends
CTestTestEmptyBinaryDirectory
CTestTestFailure
CTestTestFdSetSize
CTestTestLabelRegExp
CTestTestLaunchers
CTestTestMissingDependsExe
CTestTestParallel
CTestTestResourceLock
CTestTestRunScript
CTestTestScheduler
CTestTestSerialInDepends
CTestTestSerialOrder
CTestTestSkipReturnCode
CTestTestStopTime
CTestTestSubdir
CTestTestTimeout
CTestTestUpload
CTestTestVerboseOutput
CTestTestZeroTimeout
Cuda CUDA: Clang separable compilation 2020-09-24 15:19:54 -04:00
CudaOnly CUDA: Fix tests with CUDAARCHS set 2020-11-30 17:57:27 +02:00
CustComDepend Tests: Fix CustComDepend test for Ninja Multi-Config 2020-02-25 13:39:46 -05:00
CustomCommand Tests: Avoid duplicate custom commands for Xcode "new build system" 2020-09-18 13:02:19 -04:00
CustomCommandByproducts Byproducts: Add test for collapsing of full paths in byproducts 2019-09-16 10:24:24 +02:00
CustomCommandWorkingDirectory
CxxDialect
CxxOnly Tests/*Only: Update cmake_minimum_required versions 2020-06-18 09:52:05 -04:00
CxxSubdirC
DelphiCoverage
Dependency
DoubleProject
EmptyDepends
EmptyLibrary
EmptyProperty
Environment
ExportImport Merge topic 'find_package-version-range' 2020-09-24 07:29:03 -04:00
ExternalOBJ
ExternalProject ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system" 2020-09-18 13:46:45 -04:00
ExternalProjectLocal ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system" 2020-09-18 13:46:45 -04:00
ExternalProjectSourceSubdir
ExternalProjectSourceSubdirNotCMake
ExternalProjectSubdir
ExternalProjectUpdate ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system" 2020-09-18 13:46:45 -04:00
FindALSA
FindBLAS Tests: Revise FindBLAS test to avoid cblas_ mangling 2020-10-05 08:57:10 -04:00
FindBoost Tests/FindBoost/TestPython: support finding 3.8 and 3.9 2020-11-12 17:55:31 -05:00
FindBZip2
FindCups
FindCURL
FindDoxygen FindDoxygen: Prevent tests from interfering with each other 2020-05-16 12:20:36 +10:00
FindEnvModules FindEnvMod: Remove unreliable test case 2019-09-16 13:10:40 -04:00
FindEXPAT
FindFontconfig
FindFreetype
FindGDAL
FindGIF Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindGit
FindGLEW
FindGnuTLS Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindGSL Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindGTest FindGTest: Add GTest::{gtest,gtest_main} library names 2020-01-24 10:18:36 -05:00
FindGTK2 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindIconv
FindICU Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindIntl FindIntl: Add imported target 2020-10-13 15:11:40 -04:00
FindJPEG clang-format: Normalize headers presentation 2019-10-01 12:25:48 -04:00
FindJsonCpp
FindLAPACK FindLAPACK: Provide the LAPACK::LAPACK import target 2020-04-27 14:19:02 -04:00
FindLibArchive FindLibArchive: create a target 2019-12-05 17:18:28 -05:00
FindLibinput
FindLibLZMA
FindLibRHash
FindLibUV
FindLibXml2 FindLibXml2: provide imported target LibXml2::xmllint 2019-12-31 12:45:26 +01:00
FindLibXslt FindLibXslt: provide imported targets 2020-04-28 19:14:03 +02:00
FindLTTngUST
FindMatlab
FindMPI
FindODBC
FindOpenACC FindOpenACC: Provide import targets and OpenACC_<lang>_OPTIONS variable 2019-08-19 15:20:38 -04:00
FindOpenCL
FindOpenGL
FindOpenMP FindOpenMP: Allow try_compile() to find omp.h for AppleClang 2019-10-17 18:50:05 +11:00
FindOpenSSL
FindPackageModeMakefileTest Apple: also specify sysroot for linking 2020-07-17 15:46:29 +02:00
FindPackageTest
FindPatch
FindPNG
FindPostgreSQL FindPostgreSQL: support version encoding used in pre-10 releases 2019-11-07 09:24:12 -05:00
FindProtobuf Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindPython Merge topic 'FindPython-version-range-fix-tests' 2020-11-12 09:10:53 -05:00
FindRuby Tests: Improve FindRuby test robustness 2020-10-05 08:57:10 -04:00
FindSDL FindSDL: Add SDL_INCLUDE_DIRS, SDL_LIBRARIES, and SDL::SDL 2020-06-18 16:33:17 -04:00
FindSQLite3 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindThreads
FindTIFF FindTIFF: add component CXX to include the C++ wrapper libtiffxx 2020-06-29 11:55:22 -04:00
FindVulkan FindVulkan: Support for finding glslc 2020-06-26 20:57:06 -05:00
FindX11 FindX11: Add xcb_util and xcb_xfixes libraries 2020-08-12 14:01:01 +08:00
FindXalanC
FindXercesC
ForceInclude
Fortran
FortranC
FortranModules Tests: Enable Fortran submodule tests on XL compilers 2020-02-28 10:37:11 -05:00
FortranOnly Tests/*Only: Update cmake_minimum_required versions 2020-06-18 09:52:05 -04:00
Framework
FunctionTest
GeneratorExpression Genex: $<TARGET_PROPERTY> strip emtpy list elements for predefined properties 2020-07-21 15:08:28 +02:00
GhsMulti Fix typos identified using codespell 2020-07-22 12:44:47 -04:00
GoogleTest Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ImportedSameName
IncludeDirectories Makefiles Generators: use compiler for dependencies generation 2020-11-29 15:25:42 +01:00
IncludeDirectoriesCPATH
InterfaceLibrary Add INTERFACE libraries to generated buildsystem if they have SOURCES 2020-08-07 08:46:32 -04:00
InterfaceLinkLibraries
iOSNavApp
ISPC ISPC: Generated Headers suffix configurable with a better default 2020-12-14 13:13:09 -05:00
JacocoCoverage
Java FindJava: tests clean-up 2019-10-02 14:47:11 +02:00
JavaExportImport replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
JavaJavah FindJava: tests clean-up 2019-10-02 14:47:11 +02:00
JavaNativeHeaders FindJava: tests clean-up 2019-10-02 14:47:11 +02:00
JavascriptCoverage
JCTest
Jump
LibName
LinkDirectory Ninja: Add multi-config variant 2019-12-13 10:51:46 -05:00
LinkFlags
LinkLanguage
LinkLine
LinkLineOrder
LinkStatic
LoadCommand Fix typos identified using codespell 2020-07-22 12:44:47 -04:00
LoadCommandOneConfig Fix typos identified using codespell 2020-07-22 12:44:47 -04:00
MacroTest
MacRuntimePath replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
MakeClean Tests: Extend MakeClean test to test various target types 2019-08-26 09:31:03 -04:00
MathTest
MFC VS: Teach CMAKE_MFC_FLAG to support generator expressions 2020-09-30 12:24:13 -04:00
MissingInstall
MissingSourceFile
Module Tests: Avoid duplicate custom commands for Xcode "new build system" 2020-09-18 13:02:19 -04:00
ModuleDefinition
MSManifest Windows: Merge user-provided manifests into compiled resource 2020-04-21 08:10:45 -04:00
MSVCRuntimeLibrary
MumpsCoverage
NewlineArgs Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ObjC Tests: Organize Objective C/C++ test directories 2019-11-14 10:57:42 -05:00
ObjCXX OBJCXX: Fix regression for compiling cpp files as objcxx 2020-09-29 12:35:49 -04:00
ObjectLibrary Fix dependencies on targets linked through object libraries 2020-03-04 13:07:41 -05:00
OutDir Ninja: Add multi-config variant 2019-12-13 10:51:46 -05:00
OutName
OutOfBinary
OutOfSource
PDBDirectoryAndName
PerConfig
Plugin Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
Policy0002
PolicyScope
PositionIndependentTargets
PrecompiledHeader
PreOrder
Preprocess Tests: Output the expected value in Preprocess test for debugging 2020-02-28 11:07:38 -05:00
Properties {get,set}_property: Add support for referencing binary directories 2020-09-23 09:25:42 -04:00
PythonCoverage
Qt4And5Automoc
Qt4Autogen Tests: Fix test_clean target missing some test directories 2020-02-15 13:23:37 +11:00
Qt4Deploy
Qt4Targets Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
Qt5Autogen Tests: Fix test_clean target missing some test directories 2020-02-15 13:23:37 +11:00
QtAutogen Tests: Skip Qt*Autogen.MocSkipSource case for Xcode "new build system" 2020-09-18 13:46:39 -04:00
QtAutomocNoQt
ReturnTest
RunCMake Merge topic 'unity-anon-ns' 2020-12-16 07:40:41 -05:00
RuntimePath
SBCS
SetLang Compile with explicit language flag when source LANGUAGE property is set 2020-12-02 11:39:11 -05:00
Simple
SimpleCOnly
SourceFileIncludeDirProperty
SourceFileProperty Tests: Collect SourceFileProperty tests 2019-08-27 22:28:34 +05:30
SourceGroups source_group: Support forward slashes in group hierarchy 2020-05-11 08:15:25 +10:00
SourcesProperty
StagingPrefix replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
StringFileTest
SubDir replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
SubDirSpaces replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
SubProject
SwiftMix
SwiftOnly Swift: Fix regression in linking to interface libraries 2020-07-17 08:26:40 -04:00
SystemInformation Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
TargetName
TestDriver
Testing
TestsWorkingDirectory Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
TryCompile Add a test to verify '\' handling in CHECK_CXX_SOURCE_COMPILES 2020-09-23 12:05:39 -04:00
Unset
UseSWIG UseSWIG: Add OUTPUT_DIR and OUTFILE_DIR source file properties 2020-09-30 19:19:14 +02:00
VariableUsage
Visibility
VSAndroid Visual Studio: Add Android support 2020-06-24 08:41:09 -04:00
VSExcludeFromDefaultBuild
VSExternalInclude Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
VSGNUFortran
VSMASM
VSMidl replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
VSNASM
VSProjectInSubdir
VSResource Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
VSResourceNinjaForceRSP
VSWindowsFormsResx Refactoring: Third-parties public headers are under cm3p prefix 2020-05-07 12:06:08 +02:00
VSWinStorePhone Genex: $<CONFIG:> now supports multiple configurations 2020-06-24 08:38:28 -04:00
VSXaml Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
WarnUnusedCliUnused
Wrapping
X11 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
XCTest Tests: Tell Xcode to disallow signing altogether in relevant cases 2020-09-01 10:38:22 -04:00
.NoDartCoverage
bootstrap.bat.in
BootstrapTest.cmake Bootstrap: Add support for Ninja 2020-08-10 14:40:17 -04:00
CheckFortran.cmake Tests: Extend Fortran compiler information 2020-05-25 10:57:06 -04:00
CheckSwift.cmake
CMakeBuildTest.cmake.in
CMakeCopyright.cmake
CMakeInstall.cmake
CMakeLists.txt Merge topic 'apple-silicon-host-arch' 2020-12-11 13:05:34 -05:00
CTestUpdateBZR.cmake.in
CTestUpdateCommon.cmake
CTestUpdateCVS.cmake.in
CTestUpdateGIT.cmake.in Tests: Update CTest.UpdateGIT test for custom defaultBranch 2020-12-02 11:27:39 -05:00
CTestUpdateGIT.sh.in
CTestUpdateHG.cmake.in
CTestUpdateP4.cmake.in
CTestUpdateSVN.cmake.in
EnforceConfig.cmake.in Initialize CMAKE_EXPORT_COMPILE_COMMANDS from envvar of the same name 2019-10-18 14:37:33 -04:00
README.rst
test_clean.cmake.in

CMake Tests Directory
*********************

This directory contains the CMake test suite.
See also the `CMake Source Code Guide`_.

.. _`CMake Source Code Guide`: ../Help/dev/source.rst

Many tests exist as immediate subdirectories, but some tests
are organized as follows.

* ``CMakeLib/``:
  Source code, used for tests, that links to the ``CMakeLib`` library
  defined over in ``Source/``.

* ``CMakeOnly/``:
  Deprecated.  Tests that run CMake to generate a project but not build it.
  Superseded by ``Tests/RunCMake/``.

* ``Find*/``:
  Tests for specific find modules that can only be run on machines with
  the corresponding packages installed.  They are enabled in
  ``CMakeLists.txt`` by undocumented options used on CI builds.

* ``Module/``:
  Tests for specific CMake modules.

* ``RunCMake/``:
  Tests that run CMake and/or other tools while precisely checking
  their return code and stdout/stderr content.  Useful for testing
  error cases and diagnostic output.