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

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.