CMake/Tests
Stephen Kelly cad5c79e6c cmTarget: Fix typo
'a ALIAS' -> 'an ALIAS'
2013-12-19 16:17:59 +01:00
..
AliasTarget Add the INTERFACE_LIBRARY target type. 2013-10-07 19:56:31 -04:00
Architecture Xcode: Fix test architecture selection for Xcode >= 5 2013-10-02 12:48:20 -04:00
ArgumentExpansion Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
Assembler Tests/Assembler: Drop -g when generating sample assembly source 2013-11-01 10:55:58 -04:00
BuildDepends Xcode: Teach BuildDepends test that Xcode >= 5 needs no help 2013-10-08 14:21:25 -04:00
BundleGeneratorTest Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
BundleTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
BundleUtilities Tests: Don't read the LOCATION property from build targets. 2013-11-19 18:07:27 +01:00
CFBundleTest CFBundle test: Add isysroot argument when calling Rez. 2013-11-06 06:42:44 -07:00
CheckCompilerRelatedVariables VS12: Add Visual Studio 12 generator (#14251) 2013-06-28 18:13:14 -04:00
CMakeCommands target_include_directories: Allow relative path with genex 2013-11-26 10:30:18 +01:00
CMakeLib cmRST: Add support for the note and productionlist directives 2013-10-30 10:26:29 -04:00
CMakeOnly Merge topic 'CheckStructHasMember_CXX' 2013-10-08 09:53:37 -04:00
CMakeTestAllGenerators
CMakeTestBadCommandLines
CMakeTestMultipleConfigures Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
CMakeTests Drop use of configure_file IMMEDIATE option 2013-11-13 10:12:17 -05:00
CommandLineTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
CompatibleInterface cmTarget: Report origin of COMPATIBLE_INTERFACE properties. 2013-12-08 07:03:29 +01:00
CompileCommandOutput Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
CompileDefinitions Remove the LINK_LANGUAGE generator expression. 2013-07-24 10:40:00 -04:00
CompileOptions Add generator expressions for compiler versions. 2013-06-28 14:32:58 +02:00
Complex Drop use of configure_file IMMEDIATE option 2013-11-13 10:12:17 -05:00
ComplexOneConfig Drop use of configure_file IMMEDIATE option 2013-11-13 10:12:17 -05:00
COnly Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
Contracts Tests/Contracts: Submit notes with VTK build 2013-12-19 10:01:14 -05:00
CPackComponents Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
CPackComponentsForAll cpack: For DragNDrop generator, add sysroot option when calling Rez. 2013-10-31 20:25:12 -06:00
CPackTestAllGenerators Tests: Use the right path to CPack value for running CPack tests 2012-11-29 15:49:36 -05:00
CPackWiXGenerator CPackWiX: allow customization of generated WiX sources 2013-12-17 14:14:42 +01:00
CrossCompile Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
CTestBuildCommandProjectInSubdir Tests: Simplify CTest.BuildCommand.ProjectInSubdir configuration 2013-11-18 11:30:49 -05:00
CTestConfig Tests: Add generator toolset support 2013-02-07 11:09:56 -05:00
CTestLimitDashJ Add CTestLimitDashJ test (#12904) 2013-01-03 13:37:50 -05:00
CTestScriptMode Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
CTestTest Tests: Add generator toolset support 2013-02-07 11:09:56 -05:00
CTestTest2 CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestBadExe CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestChecksum CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestConfigFileInBuildDir Tests: Add generator toolset support 2013-02-07 11:09:56 -05:00
CTestTestCostSerial CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestCrash CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestCycle CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestDepends CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestEmptyBinaryDirectory Tests: added test for ctest_empty_binary_directory() 2013-11-01 21:32:16 +01:00
CTestTestFailedSubmits Tests: Add generator toolset support 2013-02-07 11:09:56 -05:00
CTestTestFailure CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestFdSetSize CTest: Add test for running many tests in parallel 2013-03-22 09:02:12 -04:00
CTestTestLaunchers Tests: Add test for CTEST_USE_LAUNCHERS capture of custom commands 2013-10-31 09:29:55 -04:00
CTestTestMemcheck Tests: allow valgrind test to pass with symlinked build dir 2013-12-15 00:31:14 +01:00
CTestTestParallel CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestResourceLock CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestRunScript Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
CTestTestScheduler CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestSerialInDepends CTest: fix dashboard issues associated with the ctest-fix-run-serial topic 2013-10-25 21:39:58 +02:00
CTestTestStopTime Tests: use string(TIMESTAMP) instead of system and locale specific date/time 2013-10-26 21:09:37 +02:00
CTestTestSubdir CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestTimeout CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestUpload CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CTestTestZeroTimeout CTestTest*: Update minimum required CMake to 2.4 2013-10-23 08:54:31 -04:00
CustComDepend Remove trailing whitespace from most CMake and C/C++ code 2012-08-13 14:18:39 -04:00
CustomCommand Tests: Don't read the LOCATION property from build targets. 2013-11-19 18:07:27 +01:00
CustomCommandWorkingDirectory Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
CxxOnly
Dependency Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
DoubleProject
EmptyDepends Watcom: Avoid prompt from wmake about dll with no exports... 2012-11-28 12:11:52 -05:00
EmptyLibrary
EmptyProperty set_property: Do not remove a property when APPENDing nothing 2013-07-24 10:50:15 -04:00
Environment
ExportImport Merge topic 'cleanup-build-commands' 2013-12-06 15:52:41 -05:00
ExternalOBJ Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
ExternalProject ExternalProject: Allow DEPENDS on normal targets (#13849) 2013-01-16 10:35:58 -05:00
ExternalProjectUpdate Tests: Add generator toolset support 2013-02-07 11:09:56 -05:00
FindGTK2 FindGTK2: Add tests for components and targets in gtk and gtkmm modules 2013-10-08 10:47:06 -04:00
FindModulesExecuteAll Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
FindPackageModeMakefileTest cmTarget: Deprecate the LOCATION target property with a policy. 2013-10-11 21:17:27 +02:00
FindPackageTest FPHSA: Add FOUND_VAR option to specify _FOUND variable name 2013-02-22 08:31:00 -05:00
ForceInclude
Fortran Tests: Fix standalone build of tests with nested projects 2013-12-05 12:52:11 -05:00
FortranC Tests: Add generator toolset support 2013-02-07 11:09:56 -05:00
FortranOnly
Framework Remove trailing whitespace from most CMake and C/C++ code 2012-08-13 14:18:39 -04:00
FunctionTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
GeneratorExpression Genex: Accept arbitrary content in *_CASE and MAKE_C_IDENTIFIER. 2013-12-19 16:17:59 +01:00
IncludeDirectories Add a test for SYSTEM headers in INTERFACE libraries. 2013-10-10 00:33:33 +02:00
InterfaceLibrary Remove INTERFACE build targets. 2013-12-10 17:58:36 +01:00
InterfaceLinkLibraries Introduce the INTERFACE_LINK_LIBRARIES property. 2013-07-08 22:39:09 +02:00
iOSNavApp
IPO Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Java Remove trailing whitespace from most CMake and C/C++ code 2012-08-13 14:18:39 -04:00
JCTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
Jump Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
LibName Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
LinkDirectory Tests: Don't read the LOCATION property from build targets. 2013-11-19 18:07:27 +01:00
LinkFlags Add additonal tests for the linker flags 2013-07-31 08:41:08 -04:00
LinkLanguage
LinkLine Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
LinkLineOrder Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
LinkStatic
LoadCommand Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
LoadCommandOneConfig Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
MacroTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
MacRuntimePath Tests: Fix standalone build of tests with nested projects 2013-12-05 12:52:11 -05:00
MakeClean Tests: Don't read the LOCATION property from build targets. 2013-11-19 18:07:27 +01:00
MathTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
MFC
MissingSourceFile
Module Merge some GenerateExportHeader subtests. 2013-12-15 11:22:19 +01:00
ModuleDefinition
MumpsCoverage Update test data to match new coverage format. 2012-05-07 15:46:29 -04:00
NewlineArgs Remove trailing whitespace from most CMake and C/C++ code 2012-08-13 14:18:39 -04:00
ObjC++ Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
ObjectLibrary Make ExportLanguages a subtest of the ObjectLibrary test 2013-10-24 19:05:34 +02:00
OutDir
OutOfBinary Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
OutOfSource Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
PDBDirectoryAndName VS: Separate compiler and linker PDB files (#11899, #14062) 2013-04-05 11:25:09 -04:00
PerConfig Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Plugin Refactor the Plugin test. 2013-10-24 19:03:49 +02:00
Policy0002
PolicyScope Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
PositionIndependentTargets Add the INTERFACE_LIBRARY target type. 2013-10-07 19:56:31 -04:00
PrecompiledHeader Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
PreOrder Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Preprocess Test COMPILE_DEFINITIONS target property get/set/get round-trip 2013-07-24 13:25:47 -04:00
Properties Remove CMake multiline block-end command arguments 2012-08-15 16:50:29 -04:00
PythonCoverage Adding support for the Python coverage.py tool. 2013-10-08 09:20:30 -04:00
Qt4And5Automoc QtAutomoc: Get the Qt version through the target link interface 2013-05-28 01:19:37 +02:00
Qt4Deploy
Qt4Targets Qt4Macros: Allow specifying a TARGET in invokations of macros. 2013-06-03 10:07:02 +02:00
QtAutogen cmQtAutogen: Allow specifying depends for autogen targets. 2013-11-25 22:41:21 +01:00
QtAutomocNoQt Automoc: Don't create automoc targets if Qt is not used (#13999) 2013-03-12 17:42:02 -04:00
QtAutoUicInterface QtAutoUic: Add INTERFACE_AUTOUIC_OPTIONS target property. 2013-11-27 19:06:12 +01:00
ReturnTest Fix spelling and typos (affecting binary data / module messages) 2013-05-07 08:39:19 -04:00
RunCMake cmTarget: Fix typo 2013-12-19 16:17:59 +01:00
RuntimePath Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
SameName Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
SBCS
SetLang Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Simple Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
SimpleCOnly Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
SimpleExclude Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
SimpleInstall Tests: Teach SimpleInstall to use "cmake --build" 2013-11-18 08:26:22 -05:00
SimpleInstallS2 Tests: Teach SimpleInstall to use "cmake --build" 2013-11-18 08:26:22 -05:00
SourceGroups Remove trailing whitespace from most CMake and C/C++ code 2012-08-13 14:18:39 -04:00
StagingPrefix Introduce CMAKE_STAGING_PREFIX variable. 2013-11-21 11:48:03 +01:00
StringFileTest string: Add MAKE_C_IDENTIFIER subcommand 2013-05-21 15:29:34 -04:00
SubDir Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
SubDirSpaces Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
SubProject
SwigTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
SystemInformation OS X: Detect implicit linker framework search paths 2012-12-11 15:15:52 -05:00
TargetName Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
TarTest Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
TestDriver Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Testing Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
TestsWorkingDirectory
TryCompile Merge topic 'try_compile-COPY_FILE_ERROR' 2013-07-15 09:33:32 -04:00
Tutorial Tests: Don't read the LOCATION property from build targets. 2013-11-19 18:07:27 +01:00
Unset unset: Add PARENT_SCOPE option 2013-10-08 08:37:50 -04:00
VariableUnusedViaSet
VariableUnusedViaUnset
VariableUsage
VSExcludeFromDefaultBuild Add tests for EXCLUDE_FROM_DEFAULT_BUILD 2012-11-13 09:08:42 -05:00
VSExternalInclude VS12: Add Visual Studio 12 generator (#14251) 2013-06-28 18:13:14 -04:00
VSGNUFortran Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 2012-06-18 16:18:27 -04:00
VSMidl
VSProjectInSubdir VS: Add test for building MSBuild project in subdir 2013-04-12 11:35:36 -04:00
VSResource
VSWindowsFormsResx VS: Add Resx configuration to the vcxproj file 2013-06-28 09:23:41 -04:00
WarnUnusedCliUnused CLI: Suppress the unused warning if the key value pair is cached. 2013-06-04 12:38:56 +02:00
Wrapping Tests: Don't read the LOCATION property from build targets. 2013-11-19 18:07:27 +01:00
X11 Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
.NoDartCoverage
bootstrap.bat.in
BootstrapTest.cmake Tests: Launch BootstrapTest through cmake instead of ctest 2013-11-18 08:26:22 -05:00
CheckFortran.cmake
CMakeBuildTest.cmake.in Tests: Add generator toolset support 2013-02-07 11:09:56 -05:00
CMakeCopyright.cmake Copyright.txt: Add test to check year range 2013-11-12 16:35:26 -05:00
CMakeInstall.cmake Tests: Launch CMake.Install test through 'cmake --build' 2013-11-18 08:26:22 -05:00
CMakeLists.txt Remove INTERFACE build targets. 2013-12-10 17:58:36 +01:00
CTestUpdateBZR.cmake.in Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
CTestUpdateCommon.cmake ctest_update: Do not remove the p4 depot name 2013-11-01 08:52:26 -04:00
CTestUpdateCVS.cmake.in Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
CTestUpdateGIT.cmake.in CTest: Fix ctest_update with 'HEAD' file in source tree 2013-02-28 11:52:30 -05:00
CTestUpdateGIT.sh.in
CTestUpdateHG.cmake.in Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
CTestUpdateP4.cmake.in ctest_update: Do not remove the p4 depot name 2013-11-01 08:52:26 -04:00
CTestUpdateSVN.cmake.in Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
EnforceConfig.cmake.in Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
README
RegexEscapeString.cmake Fix test failures caused by regexp-sensitive characters in the build paths 2013-06-03 16:51:21 +02:00
test_clean.cmake.in Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00

If you think about adding a new testcase then here is a small checklist you
can run through to find a proper place for it. Go through the list from the
beginning and stop once you find something that matches your tests needs,
i.e. if you will test a module and only need the configure mode use the
instructions from section 2, not 3.

1. Your testcase can run in CMake script mode, i.e. "cmake -P something"

Put your test in Tests/CMakeTests/ directory as a .cmake.in file. It will be
put into the test binary directory by configure_file(... @ONLY) and run from
there. Use the AddCMakeTest() macro in Tests/CMakeTests/CMakeLists.txt to add
your test to the test runs.

2. Your test needs CMake to run in configure mode, but will not build anything

This includes tests that will build something using try_compile() and friends,
but nothing that expects add_executable(), add_library(), or add_test() to run.

If the test configures the project only once and it must succeed then put it
into the Tests/CMakeOnly/ directory.  Create a subdirectory named like your
test and write the CMakeLists.txt you need into that subdirectory. Use the
add_CMakeOnly_test() macro from Tests/CMakeOnly/CMakeLists.txt to add your
test to the test runs.

If the test configures the project with multiple variations and verifies
success or failure each time then put it into the Tests/RunCMake/ directory.
Read the instructions in Tests/RunCMake/CMakeLists.txt to add a test.

3. If you are testing something from the Modules directory

Put your test in the Tests/Modules/ directory. Create a subdirectory there
named after your test. Use the ADD_TEST_MACRO macro from Tests/CMakeLists.txt
to add your test to the test run. If you have put your stuff in
Tests/Modules/Foo then you call it using ADD_TEST_MACRO(Module.Foo Foo).

4. You are doing other stuff.

Find a good place ;) In doubt mail to cmake-developers@cmake.org and ask for
advise.