Brad King 57072c12d2 Merge topic 'interface-property-external-read' пре 13 година
..
Architecture 1a53fb7537 Use correct default multiple architecture values in test пре 14 година
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments пре 13 година
Assembler 242f673829 Tests/Assembler: Use CMAKE_OSX_SYSROOT to generate .s file пре 13 година
BuildDepends 035c29fee4 Merge topic 'link-depends-no-shared' пре 13 година
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case пре 13 година
BundleTest 9db3116226 Remove CMake-language block-end command arguments пре 13 година
BundleUtilities 9db3116226 Remove CMake-language block-end command arguments пре 13 година
CFBundleTest a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) пре 14 година
CMakeCommands 3df36b5954 Revert "Add the $<LINKED:...> generator expression." пре 13 година
CMakeLib 96b66a4963 Avoid string.clear and string.push_back (#13319) пре 13 година
CMakeOnly 56ca8d4e63 Tests: Add generator toolset support пре 13 година
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 98cca40d9b Merge topic 'implicit-lib-canonical-path' пре 13 година
COnly 9db3116226 Remove CMake-language block-end command arguments пре 13 година
CPackComponents 9db3116226 Remove CMake-language block-end command arguments пре 13 година
CPackComponentsForAll 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests пре 13 година
CPackTestAllGenerators 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests пре 13 година
CPackWiXGenerator 85baac1503 CPack: Add a WiX Generator (#11575) пре 13 година
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 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestBadExe 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestChecksum 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestConfigFileInBuildDir 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestCostSerial 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestCrash 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestCycle 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestDepends 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestFailedSubmits 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestFailure 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestMemcheck 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestParallel 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestResourceLock 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case пре 13 година
CTestTestScheduler 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestStopTime 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestSubdir 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestTimeout 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestUpload 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CTestTestZeroTimeout 56ca8d4e63 Tests: Add generator toolset support пре 13 година
CheckCompilerRelatedVariables 16fa7b7395 VS: Fix MSVC_IDE definition recently broken by refactoring пре 13 година
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments пре 13 година
CompatibleInterface 46e28960a5 The COMPATIBLE_INTERFACE does not affect the target it is set on. пре 13 година
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case пре 13 година
CompileDefinitions 145a4af8d3 GenEx: Test the use of generator expressions to generate lists. пре 13 година
Complex 9db3116226 Remove CMake-language block-end command arguments пре 13 година
ComplexOneConfig 9db3116226 Remove CMake-language block-end command arguments пре 13 година
Contracts 77543bde41 Convert CMake-language commands to lower case пре 13 година
CrossCompile 77543bde41 Convert CMake-language commands to lower case пре 13 година
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code пре 13 година
CustomCommand 9db3116226 Remove CMake-language block-end command arguments пре 13 година
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 година
DocTest 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code пре 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 година
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 236133e79e Handle targets in the LINK_LIBRARIES of try_compile. пре 13 година
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 година
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments пре 13 година
FindPackageModeMakefileTest 09ff191c3f Fix FindPackageMode test Makefile (#13314) пре 13 година
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 8dfdf1c734 Fix the tests for evaluating includes and defines. пре 13 година
IPO 77543bde41 Convert CMake-language commands to lower case пре 13 година
IncludeDirectories 5c9f5e313f Don't use LINKED where not needed. пре 13 година
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 c8b13ecc38 Intel-specific workaround for LinkFlags tests пре 15 година
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 година
MacroTest 9db3116226 Remove CMake-language block-end command arguments пре 13 година
MakeClean 9db3116226 Remove CMake-language block-end command arguments пре 13 година
MathTest 9db3116226 Remove CMake-language block-end command arguments пре 13 година
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) пре 15 година
Module 55f0148d7b ExternalData: Test content link with a space in its name пре 13 година
ModuleDefinition 89987c2102 Test generated module .def files пре 14 година
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 faa927e273 Make sure INTERFACE properties work with OBJECT libraries. пре 13 година
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 2ccca05fad Run PDBDirectoryAndName test on MSVC and Intel пре 13 година
PerConfig 77543bde41 Convert CMake-language commands to lower case пре 13 година
Plugin 77543bde41 Convert CMake-language commands to lower case пре 13 година
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 пре 16 година
PolicyScope 9db3116226 Remove CMake-language block-end command arguments пре 13 година
PositionIndependentTargets 9235603895 Fix PositionIndependentTargets test with clang trunk. пре 13 година
PreOrder 77543bde41 Convert CMake-language commands to lower case пре 13 година
PrecompiledHeader 9db3116226 Remove CMake-language block-end command arguments пре 13 година
Preprocess 9db3116226 Remove CMake-language block-end command arguments пре 13 година
Properties 84b49be8f0 Remove CMake multiline block-end command arguments пре 13 година
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. пре 14 година
Qt4Targets 77cecb778f Add includes and compile definitions with target_link_libraries. пре 13 година
QtAutomoc 79568f95ab automoc: Add source file to target early to set the linker language пре 13 година
ReturnTest 9db3116226 Remove CMake-language block-end command arguments пре 13 година
RunCMake f17711c546 FPHSA: Convert FOUND_VAR failure test to RunCMake пре 13 година
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 9db3116226 Remove CMake-language block-end command arguments пре 13 година
SimpleInstallS2 9db3116226 Remove CMake-language block-end command arguments пре 13 година
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code пре 13 година
StringFileTest 9db3116226 Remove CMake-language block-end command arguments пре 13 година
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 9db3116226 Remove CMake-language block-end command arguments пре 13 година
Tutorial 9db3116226 Remove CMake-language block-end command arguments пре 13 година
Unset 9db3116226 Remove CMake-language block-end command arguments пре 13 година
VSExcludeFromDefaultBuild b777272b0b Add tests for EXCLUDE_FROM_DEFAULT_BUILD пре 13 година
VSExternalInclude 56ca8d4e63 Tests: Add generator toolset support пре 13 година
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) пре 13 година
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) пре 15 година
VSResource df9577259c Add support for Visual Studio project-specific globals (#8707) пре 14 година
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 година
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 55f0148d7b ExternalData: Test content link with a space in its name пре 13 година
CMakeWizardTest.cmake d8efcfc787 Increase coverage. Add test of class cmakewizard. (cmake -i 'mode') пре 16 година
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 9db3116226 Remove CMake-language block-end command arguments пре 13 година
CTestUpdateGIT.cmake.in 9db3116226 Remove CMake-language block-end command arguments пре 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 година
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 година
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.