Nils Gladitz 0655d0946e Tests: use string(TIMESTAMP) instead of system and locale specific date/time vor 12 Jahren
..
AliasTarget fe732264e9 Add the INTERFACE_LIBRARY target type. vor 12 Jahren
Architecture 765b46d1e1 Xcode: Fix test architecture selection for Xcode >= 5 vor 12 Jahren
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
Assembler ab65862417 Clang: Add separate "AppleClang" compiler id vor 12 Jahren
BuildDepends 7f459a664c Xcode: Teach BuildDepends test that Xcode >= 5 needs no help vor 12 Jahren
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
BundleTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
BundleUtilities 373faae5e1 Refactor how bundles and frameworks are supported. vor 12 Jahren
CFBundleTest 483e208482 OS X: Fix getting of CFBundle LOCATION property. vor 12 Jahren
CMakeCommands 1b21ac405f Merge topic 'fix-tll-static-private' vor 12 Jahren
CMakeLib 2945814de2 cmRST: Teach cmake-module directive to scan bracket comments vor 12 Jahren
CMakeOnly 4340507207 Merge topic 'CheckStructHasMember_CXX' vor 12 Jahren
CMakeTestAllGenerators 0baf5659c6 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators vor 14 Jahren
CMakeTestBadCommandLines ae1e9900fa Add test CMakeTestBadCommandLines. Also add --graphviz arg to cmake invoked during the CPackComponents test. The purpose of each is to increase coverage of cmake.cxx. vor 16 Jahren
CMakeTestMultipleConfigures 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CMakeTests 6035c0458e get_property: Drop test for builtin property documentation vor 12 Jahren
COnly 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CPackComponents 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CPackComponentsForAll 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests vor 13 Jahren
CPackTestAllGenerators 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests vor 13 Jahren
CPackWiXGenerator fe7f8c99a4 CPackWiX: use safe IDs for generated start menu shortcuts vor 12 Jahren
CTestBuildCommandProjectInSubdir ac9a5f4d94 ctest_build: Pass projectDir to GenerateBuildCommand vor 12 Jahren
CTestConfig 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
CTestLimitDashJ e378ba5f39 Add CTestLimitDashJ test (#12904) vor 13 Jahren
CTestScriptMode 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CTestTest 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
CTestTest2 c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestBadExe c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestChecksum c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestConfigFileInBuildDir 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
CTestTestCostSerial c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestCrash c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestCycle c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestDepends c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestFailedSubmits 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
CTestTestFailure c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestFdSetSize 875eb8e158 CTest: Add test for running many tests in parallel vor 13 Jahren
CTestTestMemcheck e8e67aed22 CTestTestMemcheck: Fix matching of malloc debug messages vor 12 Jahren
CTestTestParallel c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestResourceLock c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
CTestTestScheduler c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestSerialInDepends ff59365f8b CTest: fix dashboard issues associated with the ctest-fix-run-serial topic vor 12 Jahren
CTestTestStopTime 0655d0946e Tests: use string(TIMESTAMP) instead of system and locale specific date/time vor 12 Jahren
CTestTestSubdir c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestTimeout c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestUpload c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CTestTestZeroTimeout c7c44fc7f4 CTestTest*: Update minimum required CMake to 2.4 vor 12 Jahren
CheckCompilerRelatedVariables 77ac9b8b9c VS12: Add Visual Studio 12 generator (#14251) vor 12 Jahren
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CompatibleInterface ff6c401309 cmTarget: Add interface for compatible numeric properties vor 12 Jahren
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
CompileDefinitions 4f6bd7022b Remove the LINK_LANGUAGE generator expression. vor 12 Jahren
CompileOptions 47a8db5bcd Add generator expressions for compiler versions. vor 12 Jahren
Complex 7d47c69365 Drop compatibility with CMake < 2.4 vor 12 Jahren
ComplexOneConfig 7d47c69365 Drop compatibility with CMake < 2.4 vor 12 Jahren
Contracts 5a4a5841d4 update Trilinos contract test vor 12 Jahren
CrossCompile 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code vor 13 Jahren
CustomCommand 88d27ad014 Add a test to expose a bug with add_custom_command and ninja. vor 12 Jahren
CustomCommandWorkingDirectory 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) vor 14 Jahren
Dependency 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. vor 14 Jahren
EmptyDepends 223850576b Watcom: Avoid prompt from wmake about dll with no exports... vor 13 Jahren
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs vor 15 Jahren
EmptyProperty 31bd83e9fc set_property: Do not remove a property when APPENDing nothing vor 12 Jahren
Environment ceaef94ccc ENH: Implement feature request from issue 7885. Allow setting environment variables on a per-test basis for ctest using set_test_properties ENVIRONMENT. vor 17 Jahren
ExportImport f063c45589 Consider targets with double colons to be IMPORTED or ALIAS targets. vor 12 Jahren
ExternalOBJ 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
ExternalProject c0f1af926f ExternalProject: Allow DEPENDS on normal targets (#13849) vor 13 Jahren
ExternalProjectUpdate 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
FindGTK2 7efef02df2 FindGTK2: Add tests for components and targets in gtk and gtkmm modules vor 12 Jahren
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
FindPackageModeMakefileTest e4e5b28c27 cmTarget: Deprecate the LOCATION target property with a policy. vor 12 Jahren
FindPackageTest 7bb1abe56a FPHSA: Add FOUND_VAR option to specify _FOUND variable name vor 13 Jahren
ForceInclude b29eadd8f3 Map multiple /FI flags for VS < 10 (#11649) vor 15 Jahren
Fortran 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
FortranC 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
FortranOnly 5c0c635a09 Fortran: Add support for free- and fixed-form flags vor 14 Jahren
Framework 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code vor 13 Jahren
FunctionTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
GeneratorExpression 9939c99bc6 Merge topic 'test-property-genex' vor 12 Jahren
IPO 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
IncludeDirectories 617ee7c567 Add a test for SYSTEM headers in INTERFACE libraries. vor 12 Jahren
InterfaceBuildTargets b04f3b9a2a Create make rules for INTERFACE_LIBRARY targets. vor 12 Jahren
InterfaceLibrary fe732264e9 Add the INTERFACE_LIBRARY target type. vor 12 Jahren
InterfaceLinkLibraries d0a76ea07c Introduce the INTERFACE_LINK_LIBRARIES property. vor 12 Jahren
JCTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
Java 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code vor 13 Jahren
Jump 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
LibName 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
LinkDirectory bb18790397 Test CMP0015 OLD and NEW link_directories behavior vor 16 Jahren
LinkFlags 152dfdab11 Add additonal tests for the linker flags vor 12 Jahren
LinkLanguage 750eb105c2 Test target link information invalidation vor 16 Jahren
LinkLine 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
LinkLineOrder 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
LinkStatic 077954d4cb Test static linking with LINK_SEARCH_START_STATIC vor 15 Jahren
LoadCommand 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
LoadCommandOneConfig 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) vor 14 Jahren
MacRuntimePath e645ff0b10 OS X: Enable rpath support on Mac OS X when find_library() is used. vor 12 Jahren
MacroTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
MakeClean d26594f390 Genex: Evaluate genexes for additional make clean files. vor 12 Jahren
MathTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) vor 15 Jahren
Module e6cec64820 CheckTypeSize: Add unit tests vor 12 Jahren
ModuleDefinition 89987c2102 Test generated module .def files vor 14 Jahren
MumpsCoverage 5b69ce49d4 Update test data to match new coverage format. vor 13 Jahren
NewlineArgs 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code vor 13 Jahren
ObjC++ 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
ObjectLibrary 310aef959b Make ExportLanguages a subtest of the ObjectLibrary test vor 12 Jahren
OutDir 6eff237c56 Fix OutDir test on HP, MinGW, and Cygwin vor 16 Jahren
OutOfBinary 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
OutOfSource 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
PDBDirectoryAndName 42ba1b08f3 VS: Separate compiler and linker PDB files (#11899, #14062) vor 12 Jahren
PerConfig 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
Plugin 30ff6cf9e9 Refactor the Plugin test. vor 12 Jahren
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 vor 16 Jahren
PolicyScope 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
PositionIndependentTargets fe732264e9 Add the INTERFACE_LIBRARY target type. vor 12 Jahren
PreOrder 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
PrecompiledHeader 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
Preprocess a43e5e0ad5 Test COMPILE_DEFINITIONS target property get/set/get round-trip vor 12 Jahren
Properties 84b49be8f0 Remove CMake multiline block-end command arguments vor 13 Jahren
PythonCoverage d0ec3a01a6 Adding support for the Python coverage.py tool. vor 12 Jahren
Qt4And5Automoc fa55751f83 QtAutomoc: Get the Qt version through the target link interface vor 12 Jahren
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. vor 14 Jahren
Qt4Targets 9ce60ff509 Qt4Macros: Allow specifying a TARGET in invokations of macros. vor 12 Jahren
QtAutomoc d4937da71b Search for the Q_GADGET macro for running automoc too. vor 12 Jahren
QtAutomocNoQt a223a3b65f Automoc: Don't create automoc targets if Qt is not used (#13999) vor 13 Jahren
ReturnTest ddac8d3d2d Fix spelling and typos (affecting binary data / module messages) vor 12 Jahren
RunCMake bd48b8a8ce Merge topic 'handle-CMP0024-in-tests' vor 12 Jahren
RuntimePath 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) vor 14 Jahren
SameName 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
SetLang 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
Simple 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
SimpleCOnly 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
SimpleExclude 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
SimpleInstall cd4451d1e7 replace string(... MATCHES "^const$) with string(... STREQUAL "const") vor 12 Jahren
SimpleInstallS2 cd4451d1e7 replace string(... MATCHES "^const$) with string(... STREQUAL "const") vor 12 Jahren
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code vor 13 Jahren
StringFileTest 0ab50aea4c string: Add MAKE_C_IDENTIFIER subcommand vor 12 Jahren
SubDir 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
SubDirSpaces 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
SubProject ce8810c4e7 ENH: preclean some warnings vor 18 Jahren
SwigTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
SystemInformation cc676c3a08 OS X: Detect implicit linker framework search paths vor 13 Jahren
TarTest 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
TargetName 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
TestDriver 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren
Testing 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) vor 14 Jahren
TryCompile f6024ef420 Merge topic 'try_compile-COPY_FILE_ERROR' vor 12 Jahren
Tutorial 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
Unset 261c248254 unset: Add PARENT_SCOPE option vor 12 Jahren
VSExcludeFromDefaultBuild b777272b0b Add tests for EXCLUDE_FROM_DEFAULT_BUILD vor 13 Jahren
VSExternalInclude 77ac9b8b9c VS12: Add Visual Studio 12 generator (#14251) vor 12 Jahren
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) vor 13 Jahren
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) vor 15 Jahren
VSProjectInSubdir 1ca93182ad VS: Add test for building MSBuild project in subdir vor 12 Jahren
VSResource df9577259c Add support for Visual Studio project-specific globals (#8707) vor 14 Jahren
VSWindowsFormsResx 6c9712c47b VS: Add Resx configuration to the vcxproj file vor 12 Jahren
VariableUnusedViaSet f7438ca7ac Add test for unused detection via setting it vor 15 Jahren
VariableUnusedViaUnset dee19760a7 Fix typo in VariableUnusedViaUnset test vor 15 Jahren
VariableUsage 75bda3864e Add tests for unused command line variables vor 15 Jahren
WarnUnusedCliUnused 273ecab96d CLI: Suppress the unused warning if the key value pair is cached. vor 12 Jahren
Wrapping 325214900b Fix casing of 'Qt' in docs, comments and user-visible strings. vor 13 Jahren
X11 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode vor 14 Jahren
.NoDartCoverage fa73553a59 clean up coverage some vor 23 Jahren
CMakeBuildTest.cmake.in 56ca8d4e63 Tests: Add generator toolset support vor 13 Jahren
CMakeInstall.cmake bce24e14b8 Avoid running CMake.Install test simultaneously with other tests vor 15 Jahren
CMakeLists.txt 38fc334fd0 Merge topic 'ctest-fix-run-serial' vor 12 Jahren
CTestUpdateBZR.cmake.in 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CTestUpdateCVS.cmake.in 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CTestUpdateCommon.cmake 970c82348b ctest_update: Add support for Perforce p4 client vor 12 Jahren
CTestUpdateGIT.cmake.in 78b81b773c CTest: Fix ctest_update with 'HEAD' file in source tree vor 13 Jahren
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites vor 15 Jahren
CTestUpdateHG.cmake.in 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CTestUpdateP4.cmake.in 970c82348b ctest_update: Add support for Perforce p4 client vor 12 Jahren
CTestUpdateSVN.cmake.in 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' vor 15 Jahren
EnforceConfig.cmake.in 9db3116226 Remove CMake-language block-end command arguments vor 13 Jahren
README 42a81e7119 Add stronger infrastructure for CMake-only tests vor 14 Jahren
RegexEscapeString.cmake c9b75dcd73 Fix test failures caused by regexp-sensitive characters in the build paths vor 12 Jahren
TestInstall.sh.in 26fce5a402 ENH: Added Install test. It is enabled when the CMAKE_INSTALL_PREFIX is CMake_BINARY_DIR/InstallTest. vor 22 Jahren
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS vor 15 Jahren
test_clean.cmake.in 77543bde41 Convert CMake-language commands to lower case vor 13 Jahren

README

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 [email protected] and ask for
advise.