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

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.