CMake/Tests
Raul Tambre 4fe9f534f5 Tests: Don't unnecessarily set CUDA_ARCHITECTURES
Architecture 30 was removed with CUDA 11, so most of the CUDA tests fail with
it.
Remove setting the architecture and bump the minimum version to 3.18, so
CMP0104 takes effect and we can rely on the default architecture, which is
guaranteed to be compilable.

Use of __ldg() in ProperLinkFlags was removed as it only affects performance
and is available only on sm_35 and above.

Testing the functionality of CUDA_ARCHITECTURES is already covered by
CudaOnly.Architecture and CudaOnly.CompileFlags.
2020-09-21 20:37:07 +03:00
..
AliasTarget Clang: For MSVC ABI do not use modes older than C++14 2019-07-24 07:40:30 -04:00
Architecture
ArgumentExpansion
Assembler Tests: Update Assembler code generation to select MSVC runtime library 2020-01-31 14:37:34 -05:00
BuildDepends Genex: Add $<LINK_LANGUAGE:...> and $<LINK_LANG_AND_ID:...> 2020-02-26 16:38: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
CMakeLib JSON: Add helpers 2020-09-09 08:29:02 -04:00
CMakeOnly Merge topic 'CheckLanguage-cuda-host' into release-3.17 2020-05-06 09:27:13 -04:00
CMakeServerLib Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CMakeTestAllGenerators
CMakeTestMultipleConfigures replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
CMakeTests file(DOWNLOAD): Make file argument optional 2020-07-27 11:26:50 -04:00
CoberturaCoverage
CommandLength
CommandLineTest
CompatibleInterface
CompileCommandOutput
CompileDefinitions
CompileFeatures Tests: Update CompileFeatures test for Intel 19 with VS 2015 2019-10-10 13:14:42 -04:00
CompileOptions Merge topic 'clang-gnulike-support' 2019-05-29 09:22:12 -04:00
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 Tests: Add case for source files named with CONFIG genex 2020-05-18 15:34:18 -04: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 Tests: Don't unnecessarily set CUDA_ARCHITECTURES 2020-09-21 20:37:07 +03:00
CudaOnly Tests: Don't unnecessarily set CUDA_ARCHITECTURES 2020-09-21 20:37:07 +03:00
CustComDepend Tests: Fix CustComDepend test for Ninja Multi-Config 2020-02-25 13:39:46 -05:00
CustomCommand add_custom_command: Fix dependency on macOS framework target 2020-01-24 11:29:45 -05: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 Add INTERFACE libraries to generated buildsystem if they have SOURCES 2020-08-07 08:46:32 -04:00
ExternalOBJ
ExternalProject ExternalProject: allow DOWNLOAD_NO_EXTRACT OFF 2020-04-02 08:55:04 -04:00
ExternalProjectLocal Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ExternalProjectSourceSubdir
ExternalProjectSourceSubdirNotCMake
ExternalProjectSubdir
ExternalProjectUpdate ExternalProject: Remote checkout needs to include the remote name 2020-05-29 12:10:32 -04:00
FindALSA
FindBLAS BLAS: Provide the BLAS::BLAS import target 2020-04-23 13:59:33 -04:00
FindBoost Tests.FindBoost: Don't use BoostConfig in MODULE test 2019-06-18 08:22:50 -04: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 FindFontconfig: Convert module variables to camel case 2019-03-26 14:14:09 -04:00
FindFreetype
FindGDAL
FindGIF Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindGit
FindGLEW FindGLEW: Add test 2019-03-15 11:22:32 -04:00
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 FindIconv test: request C++11 2019-06-25 15:14:02 +02:00
FindICU Revise include order using clang-format-6.0 2019-10-01 12:26:36 -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 FindMatlab: EXCLUDE_FROM_ALL parameter to matlab_add_mex 2019-06-26 19:53:02 +02:00
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 Merge topic 'find_package-prefer-config-not-found' 2019-08-07 09:57:35 -04:00
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 FindPython: manage SOABI for all Python versions 2020-08-11 10:16:40 +02:00
FindRuby FindRuby: Add support for RVM installations 2020-03-23 13:22:23 +01: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 Tests: Enable coverage of special chars in include dirs for Makefiles 2020-04-15 08:34:51 -04:00
IncludeDirectoriesCPATH Do not exclude include directories made implicit by CPATH 2019-05-30 09:24:59 -04:00
InterfaceLibrary Add INTERFACE libraries to generated buildsystem if they have SOURCES 2020-08-07 08:46:32 -04:00
InterfaceLinkLibraries
iOSNavApp
ISPC ISPC: DynamicLibrary test now passes on windows. 2020-09-10 16:15:55 -04: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 math(EXPR): Implement ~(exp_NOT) expression as documented 2019-07-23 07:33:50 -04:00
MFC Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
MissingInstall
MissingSourceFile
Module Tests: Cover CheckTypeSize with uint8_t and std::uint8_t 2020-07-22 08:25:09 -04:00
ModuleDefinition
MSManifest Windows: Merge user-provided manifests into compiled resource 2020-04-21 08:10:45 -04:00
MSVCRuntimeLibrary Flang: Implement MSVC runtime library abstraction 2019-08-09 10:18:54 -04:00
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 Tests: Organize Objective C/C++ test directories 2019-11-14 10:57:42 -05: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 Tests: fix some Clang failures on Windows 2019-07-09 11:30:25 -04:00
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 set_property: Deduplicate source file directory scopes 2020-07-13 17:43:17 +02: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 AutoMoc: Re-run moc if a dependency is missing 2020-09-09 12:51:28 +02:00
QtAutomocNoQt
ReturnTest
RunCMake Merge topic 'ninja-multi-automoc-regression' 2020-09-18 08:42:28 -04:00
RuntimePath Fix rpath-link for shared lib with only private deps 2019-08-02 14:50:57 -04:00
SBCS
Server
SetLang Merge branch 'backport-vs-lang-flags' into vs-lang-flags 2020-07-23 10:58:11 -04: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 SwiftMix: properly export SwiftMain method 2019-05-01 13:30:14 +02:00
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 Makefiles: Do not use '\#' escape sequence with Windows-style make tools 2020-04-15 08:34:18 -04:00
Unset
UseSWIG Merge topic 'UseSWIG-interface-option' 2020-09-01 09:08:06 -04: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 Test: Improve WarnUnusedCliUnused to run on all generators 2019-05-15 15:28:37 +02:00
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 Tests: add a check for the Swift compiler 2019-05-17 10:09:35 -04:00
CMakeBuildTest.cmake.in
CMakeCopyright.cmake
CMakeInstall.cmake
CMakeLists.txt Utilities/Release: Drop now-unused scripts 2020-09-17 09:11:03 -04:00
CTestUpdateBZR.cmake.in
CTestUpdateCommon.cmake
CTestUpdateCVS.cmake.in
CTestUpdateGIT.cmake.in
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.