CMake/Tests
Brad King b5dd256d94 Merge topic 'defer-target-source-check'
4e7f6738 Defer check for sources within a target until generation.
6e4e7c65 Tests: Exclude bad RunCMake.add_executable case on multi-arch Xcode

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1242
2017-10-25 08:11:19 -04:00
..
AliasTarget HP-UX: Drop support for building CMake on HP-UX 2017-08-07 09:16:09 -04:00
Architecture
ArgumentExpansion
Assembler
BuildDepends Drop Visual Studio 7 .NET 2003 generator 2017-04-19 15:28:05 -04:00
BundleGeneratorTest
BundleTest
BundleUtilities
CFBundleTest
CheckCompilerRelatedVariables
CMakeCommands CompileFeatures: Makes tests work with meta-feature only 2017-05-29 13:51:45 -04:00
CMakeLib Enable clang-tidy modernize-loop-convert lint 2017-09-19 09:32:25 -04:00
CMakeOnly Merge topic 'fix-test-all-find-modules' 2017-04-24 09:34:03 -04:00
CMakeServerLib server: test buffer parsing 2017-08-31 15:35:04 -04:00
CMakeTestAllGenerators Tests: Drop machine-specific logic from CMakeTestAllGenerators 2017-04-18 15:12:22 -04:00
CMakeTestMultipleConfigures
CMakeTests gitattributes: prefer eol=lf to crlf=input 2017-08-23 13:30:00 -04:00
CoberturaCoverage
CommandLineTest
CompatibleInterface
CompileCommandOutput
CompileDefinitions
CompileFeatures clang-format: format all code as Cpp11 2017-08-30 11:07:05 -04:00
CompileOptions
Complex HP-UX: Drop support for building CMake on HP-UX 2017-08-07 09:16:09 -04:00
ComplexOneConfig HP-UX: Drop support for building CMake on HP-UX 2017-08-07 09:16:09 -04:00
ConfigSources
COnly
Contracts
CPackComponents Tests: Fix CPackComponents NSIS install root 2017-03-09 10:20:35 -05:00
CPackComponentsDEB CPack RPM and DEB: improved package version handling 2017-09-21 19:54:17 +02:00
CPackComponentsForAll CPack RPM and DEB: improved package version handling 2017-09-21 19:54:17 +02:00
CPackComponentsPrefix
CPackTestAllGenerators
CPackWiXGenerator
CrossCompile
CSharpLinkToCxx VS: Do not reference output assemblies if not possible for CSharp target 2017-09-05 09:41:40 -04:00
CSharpOnly VS: added support for C# (for Visual Studio 2010, 2012, 2013, 2015) 2017-01-13 09:28:13 +01:00
CTestBuildCommandProjectInSubdir
CTestConfig
CTestCoverageCollectGCOV
CTestLimitDashJ
CTestScriptMode
CTestTest
CTestTest2
CTestTestBadExe
CTestTestBadGenerator
CTestTestChecksum Tests: Fix spurious CTestTestParallel failures 2017-03-31 13:46:08 -04:00
CTestTestCostSerial
CTestTestCrash
CTestTestCycle
CTestTestDepends
CTestTestEmptyBinaryDirectory
CTestTestFailure
CTestTestFdSetSize
CTestTestLabelRegExp
CTestTestLaunchers Tests: Add additional launcher tests 2017-01-10 13:48:59 -05:00
CTestTestMissingDependsExe
CTestTestParallel
CTestTestResourceLock
CTestTestRunScript
CTestTestScheduler
CTestTestSerialInDepends
CTestTestSerialOrder
CTestTestSkipReturnCode
CTestTestStopTime Tests: make tests pass with SOURCE_DATE_EPOCH set 2017-01-30 09:25:44 -05:00
CTestTestSubdir
CTestTestTimeout
CTestTestUpload
CTestTestVerboseOutput
CTestTestZeroTimeout
Cuda clang-format: format all code as Cpp11 2017-08-30 11:07:05 -04:00
CudaOnly Tests: Fix CudaOnly.WithDefs test on CUDA 9 2017-09-29 09:55:11 -04:00
CustComDepend
CustomCommand add_custom_{command,target}: Add COMMAND_EXPAND_LISTS option 2017-01-13 20:02:16 -06:00
CustomCommandByproducts Tests: Fix CustomCommandByproducts regex for phony rules 2017-05-31 11:48:02 -04:00
CustomCommandWorkingDirectory Tests: use BYPRODUCTS in the CustomCommandWorkingDirectory test 2017-04-21 08:57:40 -04:00
CxxDialect
CxxOnly
CxxSubdirC
DelphiCoverage
Dependency
DoubleProject
EmptyDepends
EmptyLibrary
EmptyProperty
Environment
ExportImport Tests: Make function name not match SONAME 2017-05-18 10:26:09 -04:00
ExternalOBJ
ExternalProject ExternalProject: only append COMMAND if actually adding a command 2017-02-27 11:33:31 -05:00
ExternalProjectLocal ExternalProject: Fix UPDATE_DISCONNECTED with empty update steps 2016-11-15 08:45:04 -05:00
ExternalProjectSourceSubdir
ExternalProjectSubdir
ExternalProjectUpdate
FindBoost
FindBZip2
FindDoxygen Improve Doxygen support 2017-05-24 10:15:45 +07:00
FindEXPAT FindEXPAT: Add unit test of target and variables 2017-09-01 16:02:57 +01:00
FindFreetype FindFreetype: Add imported target, docs, and test 2017-09-07 17:52:33 +01:00
FindGSL
FindGTest FindGTest: Improve test to catch link error 2017-09-18 10:01:15 -04:00
FindGTK2
FindICU
FindJsonCpp
FindLibRHash FindLibRHash: Add module to find the librhash package 2016-11-10 08:29:38 -05:00
FindLibUV
FindLTTngUST
FindMatlab
FindModulesExecuteAll Tests: Fix FindModulesExecuteAll when KDE4 is installed 2017-04-21 10:11:10 -04:00
FindMPI FindMPI: Support components for various languages 2017-09-15 14:55:08 +02:00
FindOpenCL
FindOpenGL FindOpenGL: Add support for GLVND on Linux 2017-09-25 09:22:29 -04:00
FindOpenMP TestFindOpenMP,MPI: Disable default languages 2017-05-08 21:43:01 +02:00
FindOpenSSL
FindPackageModeMakefileTest cmake: Fix --find-package mode with imported targets 2017-08-29 15:30:07 -04:00
FindPackageTest
FindPatch FindPatch: Add module to find 'patch' command-line tool 2017-09-01 11:46:28 -04:00
FindPNG
FindProtobuf FindProtobuf: add flag to allow descriptor files to be generated 2017-10-02 08:08:24 -04:00
FindThreads
FindTIFF Tests: Remove unnecessary setting of CMAKE_MODULE_PATH 2017-05-16 08:05:32 +10:00
FindVulkan
FindXalanC Tests: Remove unnecessary setting of CMAKE_MODULE_PATH 2017-05-16 08:05:32 +10:00
FindXercesC Tests: Remove unnecessary setting of CMAKE_MODULE_PATH 2017-05-16 08:05:32 +10:00
ForceInclude
Fortran
FortranC
FortranModules
FortranOnly
Framework Apple: Add support for static frameworks 2017-01-31 08:59:15 -05:00
FunctionTest
GeneratorExpression VS,Xcode: Fix TARGET_PROPERTY genex in source COMPILE_FLAGS property 2017-10-03 08:03:33 -04:00
GhsMulti
GhsMultiDuplicateSourceFilenames
GoogleTest GoogleTest: Add support for disabled tests 2017-06-05 10:11:08 -04:00
IncludeDirectories Xcode: Properly mark SYSTEM includes as such 2016-12-27 22:18:30 +01:00
InterfaceLibrary Do not initialize NO_SYSTEM_FROM_IMPORTED on INTERFACE libraries 2017-10-13 14:32:14 -04:00
InterfaceLinkLibraries
iOSNavApp
IPO
JacocoCoverage
Java UseJava: OUTPUT_DIR must exists in all cases. 2017-10-10 10:00:23 +02:00
JavaExportImport Tests: Test namespaces with exported JARs 2017-04-21 10:51:09 -04:00
JavaJavah
JavascriptCoverage
JCTest
Jump
LibName
LinkDirectory
LinkFlags
LinkLanguage
LinkLine
LinkLineOrder
LinkStatic
LoadCommand Tests: Remove ancient workaround in LoadCommand tests 2017-10-04 09:42:52 -04:00
LoadCommandOneConfig Tests: Remove ancient workaround in LoadCommand tests 2017-10-04 09:42:52 -04:00
MacroTest
MacRuntimePath
MakeClean
MathTest
MFC Avoid CRLF newlines in Git repo blobs 2017-08-30 08:29:43 -04:00
MissingInstall
MissingSourceFile
Module Merge topic 'modernize-git-whitespace-attributes' 2017-08-25 11:04:05 -04:00
ModuleDefinition Support WINDOWS_EXPORT_ALL_SYMBOLS with .def files 2017-03-21 10:02:34 -04:00
MSManifest
MumpsCoverage Avoid CRLF newlines in Git repo blobs 2017-08-30 08:29:43 -04:00
NewlineArgs
ObjC++
ObjectLibrary Drop Visual Studio 7 .NET 2003 generator 2017-04-19 15:28:05 -04:00
OutDir
OutOfBinary
OutOfSource
PDBDirectoryAndName
PerConfig
Plugin HP-UX: Drop support for building CMake on HP-UX 2017-08-07 09:16:09 -04:00
Policy0002
PolicyScope
PositionIndependentTargets clang-format.bash: Use Git attributes to mark files for formatting 2017-02-22 16:59:26 -05:00
PrecompiledHeader
PreOrder
Preprocess Drop Visual Studio 7 .NET 2003 generator 2017-04-19 15:28:05 -04:00
Properties
PythonCoverage
Qt4And5Automoc
Qt4Deploy
Qt4Targets Autogen: Tests: Disable some tests on non ASCII build paths 2017-06-13 16:51:33 +02:00
QtAutogen Autogen: Tests: Update AUTOMOC_MACRO_NAMES test 2017-09-28 09:21:44 +02:00
QtAutogenRerun Autogen: Tests: Add a change-not test to the mocRerun test 2017-09-21 09:58:24 +02:00
QtAutomocNoQt
QtAutoUicInterface Autogen: Enable per-config support 2017-08-05 14:37:03 +02:00
ReturnTest
RunCMake Merge topic 'defer-target-source-check' 2017-10-25 08:11:19 -04:00
RuntimePath
SBCS
Server Tests: Teach Server test to print server return code 2017-08-30 14:20:44 -04:00
SetLang
Simple
SimpleCOnly
SimpleInstall gitattributes: prefer eol=crlf to -crlf 2017-08-23 13:31:41 -04:00
SimpleInstallS2 gitattributes: prefer eol=crlf to -crlf 2017-08-23 13:31:41 -04:00
SourceFileProperty
SourceGroups source_group: Restore TREE support for relative paths 2017-05-17 09:04:02 -04:00
SourcesProperty
StagingPrefix
StringFileTest
SubDir
SubDirSpaces
SubProject
SwiftMix Swift: Simplify mixed test case to make it version agnostic 2017-03-29 15:36:05 +02:00
SwiftOnly
SwigTest SwigTest: Update for swig_add_library and add lua example 2016-11-11 08:14:10 +01:00
SystemInformation
TargetName
TestDriver
Testing
TestsWorkingDirectory
TryCompile
Tutorial
Unset
VariableUnusedViaSet
VariableUnusedViaUnset
VariableUsage
Visibility
VSExcludeFromDefaultBuild
VSExternalInclude
VSGNUFortran Tests: Fix CMake syntax warning in VSGNUFortran test 2017-09-15 10:49:42 -04:00
VSMASM
VSMidl
VSNASM VS: Add support for ASM_NASM language 2017-02-07 13:20:52 -05:00
VSNsightTegra
VSProjectInSubdir
VSResource Ninja: Fix quoting of RC language depfile in cmcldeps call 2017-09-25 10:07:48 -04:00
VSResourceNinjaForceRSP
VSWindowsFormsResx
VSWinStorePhone VS: Add VS_SHADER_OUTPUT_HEADER_FILE and VS_SHADER_VARIABLE_NAME properties. 2017-09-27 07:56:09 -04:00
VSXaml
WarnUnusedCliUnused
Wrapping Tests: Ensure Solaris linker never sees empty contents 2017-05-18 10:32:03 +10:00
X11
XCTest XCTest: Speed up test by only enabling C language 2017-06-28 22:00:36 +02:00
.NoDartCoverage
bootstrap.bat.in
BootstrapTest.cmake
CheckFortran.cmake Tests: Pass generator platform and toolset into check for Fortran 2017-03-08 09:12:09 -05:00
CMakeBuildTest.cmake.in
CMakeCopyright.cmake
CMakeInstall.cmake
CMakeLists.txt UseJava: OUTPUT_DIR must exists in all cases. 2017-10-10 10:00:23 +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
README.rst Tests: Document test directory layout in a README.rst 2017-06-14 15:04:19 -04:00
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.