CMake/Tests
Brad King 3ded5b6da8 install,export: Fix export of a genex following $<INSTALL_PREFIX>
The relative path check added by commit 5838aba1aa (Export: Report error
on relative include with genex., 2013-11-26, v3.0.0-rc1~285^2) was added
one condition too early.  If the value starts in `${_IMPORT_PREFIX}`
(which comes from `$<INSTALL_PREFIX>`) then it is an absolute path.

Fixes: #19791
2019-10-04 09:53:22 -04: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: fix some Clang failures on Windows 2019-07-09 11:30:25 -04:00
BuildDepends Revise include order using clang-format-6.0 2019-10-01 12:26:36 -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 Xcode: Make BundleTests compatible with Xcode 11 2019-09-01 10:43:26 +02:00
CheckCompilerRelatedVariables
CMakeCommands Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CMakeLib CTest: Add bin-packing algorithm 2019-10-02 09:33:54 -04:00
CMakeOnly Languages: Add support for Objective-C++ 2019-09-28 15:56:53 +02:00
CMakeServerLib Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CMakeTestAllGenerators
CMakeTestMultipleConfigures
CMakeTests Property: Add INSTALL_REMOVE_ENVIROMENT_RPATH property 2019-07-25 12:30:23 -04:00
CoberturaCoverage
CommandLength
CommandLineTest
CompatibleInterface
CompileCommandOutput
CompileDefinitions
CompileFeatures CompileFeatures: Relax cxx_relaxed_constexpr compiler requirements 2019-05-13 13:11:32 -04:00
CompileOptions Merge topic 'clang-gnulike-support' 2019-05-29 09:22:12 -04:00
Complex Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ComplexOneConfig Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ConfigSources
COnly Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
Contracts
CPackComponents Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CPackComponentsDEB Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CPackComponentsForAll Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CPackComponentsPrefix
CPackTestAllGenerators
CPackUseDefaultVersion
CPackUseProjectVersion
CPackUseShortProjectVersion
CPackWiXGenerator Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CrossCompile
CSharpLinkFromCxx
CSharpLinkToCxx
CSharpOnly
CTestBuildCommandProjectInSubdir
CTestConfig
CTestCoverageCollectGCOV CTestCoverageCollectGCOV: run gcov only once 2019-05-03 21:25:20 +01:00
CTestLimitDashJ
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 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CudaOnly Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
CustComDepend
CustomCommand
CustomCommandByproducts Byproducts: Add test for collapsing of full paths in byproducts 2019-09-16 10:24:24 +02:00
CustomCommandWorkingDirectory
CxxDialect
CxxOnly
CxxSubdirC
DelphiCoverage
Dependency
DoubleProject
EmptyDepends
EmptyLibrary
EmptyProperty
Environment
ExportImport install,export: Fix export of a genex following $<INSTALL_PREFIX> 2019-10-04 09:53:22 -04:00
ExternalOBJ
ExternalProject ExternalProject: Support not initializing any submodules 2019-07-24 09:36:30 -04:00
ExternalProjectLocal Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ExternalProjectSourceSubdir
ExternalProjectSourceSubdirNotCMake
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
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
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
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
FindLibinput
FindLibLZMA
FindLibRHash
FindLibUV
FindLibXml2
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
FindOpenSSL
FindPackageModeMakefileTest
FindPackageTest Merge topic 'find_package-prefer-config-not-found' 2019-08-07 09:57:35 -04:00
FindPatch
FindPNG
FindPostgreSQL
FindProtobuf Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindPython Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindSQLite3 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
FindThreads
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 Tests: Add symbols to FortranModules static libraries 2019-09-26 10:31:44 -04:00
FortranOnly Ninja: Pass preprocessor definitions when compiling with Intel Fortran 2019-09-03 14:20:26 -04: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
IncludeDirectories Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
IncludeDirectoriesCPATH Do not exclude include directories made implicit by CPATH 2019-05-30 09:24:59 -04:00
InterfaceLibrary Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
InterfaceLinkLibraries
iOSNavApp
JacocoCoverage
Java FindJava: tests clean-up 2019-10-02 14:47:11 +02:00
JavaExportImport
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
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 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04: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
NewlineArgs Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
ObjC++
Objective-C Languages: Add support for Objective-C 2019-09-28 15:56:46 +02:00
Objective-C++ Languages: Add support for Objective-C++ 2019-09-28 15:56:53 +02:00
ObjectLibrary Relax the usage of TARGET_OBJECTS generator expression 2019-04-19 13:52:50 -04:00
OutDir
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: fix some Clang failures on Windows 2019-07-09 11:30:25 -04:00
Properties
PythonCoverage
Qt4And5Automoc
Qt4Autogen
Qt4Deploy
Qt4Targets Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
Qt5Autogen
QtAutogen Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
QtAutomocNoQt
ReturnTest
RunCMake Merge topic 'ctest-hardware-allocation' 2019-10-03 14:07:52 -04:00
RuntimePath Fix rpath-link for shared lib with only private deps 2019-08-02 14:50:57 -04:00
SBCS
Server
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 cmake: Teach -E remove_directory to remove multiple directories 2019-06-03 14:20:00 -04:00
StringFileTest
SubDir
SubDirSpaces
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 Languages: Add support for Objective-C++ 2019-09-28 15:56:53 +02:00
Unset
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 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04: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 FindJava: tests clean-up 2019-10-02 14:47:11 +02: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 Merge topic 'clang-gnulike-support' 2019-05-29 09:22:12 -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.