CMake/Tests
Brad King fdceee50e6 Merge topic 'normalize-install-destination-paths'
6a1fac1450 install: Normalize DESTINATION paths
2184fcfb00 Tests: Configure RunCMake.install cases with correct build type
5a8a6dfe81 cmGeneratorExpression: Change Find() parameter type to cm::string_view
d810374b3d install(PACKAGE_INFO): Remove outdated TODO comment
d13ed01d54 Tests: Remove unused files from RunCMake.install

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9800
2024-09-20 10:27:30 -04:00
..
AliasTarget
Architecture Tests/Architecture: Have test support Xcode 10+ 2024-04-29 14:46:05 -07:00
ArgumentExpansion
Assembler OrangeC: Add support for OrangeC compiler 2023-09-25 12:27:29 -04:00
BuildDepends Tests: Update BuildDepends test for VS 17.10 2024-05-30 14:23:47 -04:00
BundleGeneratorTest
BundleTest
BundleUtilities
CFBundleTest
CheckCompilerRelatedVariables
CheckSourceTree
CMakeCommands Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
CMakeGUI cmake-gui: Suppress MSVC deprecation warnings from Qt headers 2024-05-30 14:23:47 -04:00
CMakeLib cmJSONHelpers.h: Add FilteredObject helper 2024-08-26 19:01:48 +04:00
CMakeOnly Drop Visual Studio 9 2008 generator 2024-05-08 10:37:34 -04:00
CMakeTestAllGenerators
CMakeTests Check*: Add option to pass link directories into checks 2024-09-09 17:06:33 +03:00
CoberturaCoverage
CommandLength Merge topic 'ci-test-CommandLength' 2024-02-16 09:17:59 -05:00
CommandLineTest Tests/CommandLineTest: Replace exec_program() with execute_process() 2023-07-24 17:23:33 -04:00
CompatibleInterface GenEx: Fix COMPATIBLE_INTERFACE_ evaluation outside usage requirements 2024-04-11 18:35:40 -04:00
CompileCommandOutput
CompileDefinitions Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
CompileFeatures Tests/CompileFeatures: Cover hip_std_## meta-features 2024-05-28 14:36:50 -04:00
CompileOptions GenEx: Add generator expr. for CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT 2024-05-22 16:43:33 +02:00
Complex Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
ComplexOneConfig Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
ConfigSources Fix per-config sources in multi-config generators when first config adds none 2023-11-13 14:00:12 -05:00
COnly Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
Contracts
CPackComponents
CPackComponentsDEB CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
CPackComponentsForAll codespell: Fix typos 2023-11-17 09:58:21 -05:00
CPackComponentsPrefix
CPackIFWGenerator Tests: Add a test covering the CPack IFW Generator 2024-09-11 08:44:09 -04:00
CPackInnoSetupGenerator Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
CPackNSISGenerator CPack/NSIS: Fix matching of reserved component names 2024-08-19 14:25:31 -04:00
CPackTestAllGenerators
CPackUseDefaultVersion
CPackUseProjectVersion
CPackUseShortProjectVersion
CrossCompile
CSharpLinkFromCxx
CSharpLinkToCxx
CSharpOnly
CSharpWin32GenEx
CTestConfig
CTestCoverageCollectGCOV
CTestLimitDashJ
CTestScriptMode
CTestTest
CTestTest2
CTestTestBadExe
CTestTestBadGenerator
CTestTestChecksum
CTestTestCostSerial
CTestTestCrash
CTestTestCycle
CTestTestDepends
CTestTestEmptyBinaryDirectory
CTestTestFdSetSize
CTestTestLabelRegExp
CTestTestLaunchers
CTestTestMissingDependsExe
CTestTestParallel
CTestTestRunScript
CTestTestScheduler
CTestTestSerialInDepends
CTestTestStopTime
CTestTestSubdir
CTestTestTimeout
CTestTestUpload
CTestTestVerboseOutput Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
Cuda FindCUDAToolkit: Use CUDA compiler path even when CUDA lang not enabled 2024-05-29 14:39:29 -04:00
CudaOnly Add support for unity builds with CUDA sources 2024-08-02 13:35:53 -04:00
CustComDepend
CustomCommand Ninja: Fix build event commands with $-sign on custom targets 2024-07-17 09:27:35 -04:00
CustomCommandByproducts
CustomCommandWorkingDirectory Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
CustomTransitiveProperties GenEx: Add support for custom transitive link properties 2024-05-21 09:22:52 -04:00
CxxDialect
CxxOnly
CxxSubdirC
DelphiCoverage
Dependency Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
DoubleProject Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
EmptyDepends
EmptyLibrary
EmptyProperty
Environment
ExportImport Merge topic 'aix-archive-shared-libraries' 2024-07-19 09:55:58 -04:00
ExternalOBJ Tests/ExternalOBJ: Replace exec_program() with execute_process() 2023-07-24 17:59:24 -04:00
ExternalProject
ExternalProjectLocal
ExternalProjectSourceSubdir
ExternalProjectSourceSubdirNotCMake
ExternalProjectSubdir
ExternalProjectUpdate
FindALSA Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindBacktrace Tests/FindBacktrace: Fix compilation as C90 2024-04-17 13:14:11 -04:00
FindBLAS Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindBoost
FindBZip2 Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindCups Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindCURL Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindDevIL Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindDoxygen
FindEnvModules
FindEXPAT Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindFontconfig Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindFreetype Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindGDAL Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindGIF Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindGit
FindGLEW
FindGLUT Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindGnuTLS Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindGSL Tests: Update tests to run in multi-config generators 2023-09-22 09:30:52 -04:00
FindGTest
FindGTK2 Tests: fix calling gdk_init() 2024-04-17 07:34:57 +02:00
FindHDF5
FindIconv
FindICU
FindImageMagick Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindIntl
FindJasper ci: Enable FindJasper test on Fedora 2024-04-10 12:21:13 -04:00
FindJNI
FindJPEG Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindJsonCpp
FindLAPACK Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindLibArchive
FindLibinput Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindLibLZMA Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindLibRHash Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindLibUV Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindLibXml2 Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindLibXslt Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindLTTngUST
FindMatlab Merge topic 'FindMatlab-test-versions_checks' 2024-06-05 09:25:56 -04:00
FindMPI
FindODBC Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindOpenACC ci: Enable FindOpenACC test for each language independently 2024-04-24 16:46:11 -04:00
FindOpenAL
FindOpenCL Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindOpenGL Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindOpenMP FindOpenMP: Add option to control OpenMP runtime with MSVC 2024-05-01 08:25:14 -04:00
FindOpenSP
FindOpenSSL Tests: Update tests to run in multi-config generators 2023-09-22 09:30:52 -04:00
FindPackageModeMakefileTest
FindPackageTest Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindPatch
FindPNG Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindPostgreSQL Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindProtobuf FindProtobuf: Fix IMPORT_DIRS handling and relative directory generation 2024-09-11 12:56:28 -04:00
FindPython FindPython: Add support for free threaded python 2024-06-04 18:14:35 +02:00
FindRuby
FindSDL Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindSQLite3 Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindThreads
FindTIFF Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
FindVulkan Tests/FindVulkan: Allow easy way to switch between VulkanSDK installations 2024-02-07 10:04:16 -05:00
FindwxWidgets
FindX11
FindXalanC
FindXercesC
ForceInclude
Fortran LFortran: Add support for mixed-language linking with Fortran 2024-08-02 15:15:02 -04:00
FortranC LFortran: Add support for mixed-language linking with Fortran 2024-08-02 15:15:02 -04:00
FortranModules Merge topic 'ninja-fortran-include' 2024-03-20 09:55:48 -04:00
FortranOnly LFortran: Add support for this compiler 2024-07-22 16:50:33 -04:00
Framework
FunctionTest
Fuzzing
GeneratorExpression GenEx: Limit TARGET_PROPERTY transitive closure optimization to subgraphs 2024-09-10 13:24:24 +02:00
GhsMulti Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
GoogleTest GoogleTest: Add DEF_SOURCE_LINE property to gtest_add_tests 2024-03-11 22:04:31 +00:00
HIP Tests: Update HIP.MathFunctions case for nodiscard enforcement 2023-11-17 09:58:21 -05:00
ImportedSameName
IncludeDirectories Drop Visual Studio 9 2008 generator 2024-05-08 10:37:34 -04:00
IncludeDirectoriesCPATH
InstallMode
InterfaceLibrary
InterfaceLinkLibraries
InterfaceLinkLibrariesDirect
iOSNavApp
ISPC
JacocoCoverage
Java
JavaExportImport Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
JavaJavah
JavaNativeHeaders
JavascriptCoverage
JCTest
Jump
LibName Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
LinkDirectory
LinkFlags
LinkLanguage Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
LinkLine Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
LinkLineOrder Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
LinkStatic
LoadCommand Tests: Improve C compatibility of LoadCommand tests 2024-01-25 14:35:01 -05:00
LoadCommandOneConfig Tests: Improve C compatibility of LoadCommand tests 2024-01-25 14:35:01 -05:00
MacroTest
MacRuntimePath
MakeClean
MathTest
MFC
MissingInstall
MissingSourceFile
Module LFortran: Add support for this compiler 2024-07-22 16:50:33 -04:00
ModuleDefinition
MSManifest MSVC: Restore support for non-incremental linking with v100 toolset and older 2024-09-03 10:58:28 -04:00
MSVCDebugInformationFormat CUDA/Clang: Add support for MSVC ABI on Windows using GNU-like frontend 2024-01-22 09:33:54 -05:00
MSVCRuntimeLibrary VS: Suppress MSBuild default settings affected by UseDebugLibraries 2024-02-19 10:40:40 -05:00
MumpsCoverage
NasmOnly ASM_NASM: Improve support for standalone usage 2024-03-04 13:09:58 -05:00
NewlineArgs
ObjC
ObjCXX
ObjectLibrary cmComputeLinkInformation: Track targets named by TARGET_OBJECTS sources 2023-11-14 14:50:08 -05:00
OutDir OrangeC: Add support for OrangeC compiler 2023-09-25 12:27:29 -04:00
OutName
OutOfBinary Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
OutOfSource
PDBDirectoryAndName Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
PerConfig Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
Plugin
Policy0002
PolicyScope Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
PositionIndependentTargets
PrecompiledHeader Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
PreOrder
Preprocess
Properties
PythonCoverage
Qt4And5Automoc
Qt4Autogen
Qt4Deploy
Qt4Targets
Qt5Autogen
Qt6Autogen
QtAutogen Tests: Removed unused LABELS on CMake's own tests 2024-07-24 10:07:35 -04:00
QtAutomocNoQt
ReturnTest
RunCMake Merge topic 'normalize-install-destination-paths' 2024-09-20 10:27:30 -04:00
RuntimePath Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SBCS
SetLang Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SharedLibraryArchive AIX: Add option to archive shared libraries 2024-07-17 11:52:09 -04:00
Simple Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SimpleCOnly Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SourceFileIncludeDirProperty Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SourceFileProperty Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SourceGroups Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SourcesProperty
StagingPrefix
StringFileTest
SubDir Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SubDirSpaces Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
SubProject
SwiftMix Tests: Fix SwiftMix tests' runtime library selection on Windows 2024-01-24 14:44:40 -05:00
SwiftMixLib Swift: Enable SwiftMixLib Test on Windows 2024-08-19 11:54:12 -07:00
SwiftMixPCH Xcode: Fix PCH support with Swift & C++ 2024-01-30 12:50:40 -05:00
SwiftOnly Swift: Use per-config module file locations in multi-config generators 2024-05-24 15:23:41 -07:00
SystemInformation
TargetName
TestDriver
Testing
TestsWorkingDirectory Tests: Use real directory in TestsWorkingDirectory 2024-02-27 14:36:40 -05:00
TryCompile Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
Unset Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
UseSWIG UseSWIG: Simplify test for Visual Studio generators 2024-08-28 14:12:41 -04:00
VariableUsage
Visibility Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
VSAndroid Tests/VSAndroid: Update for VS 17 2024-02-29 11:59:05 -05:00
VSExcludeFromDefaultBuild
VSExternalInclude Tests: Simplify tests for Visual Studio generators 2024-08-28 14:12:54 -04:00
VSGNUFortran LFortran: Add support for this compiler 2024-07-22 16:50:33 -04:00
VSManagedCustomCommand
VSMARMASM ASM_MASM: Add support for masm-only static libraries 2024-06-20 10:14:59 -04:00
VSMASM ASM_MASM: Add support for masm-only static libraries 2024-06-20 10:14:59 -04:00
VSMidl
VSNASM
VSProjectInSubdir
VSResource
VSResourceNinjaForceRSP
VSWindowsFormsResx
VSWinStorePhone
VSXaml Tests: Disable VSXaml test pending update to newer VS versions 2024-08-28 14:13:05 -04:00
WarnUnusedCliUnused
WatcomRuntimeLibrary
Wrapping
X11 Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
XCTest Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
.NoDartCoverage
bootstrap.bat.in
BootstrapTest.cmake
CheckFortran.cmake
CheckSwift.cmake
CMakeBuildTest.cmake.in
CMakeCopyright.cmake
CMakeInstall.cmake
CMakeLists.txt Tests: Add a test covering the CPack IFW Generator 2024-09-11 08:44:09 -04:00
CTestUpdateBZR.cmake.in
CTestUpdateCommon.cmake
CTestUpdateCVS.cmake.in codespell: Fix typos 2023-11-17 09:58:21 -05:00
CTestUpdateGIT.cmake.in Tests: Improve CTest.UpdateGIT robustness to user gitconfig 2024-01-17 10:11:41 -05:00
CTestUpdateGIT.sh.in
CTestUpdateHG.cmake.in
CTestUpdateP4.cmake.in
CTestUpdateSVN.cmake.in
EnforceConfig.cmake.in Tests: Isolate test suite from user-wide configuration 2024-08-22 09:59:35 -04:00
README.rst Help/dev: Add a CMake Testing Guide 2024-06-05 12:58:47 -04:00
test_clean.cmake.in

CMake Tests Directory
*********************

This directory contains the CMake test suite.
See also the `CMake Testing Guide`_ and the `CMake Source Code Guide`_.

.. _`CMake Testing Guide`: ../Help/dev/testing.rst
.. _`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.

  See `RunCMake/README.rst`_.

.. _`RunCMake/README.rst`: RunCMake/README.rst