CMake/Tests
NAKAMURA Takumi 63177678d0 Tests/RunCMake/Ninja.*: Sanitize NINJA_STATUS since we expect default behavior
FYI, NINJA_STATUS is "[%f/%t] " by default.
2021-06-28 10:38:05 -04:00
..
AliasTarget
Architecture Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
ArgumentExpansion Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
Assembler Tests: Update Assembler test for IntelLLVM 2021-01-28 09:07:01 -05:00
BuildDepends Tests: Fix xcode version detection for Xcode 13 on ARM 2021-06-18 14:04:32 -04:00
BundleGeneratorTest Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
BundleTest Tests: Suppress failures on macOS arm64 due to separate Xcode signing phase 2021-02-22 15:47:13 -08:00
BundleUtilities Tests: Suppress failures on macOS arm64 due to separate Xcode signing phase 2021-02-22 15:47:13 -08:00
CFBundleTest Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CheckCompilerRelatedVariables Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CMakeCommands Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CMakeGUI CMakePresets.json: Split cmakeGeneratorConfig field 2020-10-22 11:24:39 -04:00
CMakeLib clang-analyzer: Suppress warnings in intentional use-after-move cases 2021-06-03 14:59:55 -04:00
CMakeOnly MSYS: Add support for running under MSYS runtime environment 2021-04-26 14:27:34 -04:00
CMakeTestAllGenerators
CMakeTests CMakeParseImplicitLinkInfo: Honor GNU static runtime library flags 2021-06-03 08:12:58 -04:00
CoberturaCoverage
CommandLength
CommandLineTest
CompatibleInterface
CompileCommandOutput
CompileDefinitions Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CompileFeatures Tests: Fix warning clang-analyzer-cplusplus.NewDeleteLeaks 2021-04-16 11:49:51 -04:00
CompileOptions Tests: Add cases verifying flag ordering rules 2021-06-07 13:39:21 -04:00
Complex
ComplexOneConfig
ConfigSources Merge topic 'tests-CMAKE_BUILD_TYPE-None' 2021-04-05 11:37:50 -04:00
COnly Tests/*Only: Update cmake_minimum_required versions 2020-06-18 09:52:05 -04:00
Contracts Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CPackComponents Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CPackComponentsDEB Tests: Fix typos and spelling in comments 2021-05-07 17:00:13 +02:00
CPackComponentsForAll Merge topic 'ci-rpm' 2021-06-11 06:10:34 -04:00
CPackComponentsPrefix
CPackNSISGenerator CPack/NSIS: Add option for setting branding text 2021-02-07 16:10:57 +01:00
CPackTestAllGenerators Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CPackUseDefaultVersion
CPackUseProjectVersion
CPackUseShortProjectVersion
CPackWiXGenerator Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CrossCompile
CSharpLinkFromCxx
CSharpLinkToCxx
CSharpOnly VS: Add support for per-config C# sources 2021-05-03 10:49:47 -04:00
CSharpWin32GenEx WIN32_EXECUTABLE: Add support for generator expressions 2020-08-21 09:17:27 -04:00
CTestBuildCommandProjectInSubdir
CTestConfig
CTestCoverageCollectGCOV Tests: Make GCOV test more robust to symbolic links in paths 2021-01-28 09:05:35 -05:00
CTestLimitDashJ Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CTestScriptMode
CTestTest Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
CTestTest2 Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestBadExe Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestBadGenerator
CTestTestChecksum Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestCostSerial Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestCrash Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestCycle Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestDepends Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestEmptyBinaryDirectory
CTestTestFailure Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestFdSetSize
CTestTestLabelRegExp ctest: Support multiple -L and -LE options to mean "AND" 2021-03-28 12:04:05 +11:00
CTestTestLaunchers
CTestTestMissingDependsExe
CTestTestParallel Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestResourceLock Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestRunScript
CTestTestScheduler Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestSerialInDepends
CTestTestSerialOrder
CTestTestSkipReturnCode Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestStopTime Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestSubdir Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestTimeout Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestUpload Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestVerboseOutput Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CTestTestZeroTimeout Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
Cuda FindCUDAToolkit: Robust version checks when CUDA lang is not enabled 2021-02-09 09:39:20 -05:00
CudaOnly FindCUDAToolkit: Robust version checks when CUDA lang is not enabled 2021-02-09 09:39:20 -05:00
CustComDepend
CustomCommand Tests: Fix typos and spelling in comments 2021-05-07 17:00:13 +02:00
CustomCommandByproducts
CustomCommandWorkingDirectory Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CxxDialect
CxxOnly Tests/*Only: Update cmake_minimum_required versions 2020-06-18 09:52:05 -04:00
CxxSubdirC
DelphiCoverage
Dependency Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
DoubleProject
EmptyDepends Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
EmptyLibrary
EmptyProperty
Environment
ExportImport Tests: Add tests for new options 2021-06-04 10:07:38 -04:00
ExternalOBJ
ExternalProject Tests: Use the CVS :local: access method for local directories 2021-01-28 09:05:35 -05:00
ExternalProjectLocal cmake: add support for --install-prefix command argument 2021-03-04 10:50:24 -05:00
ExternalProjectSourceSubdir
ExternalProjectSourceSubdirNotCMake
ExternalProjectSubdir
ExternalProjectUpdate ExternalProject: Improve robustness of update step 2021-01-28 09:32:35 -05:00
FindALSA
FindBLAS Find{BLAS,LAPACK}: Add tests covering Intel MKL with GNU compiler 2021-06-10 13:00:45 -04:00
FindBoost Tests/FindBoost/TestPython: support finding 3.8 and 3.9 2020-11-12 17:55:31 -05:00
FindBZip2
FindCups
FindCURL
FindDevIL FindDevIL: add imported targets and tests 2021-03-18 10:42:02 -04:00
FindDoxygen FindDoxygen: Prevent tests from interfering with each other 2020-05-16 12:20:36 +10:00
FindEnvModules
FindEXPAT
FindFontconfig
FindFreetype
FindGDAL
FindGIF
FindGit
FindGLEW
FindGnuTLS
FindGSL
FindGTest
FindGTK2 Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
FindIconv
FindICU
FindIntl FindIntl: Add imported target 2020-10-13 15:11:40 -04:00
FindJPEG
FindJsonCpp
FindLAPACK Find{BLAS,LAPACK}: Add tests covering Intel MKL with GNU compiler 2021-06-10 13:00:45 -04:00
FindLibArchive
FindLibinput
FindLibLZMA
FindLibRHash
FindLibUV
FindLibXml2
FindLibXslt FindLibXslt: provide imported targets 2020-04-28 19:14:03 +02:00
FindLTTngUST
FindMatlab
FindMPI
FindODBC
FindOpenACC
FindOpenCL
FindOpenGL
FindOpenMP
FindOpenSSL
FindPackageModeMakefileTest Tests: Fix FindPackageModeMakefileTest with CMAKE_OSX_ARCHITECTURES 2021-03-03 10:29:53 -08:00
FindPackageTest Tests: Fix typos and spelling in comments 2021-05-07 17:00:13 +02:00
FindPatch
FindPNG
FindPostgreSQL FindPostgreSQL: Add server component 2021-01-15 10:33:55 -05:00
FindProtobuf FindProtobuf: Add PLUGIN parameter to protobuf_generate 2021-05-06 13:42:21 -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
FindThreads
FindTIFF FindTIFF: add component CXX to include the C++ wrapper libtiffxx 2020-06-29 11:55:22 -04:00
FindVulkan FindVulkan: add Vulkan::Headers and Vulkan::glslangValidator targets 2021-05-24 12:53:15 -04:00
FindX11 FindX11: Add xcb_util and xcb_xfixes libraries 2020-08-12 14:01:01 +08:00
FindXalanC
FindXercesC
ForceInclude
Fortran Tests: Update for the Fujitsu compiler 2021-03-31 09:14:38 -04:00
FortranC Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
FortranModules Tests: Fix FortranModules test with Intel compiler on Windows 2021-03-09 09:22:32 -05:00
FortranOnly Tests: Fix FortranOnly test with Intel compiler on Windows 2021-04-28 09:55:42 -04:00
Framework Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
FunctionTest Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
Fuzzing Tests: Add a fuzzer for oss-fuzz 2021-01-13 11:04:59 +00:00
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
HIP HIP: analyze output of hipcc to determine default GPU architecture 2021-06-07 19:25:34 +00:00
ImportedSameName
IncludeDirectories cmDepends: disable long line dependencies for nmake 2021-01-11 12:14:04 -05:00
IncludeDirectoriesCPATH
InterfaceLibrary Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
InterfaceLinkLibraries
iOSNavApp
ISPC ISPC: Generated Headers suffix configurable with a better default 2020-12-14 13:13:09 -05:00
JacocoCoverage
Java UseJava: Add RESOURCES with NAMESPACE to add_jar() 2021-05-10 10:48:46 -04:00
JavaExportImport
JavaJavah Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
JavaNativeHeaders Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
JavascriptCoverage
JCTest Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
Jump
LibName Tests: Update LibName to cover spaces in shared library name 2021-03-08 13:03:21 -05:00
LinkDirectory Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
LinkFlags Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
LinkLanguage
LinkLine
LinkLineOrder
LinkStatic
LoadCommand Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
LoadCommandOneConfig Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
MacroTest
MacRuntimePath Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
MakeClean Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
MathTest
MFC Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
MissingInstall
MissingSourceFile Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
Module Tests: Update for the FujitsuClang compiler 2021-03-31 09:14:45 -04:00
ModuleDefinition Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
MSManifest Windows: Merge user-provided manifests into compiled resource 2020-04-21 08:10:45 -04:00
MSVCRuntimeLibrary Tests: Update MSVCRuntimeLibrary.Fortran test for IntelLLVM 2021-01-28 09:07:01 -05:00
MumpsCoverage
NewlineArgs Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
ObjC
ObjCXX OBJCXX: Fix regression for compiling cpp files as objcxx 2020-09-29 12:35:49 -04:00
ObjectLibrary target_link_libraries: Place $<TARGET_OBJECTS> before libraries 2021-05-29 09:28:36 -04:00
OutDir
OutName
OutOfBinary
OutOfSource
PDBDirectoryAndName Tests: Skip per file PDBs in PDBDirectoryAndName for IntelLLVM 2021-01-28 09:07:02 -05:00
PerConfig
Plugin Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
Policy0002
PolicyScope
PositionIndependentTargets INTERFACE_POSITION_INDEPENDENT_CODE must be transitive for OBJECT library 2021-05-14 16:40:53 +02:00
PrecompiledHeader
PreOrder
Preprocess Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
Properties {get,set}_property: Add support for referencing binary directories 2020-09-23 09:25:42 -04:00
PythonCoverage
Qt4And5Automoc
Qt4Autogen
Qt4Deploy
Qt4Targets Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
Qt5Autogen
QtAutogen Merge topic 'autogen-moc-version' 2021-04-26 11:31:54 -04:00
QtAutomocNoQt Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
ReturnTest Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
RunCMake Tests/RunCMake/Ninja.*: Sanitize NINJA_STATUS since we expect default behavior 2021-06-28 10:38:05 -04:00
RuntimePath
SBCS
SetLang MSYS: Add support for running under MSYS runtime environment 2021-04-26 14:27:34 -04:00
Simple
SimpleCOnly
SourceFileIncludeDirProperty
SourceFileProperty
SourceGroups source_group: Support forward slashes in group hierarchy 2020-05-11 08:15:25 +10:00
SourcesProperty
StagingPrefix
StringFileTest Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
SubDir
SubDirSpaces Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
SubProject
SwiftMix
SwiftOnly Swift: Fix regression in linking to interface libraries 2020-07-17 08:26:40 -04:00
SystemInformation
TargetName Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
TestDriver Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
Testing
TestsWorkingDirectory Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
TryCompile Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
Unset
UseSWIG UseSWIG: use swig dependencies for Xcode generator 2021-04-23 17:09:12 +02:00
VariableUsage
Visibility
VSAndroid Visual Studio: Add Android support 2020-06-24 08:41:09 -04:00
VSExcludeFromDefaultBuild
VSExternalInclude VS: Add Visual Studio 17 2022 generator 2021-06-25 12:45:44 -04:00
VSGNUFortran Tests: Update for the Fujitsu compiler 2021-03-31 09:14:38 -04:00
VSMASM
VSMidl Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
VSNASM
VSProjectInSubdir
VSResource
VSResourceNinjaForceRSP
VSWindowsFormsResx Refactoring: Third-parties public headers are under cm3p prefix 2020-05-07 12:06:08 +02:00
VSWinStorePhone VS: Add genex support to VS_SHADER_FLAGS 2021-01-05 17:07:01 +01:00
VSXaml
WarnUnusedCliUnused
Wrapping
X11
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: Update for the Fujitsu compiler 2021-03-31 09:14:38 -04:00
CheckSwift.cmake
CMakeBuildTest.cmake.in
CMakeCopyright.cmake
CMakeInstall.cmake
CMakeLists.txt VS: Add Visual Studio 17 2022 generator 2021-06-25 12:45:44 -04:00
CTestUpdateBZR.cmake.in
CTestUpdateCommon.cmake
CTestUpdateCVS.cmake.in Tests: Use the CVS :local: access method for local directories 2021-01-28 09:05:35 -05:00
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
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.