CMake/Tests
Kyle Edwards c794b70f19 Ninja Multi-Config: Always generate build.ninja
If CMAKE_DEFAULT_BUILD_TYPE is not specified, use the first item
from CMAKE_CONFIGURATION_TYPES instead.
2020-02-27 10:39:35 -05: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 PCH: Fix Makefile dependencies to rebuild PCH on header changes 2019-10-17 10:29:31 -04: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 Merge topic 'automoc-using-depfiles' 2020-01-30 09:52:33 -05:00
CMakeOnly Ninja Multi-Config: Don't include MinSizeRel by default 2020-02-06 11:07:38 -05: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 Tests: Make CMake.FileDownload invalid host name case more robust 2020-01-21 09:37:45 -05: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: Enable ConfigSources test on every configuration 2019-10-04 10:39:00 -04:00
COnly Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
Contracts Tests/Contracts: Update VTK repository URL 2019-12-14 12:55:26 -05:00
CPackComponents Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CPackComponentsDEB Merge topic 'fix-cpack-deb-description-file' 2020-01-13 10:23:26 -05:00
CPackComponentsForAll Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CPackComponentsPrefix
CPackNSISGenerator Tests: Fix CPackNSISGenerator test on non-x86 Windows platforms 2020-01-15 14:33:37 -05:00
CPackTestAllGenerators
CPackUseDefaultVersion
CPackUseProjectVersion
CPackUseShortProjectVersion
CPackWiXGenerator Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CrossCompile
CSharpLinkFromCxx
CSharpLinkToCxx CSharp: Fix regression in VS project type selection 2018-10-02 14:58:11 -04:00
CSharpOnly CSharp: Fix regression in VS project type selection for custom target 2018-10-31 09:13:19 -04:00
CTestBuildCommandProjectInSubdir Remove unnecessary CTEST_PROJECT_NAME variables 2018-11-20 21:43:27 +01:00
CTestConfig Ninja Multi-Config: Don't include MinSizeRel by default 2020-02-06 11:07:38 -05:00
CTestCoverageCollectGCOV CTestCoverageCollectGCOV: run gcov only once 2019-05-03 21:25:20 +01:00
CTestLimitDashJ
CTestScriptMode
CTestTest
CTestTest2
CTestTestBadExe CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestBadGenerator CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestChecksum
CTestTestCostSerial CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestCrash CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestCycle CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestDepends CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestEmptyBinaryDirectory
CTestTestFailure CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestFdSetSize Remove unnecessary CTEST_PROJECT_NAME variables 2018-11-20 21:43:27 +01:00
CTestTestLabelRegExp
CTestTestLaunchers CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestMissingDependsExe
CTestTestParallel CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestResourceLock CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestRunScript
CTestTestScheduler CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestSerialInDepends
CTestTestSerialOrder
CTestTestSkipReturnCode CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestStopTime CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestSubdir CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestTimeout CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestUpload CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestVerboseOutput CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
CTestTestZeroTimeout CTest: Remove special case for Dart version <= 1 2018-11-29 00:29:13 +01:00
Cuda CUDA: Add abstraction for cuda runtime selection 2020-01-27 16:02:26 -05:00
CudaOnly CUDA: Add abstraction for cuda runtime selection 2020-01-27 16:02:26 -05: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 add_custom_{command,target}: Fix WORKING_DIRECTORY leading genex 2018-11-03 08:39:45 -04:00
CxxDialect
CxxOnly
CxxSubdirC
DelphiCoverage
Dependency
DoubleProject
EmptyDepends
EmptyLibrary
EmptyProperty
Environment
ExportImport target_link_libraries: Fix out-of-dir linking of a list of targets 2020-01-16 13:24:27 -05:00
ExternalOBJ
ExternalProject ExternalProject: Quote each git --config option to handle spaces 2020-02-15 13:23:56 +11:00
ExternalProjectLocal Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ExternalProjectSourceSubdir
ExternalProjectSourceSubdirNotCMake ExternalProject: support SOURCE_SUBDIR for BUILD_IN_SOURCE 2019-01-17 13:40:30 -05:00
ExternalProjectSubdir
ExternalProjectUpdate
FindALSA
FindBoost Tests.FindBoost: Don't use BoostConfig in MODULE test 2019-06-18 08:22:50 -04:00
FindBZip2
FindCups FindCups: add imported target 2019-02-06 11:20:57 -05:00
FindCURL FindCURL: add test for component 2018-12-06 11:49:04 -05:00
FindDoxygen FindDoxygen: add USE_STAMP_FILE option 2019-09-06 09:12:09 +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 FindGDAL: set the GDAL_VERSION 2018-11-01 13:16:37 -04:00
FindGIF Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindGit FindGit: Add imported target 2019-01-21 10:01:56 -05:00
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
FindLibArchive FindLibArchive: create a target 2019-12-05 17:18:28 -05:00
FindLibinput FindLibinput: Add module to find libinput 2018-10-11 10:43:45 -04:00
FindLibLZMA FindLibLZMA: add imported target 2018-12-13 09:40:11 +09:00
FindLibRHash
FindLibUV
FindLibXml2 FindLibXml2: provide imported target LibXml2::xmllint 2019-12-31 12:45:26 +01:00
FindLTTngUST
FindMatlab FindMatlab: EXCLUDE_FROM_ALL parameter to matlab_add_mex 2019-06-26 19:53:02 +02:00
FindModulesExecuteAll
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 FindPackageModeMakefileTest: macOS needs isysroot flag 2019-10-29 07:14:08 +11: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: reduces consumption of resources 2020-02-10 12:41:04 +01:00
FindSQLite3 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindThreads FindThreads: Drop IRIX-specific options and results 2018-12-07 13:33:01 -05:00
FindTIFF
FindVulkan
FindX11 clang-format: Normalize headers presentation 2019-10-01 12:25:48 -04:00
FindXalanC
FindXercesC
ForceInclude
Fortran Remove now-unused code once used for MIPSpro on IRIX 2019-02-21 11:12:51 -05:00
FortranC
FortranModules Ninja: Add multi-config variant 2019-12-13 10:51:46 -05:00
FortranOnly replace remove and remove_directory with rm in tests 2019-11-13 18:02:18 -05:00
Framework
FunctionTest
GeneratorExpression add_custom_command: Delay slash conversion until after genex evaluation 2019-09-13 10:56:26 -04:00
GhsMulti GHS: Update tests and notes 2019-04-11 13:15:51 -04:00
GoogleTest Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ImportedSameName Fix transitive usage requirements through same-name imported targets 2018-09-10 07:51:44 -04:00
IncludeDirectories Ninja: Add multi-config variant 2019-12-13 10:51:46 -05:00
IncludeDirectoriesCPATH Do not exclude include directories made implicit by CPATH 2019-05-30 09:24:59 -04:00
InterfaceLibrary Ninja: Add multi-config variant 2019-12-13 10:51:46 -05:00
InterfaceLinkLibraries
iOSNavApp
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 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
LoadCommandOneConfig Revise include order using clang-format-6.0 2019-10-01 12:26:36 -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 bindexplib: supporting llvm bitcode formats using llvm-nm 2019-08-30 11:30:38 -04:00
ModuleDefinition
MSManifest
MSVCRuntimeLibrary Flang: Implement MSVC runtime library abstraction 2019-08-09 10:18:54 -04:00
MumpsCoverage CTest: Fix GTM coverage handling of entry point named "%" 2018-10-16 10:59:09 -04:00
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 Relax the usage of TARGET_OBJECTS generator expression 2019-04-19 13:52:50 -04:00
OutDir Ninja: Add multi-config variant 2019-12-13 10:51:46 -05:00
OutName Fix regression in target output file naming logic 2018-09-19 08:14:48 -04:00
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: fix some Clang failures on Windows 2019-07-09 11:30:25 -04:00
Properties
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 AutoGen: Use moc's feature to output dependencies 2020-01-28 11:16:11 -05:00
QtAutomocNoQt
ReturnTest
RunCMake Ninja Multi-Config: Always generate build.ninja 2020-02-27 10:39:35 -05:00
RuntimePath Fix rpath-link for shared lib with only private deps 2019-08-02 14:50:57 -04:00
SBCS
Server Help: Mark default CMake generator with asterisk 2019-01-18 12:57:34 -05:00
SetLang
Simple
SimpleCOnly
SourceFileIncludeDirProperty
SourceFileProperty Tests: Collect SourceFileProperty tests 2019-08-27 22:28:34 +05:30
SourceGroups source_group command ensures that FILES arguments are actually files 2019-04-25 20:51:40 +02: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: Restore support for enabling with INTERFACE libraries 2019-07-29 15:24:29 -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 ObjC: Add try_compile support 2019-11-09 11:25:32 +01:00
Unset If: Support the 'DEFINED CACHE{}' syntax 2018-11-09 10:38:07 -05:00
UseSWIG FindPython*: Manage weak link for Python modules 2019-05-07 16:37:24 +02:00
VariableUnusedViaSet
VariableUnusedViaUnset
VariableUsage
Visibility
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
VSNsightTegra Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
VSProjectInSubdir
VSResource Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
VSResourceNinjaForceRSP
VSWindowsFormsResx
VSWinStorePhone Revise include order using clang-format-6.0 2019-10-01 12:26:36 -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
.NoDartCoverage
bootstrap.bat.in
BootstrapTest.cmake
CheckFortran.cmake
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 Tests: Fix test_clean target missing some test directories 2020-02-15 13:23:37 +11:00
CTestUpdateBZR.cmake.in
CTestUpdateCommon.cmake Remove unnecessary CTEST_PROJECT_NAME variables 2018-11-20 21:43:27 +01:00
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.