CMake/Tests
Brad King 9d4a0f12fb Merge topic 'SWIG'
e3e005dbd8 UseSWIG: use swig dependencies for Xcode generator

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6042
2021-04-26 11:35:22 -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 Makefiles Generators: use compiler for dependencies generation 2020-11-29 15:25:42 +01: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-tidy: fix readability-make-member-function-const warnings 2021-01-27 08:45:45 -05:00
CMakeOnly Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04:00
CMakeTestAllGenerators
CMakeTests ctest: Support multiple -L and -LE options to mean "AND" 2021-03-28 12:04:05 +11: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: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05: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: Accept line breaks in more places in dpkg-shlibdeps error message 2021-02-01 10:32:51 -05:00
CPackComponentsForAll Tests: Verify DMG default SLA content 2020-07-03 11:31:25 -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 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 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 Tests: Fix CustComDepend test for Ninja Multi-Config 2020-02-25 13:39:46 -05:00
CustomCommand Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -04: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: Update for the Fujitsu compiler 2021-03-31 09:14: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 test case covering BLA_STATIC with Intel MKL 2021-04-21 14:41:54 -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 FindGTest: Add GTest::{gtest,gtest_main} library names 2020-01-24 10:18:36 -05:00
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 test case covering BLA_STATIC with Intel MKL 2021-04-21 14:41:54 -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
FindPatch
FindPNG
FindPostgreSQL FindPostgreSQL: Add server component 2021-01-15 10:33:55 -05:00
FindProtobuf
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: 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 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: Update for the Fujitsu compiler 2021-03-31 09:14:38 -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
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 Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -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 Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05: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 Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05: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 Tests: Fix test_clean target missing some test directories 2020-02-15 13:23:37 +11:00
Qt4Deploy
Qt4Targets Tests: Bump CMake minimum required in tests to 2.8.12 2020-12-23 08:55:45 -05:00
Qt5Autogen Tests: Fix test_clean target missing some test directories 2020-02-15 13:23:37 +11:00
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 Merge topic 'xcode_app_extensions' 2021-04-26 11:34:38 -04: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
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 Tests: bump cmake_minimum_required version to 2.8.12 2021-04-05 09:53:07 -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 Tests: set CMAKE_PREFIX_PATH to the installation prefix 2021-03-19 14:23:26 -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.