Brad King 9c119b829d Merge topic 'obsolete-qt4-macros' 12 éve
..
Architecture 1a53fb7537 Use correct default multiple architecture values in test 14 éve
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments 13 éve
Assembler 242f673829 Tests/Assembler: Use CMAKE_OSX_SYSROOT to generate .s file 13 éve
BuildDepends 035c29fee4 Merge topic 'link-depends-no-shared' 13 éve
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case 13 éve
BundleTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
BundleUtilities 373faae5e1 Refactor how bundles and frameworks are supported. 12 éve
CFBundleTest 483e208482 OS X: Fix getting of CFBundle LOCATION property. 12 éve
CMakeCommands 3e30d9ed67 TLL: Don't populate old link interface if CMP0022 is NEW. 12 éve
CMakeLib df035e4825 VS: Create parser for Visual Studio .sln files 12 éve
CMakeOnly 56ca8d4e63 Tests: Add generator toolset support 13 éve
CMakeTestAllGenerators 0baf5659c6 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators 14 éve
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. 16 éve
CMakeTestMultipleConfigures 9db3116226 Remove CMake-language block-end command arguments 13 éve
CMakeTests bb71a3a0df Add cmake_host_system_information command 12 éve
COnly 9db3116226 Remove CMake-language block-end command arguments 13 éve
CPackComponents 9db3116226 Remove CMake-language block-end command arguments 13 éve
CPackComponentsForAll 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests 13 éve
CPackTestAllGenerators 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests 13 éve
CPackWiXGenerator 85baac1503 CPack: Add a WiX Generator (#11575) 13 éve
CTestBuildCommandProjectInSubdir ac9a5f4d94 ctest_build: Pass projectDir to GenerateBuildCommand 12 éve
CTestConfig 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestLimitDashJ e378ba5f39 Add CTestLimitDashJ test (#12904) 13 éve
CTestScriptMode 9db3116226 Remove CMake-language block-end command arguments 13 éve
CTestTest 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTest2 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestBadExe 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestChecksum 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestConfigFileInBuildDir 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestCostSerial 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestCrash 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestCycle 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestDepends 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestFailedSubmits 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestFailure 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestFdSetSize 875eb8e158 CTest: Add test for running many tests in parallel 13 éve
CTestTestMemcheck e4e09212c5 Merge branch 'master' into escape-regex-specials-in-path 12 éve
CTestTestParallel 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestResourceLock 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case 13 éve
CTestTestScheduler 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestStopTime 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestSubdir 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestTimeout 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestUpload 56ca8d4e63 Tests: Add generator toolset support 13 éve
CTestTestZeroTimeout 56ca8d4e63 Tests: Add generator toolset support 13 éve
CheckCompilerRelatedVariables 77ac9b8b9c VS12: Add Visual Studio 12 generator (#14251) 12 éve
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
CompatibleInterface bf019d765d Fix spelling and typos (non-binary) 12 éve
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case 13 éve
CompileDefinitions 015309fc9f Tests/CompileDefinitions: Avoid spaces in defines on VS 6 12 éve
CompileOptions 47a8db5bcd Add generator expressions for compiler versions. 12 éve
Complex cd4451d1e7 replace string(... MATCHES "^const$) with string(... STREQUAL "const") 12 éve
ComplexOneConfig cd4451d1e7 replace string(... MATCHES "^const$) with string(... STREQUAL "const") 12 éve
Contracts 77543bde41 Convert CMake-language commands to lower case 13 éve
CrossCompile 77543bde41 Convert CMake-language commands to lower case 13 éve
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 éve
CustomCommand 88d27ad014 Add a test to expose a bug with add_custom_command and ninja. 12 éve
CustomCommandWorkingDirectory 77543bde41 Convert CMake-language commands to lower case 13 éve
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 éve
Dependency 77543bde41 Convert CMake-language commands to lower case 13 éve
DocTest 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 éve
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 éve
EmptyDepends 223850576b Watcom: Avoid prompt from wmake about dll with no exports... 13 éve
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs 15 éve
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. 17 éve
ExportImport b6e0972262 Merge topic 'INTERFACE_LINK_LIBRARIES-prop' 12 éve
ExternalOBJ 9db3116226 Remove CMake-language block-end command arguments 13 éve
ExternalProject c0f1af926f ExternalProject: Allow DEPENDS on normal targets (#13849) 13 éve
ExternalProjectUpdate 56ca8d4e63 Tests: Add generator toolset support 13 éve
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments 13 éve
FindPackageModeMakefileTest 09ff191c3f Fix FindPackageMode test Makefile (#13314) 13 éve
FindPackageTest 7bb1abe56a FPHSA: Add FOUND_VAR option to specify _FOUND variable name 13 éve
ForceInclude b29eadd8f3 Map multiple /FI flags for VS < 10 (#11649) 15 éve
Fortran 56ca8d4e63 Tests: Add generator toolset support 13 éve
FortranC 56ca8d4e63 Tests: Add generator toolset support 13 éve
FortranOnly 5c0c635a09 Fortran: Add support for free- and fixed-form flags 14 éve
Framework 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 éve
FunctionTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
GeneratorExpression cacb938d31 Split the GeneratorExpression test into a third part. 12 éve
IPO 77543bde41 Convert CMake-language commands to lower case 13 éve
IncludeDirectories 9cf3547e1c Add the INTERFACE_SYSTEM_INCLUDE_DIRECTORIES target property. 12 éve
InterfaceLinkLibraries d0a76ea07c Introduce the INTERFACE_LINK_LIBRARIES property. 12 éve
JCTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
Java 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 éve
Jump 9db3116226 Remove CMake-language block-end command arguments 13 éve
LibName 9db3116226 Remove CMake-language block-end command arguments 13 éve
LinkDirectory bb18790397 Test CMP0015 OLD and NEW link_directories behavior 16 éve
LinkFlags c8b13ecc38 Intel-specific workaround for LinkFlags tests 15 éve
LinkLanguage 750eb105c2 Test target link information invalidation 16 éve
LinkLine 77543bde41 Convert CMake-language commands to lower case 13 éve
LinkLineOrder 77543bde41 Convert CMake-language commands to lower case 13 éve
LinkStatic 077954d4cb Test static linking with LINK_SEARCH_START_STATIC 15 éve
LoadCommand 9db3116226 Remove CMake-language block-end command arguments 13 éve
LoadCommandOneConfig 9db3116226 Remove CMake-language block-end command arguments 13 éve
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) 14 éve
MacRuntimePath dc1d025197 OS X: Add test for rpaths on Mac. 12 éve
MacroTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
MakeClean 9db3116226 Remove CMake-language block-end command arguments 13 éve
MathTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) 15 éve
Module ff8917fdd2 Merge topic 'VISIBILITY_PRESET-property' 12 éve
ModuleDefinition 89987c2102 Test generated module .def files 14 éve
MumpsCoverage 5b69ce49d4 Update test data to match new coverage format. 13 éve
NewlineArgs 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 éve
ObjC++ 77543bde41 Convert CMake-language commands to lower case 13 éve
ObjectLibrary faa927e273 Make sure INTERFACE properties work with OBJECT libraries. 13 éve
OutDir 6eff237c56 Fix OutDir test on HP, MinGW, and Cygwin 16 éve
OutOfBinary 77543bde41 Convert CMake-language commands to lower case 13 éve
OutOfSource 9db3116226 Remove CMake-language block-end command arguments 13 éve
PDBDirectoryAndName 42ba1b08f3 VS: Separate compiler and linker PDB files (#11899, #14062) 12 éve
PerConfig 77543bde41 Convert CMake-language commands to lower case 13 éve
Plugin 77543bde41 Convert CMake-language commands to lower case 13 éve
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 16 éve
PolicyScope 9db3116226 Remove CMake-language block-end command arguments 13 éve
PositionIndependentTargets 9235603895 Fix PositionIndependentTargets test with clang trunk. 13 éve
PreOrder 77543bde41 Convert CMake-language commands to lower case 13 éve
PrecompiledHeader 9db3116226 Remove CMake-language block-end command arguments 13 éve
Preprocess 4e5cb398ae Merge branch 'master' into vs12-generator 12 éve
Properties 84b49be8f0 Remove CMake multiline block-end command arguments 13 éve
Qt4And5Automoc fa55751f83 QtAutomoc: Get the Qt version through the target link interface 12 éve
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 14 éve
Qt4Targets 9ce60ff509 Qt4Macros: Allow specifying a TARGET in invokations of macros. 12 éve
QtAutomoc 1a2a0dadda Merge topic 'test-moc-with-empty-COMPILE_DEFINITIONS' 12 éve
QtAutomocNoQt a223a3b65f Automoc: Don't create automoc targets if Qt is not used (#13999) 13 éve
ReturnTest ddac8d3d2d Fix spelling and typos (affecting binary data / module messages) 12 éve
RunCMake 9c119b829d Merge topic 'obsolete-qt4-macros' 12 éve
RuntimePath 9db3116226 Remove CMake-language block-end command arguments 13 éve
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) 14 éve
SameName 77543bde41 Convert CMake-language commands to lower case 13 éve
SetLang 77543bde41 Convert CMake-language commands to lower case 13 éve
Simple 9db3116226 Remove CMake-language block-end command arguments 13 éve
SimpleCOnly 9db3116226 Remove CMake-language block-end command arguments 13 éve
SimpleExclude 9db3116226 Remove CMake-language block-end command arguments 13 éve
SimpleInstall cd4451d1e7 replace string(... MATCHES "^const$) with string(... STREQUAL "const") 12 éve
SimpleInstallS2 cd4451d1e7 replace string(... MATCHES "^const$) with string(... STREQUAL "const") 12 éve
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 éve
StringFileTest 0ab50aea4c string: Add MAKE_C_IDENTIFIER subcommand 12 éve
SubDir 9db3116226 Remove CMake-language block-end command arguments 13 éve
SubDirSpaces 9db3116226 Remove CMake-language block-end command arguments 13 éve
SubProject ce8810c4e7 ENH: preclean some warnings 18 éve
SwigTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
SystemInformation cc676c3a08 OS X: Detect implicit linker framework search paths 13 éve
TarTest 9db3116226 Remove CMake-language block-end command arguments 13 éve
TargetName 9db3116226 Remove CMake-language block-end command arguments 13 éve
TestDriver 77543bde41 Convert CMake-language commands to lower case 13 éve
Testing 9db3116226 Remove CMake-language block-end command arguments 13 éve
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 éve
TryCompile f6024ef420 Merge topic 'try_compile-COPY_FILE_ERROR' 12 éve
Tutorial 9db3116226 Remove CMake-language block-end command arguments 13 éve
Unset 9db3116226 Remove CMake-language block-end command arguments 13 éve
VSExcludeFromDefaultBuild b777272b0b Add tests for EXCLUDE_FROM_DEFAULT_BUILD 13 éve
VSExternalInclude 77ac9b8b9c VS12: Add Visual Studio 12 generator (#14251) 12 éve
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 13 éve
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) 15 éve
VSProjectInSubdir 1ca93182ad VS: Add test for building MSBuild project in subdir 12 éve
VSResource df9577259c Add support for Visual Studio project-specific globals (#8707) 14 éve
VSWindowsFormsResx 6c9712c47b VS: Add Resx configuration to the vcxproj file 12 éve
VariableUnusedViaSet f7438ca7ac Add test for unused detection via setting it 15 éve
VariableUnusedViaUnset dee19760a7 Fix typo in VariableUnusedViaUnset test 15 éve
VariableUsage 75bda3864e Add tests for unused command line variables 15 éve
WarnUnusedCliUnused 273ecab96d CLI: Suppress the unused warning if the key value pair is cached. 12 éve
Wrapping 325214900b Fix casing of 'Qt' in docs, comments and user-visible strings. 13 éve
X11 9db3116226 Remove CMake-language block-end command arguments 13 éve
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode 14 éve
.NoDartCoverage fa73553a59 clean up coverage some 23 éve
CMakeBuildTest.cmake.in 56ca8d4e63 Tests: Add generator toolset support 13 éve
CMakeInstall.cmake bce24e14b8 Avoid running CMake.Install test simultaneously with other tests 15 éve
CMakeLists.txt d0a76ea07c Introduce the INTERFACE_LINK_LIBRARIES property. 12 éve
CMakeWizardTest.cmake d8efcfc787 Increase coverage. Add test of class cmakewizard. (cmake -i 'mode') 16 éve
CTestUpdateBZR.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 éve
CTestUpdateCVS.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 éve
CTestUpdateCommon.cmake 9db3116226 Remove CMake-language block-end command arguments 13 éve
CTestUpdateGIT.cmake.in 78b81b773c CTest: Fix ctest_update with 'HEAD' file in source tree 13 éve
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites 15 éve
CTestUpdateHG.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 éve
CTestUpdateSVN.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 éve
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 15 éve
EnforceConfig.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 éve
README 42a81e7119 Add stronger infrastructure for CMake-only tests 14 éve
RegexEscapeString.cmake c9b75dcd73 Fix test failures caused by regexp-sensitive characters in the build paths 12 éve
TestInstall.sh.in 26fce5a402 ENH: Added Install test. It is enabled when the CMAKE_INSTALL_PREFIX is CMake_BINARY_DIR/InstallTest. 22 éve
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS 15 éve
test_clean.cmake.in 77543bde41 Convert CMake-language commands to lower case 13 éve

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.