Brad King 09a0da7789 Revert "load_command: Deprecate and document pending removal" há 13 anos atrás
..
Architecture 1a53fb7537 Use correct default multiple architecture values in test há 14 anos atrás
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
Assembler 97140d3986 Tests/Assembler: Do not use assembler in universal binaries há 13 anos atrás
BuildDepends 84b49be8f0 Remove CMake multiline block-end command arguments há 13 anos atrás
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
BundleTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
BundleUtilities 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CFBundleTest a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) há 14 anos atrás
CMakeCommands 55b2aa884c Use generalized RunCMake test infrastrucure for build_command test há 13 anos atrás
CMakeLib 96b66a4963 Avoid string.clear and string.push_back (#13319) há 13 anos atrás
CMakeOnly 34a0284603 Merge topic 'ide-compiler-id' há 13 anos atrás
CMakeTestAllGenerators 0baf5659c6 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators há 14 anos atrás
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. há 16 anos atrás
CMakeTestMultipleConfigures 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CMakeTests 34567dfc0d file(DOWNLOAD): Generalize EXPECTED_MD5 to EXPECTED_HASH há 13 anos atrás
COnly 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CPackComponents 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CPackComponentsForAll 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CPackTestAllGenerators 8d94703cc2 Fix failing test. Forgot to double quote last arg to STRING. há 16 anos atrás
CTestConfig 361696ae20 CTest: Add test to verify -D variable definitions work há 13 anos atrás
CTestScriptMode 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestTest 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTest2 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestBadExe 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestChecksum 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestConfigFileInBuildDir 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestCostSerial 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestTestCrash 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestCycle 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestDepends 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestFailedSubmits 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestFailure 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestParallel 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestResourceLock 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestScheduler 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestTestStopTime 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestTestSubdir 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestTimeout 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestUpload 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CTestTestZeroTimeout 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CheckCompilerRelatedVariables 16fa7b7395 VS: Fix MSVC_IDE definition recently broken by refactoring há 13 anos atrás
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CompileDefinitions f0a1065393 Rename files from main.cpp to more meaningful names. há 13 anos atrás
Complex 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
ComplexOneConfig 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
Contracts 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CrossCompile 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code há 13 anos atrás
CustomCommand 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CustomCommandWorkingDirectory 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) há 14 anos atrás
Dependency 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
DocTest 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code há 13 anos atrás
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. há 14 anos atrás
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs há 15 anos atrás
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. há 17 anos atrás
ExportImport 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
ExternalOBJ 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
ExternalProject 91053cdf7b ExternalProject: Add Mercurial (hg) repository support há 13 anos atrás
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
FindPackageModeMakefileTest 09ff191c3f Fix FindPackageMode test Makefile (#13314) há 13 anos atrás
FindPackageTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
ForceInclude b29eadd8f3 Map multiple /FI flags for VS < 10 (#11649) há 15 anos atrás
Fortran 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
FortranC 1ac1058272 Honor real language flags in FortranC.Flags test há 16 anos atrás
FortranOnly 5c0c635a09 Fortran: Add support for free- and fixed-form flags há 14 anos atrás
Framework 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code há 13 anos atrás
FunctionTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
GeneratorExpression 9d9f616792 Add $<CONFIG:...> boolean query generator expression há 13 anos atrás
IPO 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
IncludeDirectories cad69215fa Tests/IncludeDirectories: Files must end in a newline (#13314) há 13 anos atrás
JCTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
Java 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code há 13 anos atrás
Jump 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
LibName 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
LinkDirectory bb18790397 Test CMP0015 OLD and NEW link_directories behavior há 16 anos atrás
LinkFlags c8b13ecc38 Intel-specific workaround for LinkFlags tests há 15 anos atrás
LinkLanguage 750eb105c2 Test target link information invalidation há 16 anos atrás
LinkLine 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
LinkLineOrder 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
LinkStatic 077954d4cb Test static linking with LINK_SEARCH_START_STATIC há 14 anos atrás
LoadCommand 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
LoadCommandOneConfig 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) há 14 anos atrás
MacroTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
MakeClean 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
MathTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) há 15 anos atrás
Module c6fed68ef8 CheckTypeSize: add a test for size of struct members há 13 anos atrás
ModuleDefinition 89987c2102 Test generated module .def files há 13 anos atrás
MumpsCoverage 5b69ce49d4 Update test data to match new coverage format. há 13 anos atrás
NewlineArgs 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code há 13 anos atrás
ObjC++ 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
ObjectLibrary 94c08b368c Tests/ObjectLibrary: Do not enable CXX in subdirectories há 13 anos atrás
OutDir 6eff237c56 Fix OutDir test on HP, MinGW, and Cygwin há 16 anos atrás
OutOfBinary 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
OutOfSource 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
PerConfig 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
Plugin 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 há 16 anos atrás
PolicyScope 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
PositionIndependentTargets 9235603895 Fix PositionIndependentTargets test with clang trunk. há 13 anos atrás
PreOrder 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
PrecompiledHeader 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
Preprocess 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
Properties 84b49be8f0 Remove CMake multiline block-end command arguments há 13 anos atrás
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. há 13 anos atrás
QtAutomoc 9b32475587 automoc: add define to test which caused bug #13018 há 13 anos atrás
ReturnTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
RunCMake 09a0da7789 Revert "load_command: Deprecate and document pending removal" há 13 anos atrás
RuntimePath 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) há 13 anos atrás
SameName 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
SetLang 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
Simple 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SimpleCOnly 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SimpleExclude 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SimpleInstall 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SimpleInstallS2 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code há 13 anos atrás
StringFileTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SubDir 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SubDirSpaces 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SubProject ce8810c4e7 ENH: preclean some warnings há 17 anos atrás
SwigTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
SystemInformation 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
TarTest 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
TargetName 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
TestDriver 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás
Testing 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) há 14 anos atrás
TryCompile 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
Tutorial 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
Unset 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
VSExternalInclude 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) há 13 anos atrás
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) há 15 anos atrás
VSResource df9577259c Add support for Visual Studio project-specific globals (#8707) há 14 anos atrás
VariableUnusedViaSet f7438ca7ac Add test for unused detection via setting it há 15 anos atrás
VariableUnusedViaUnset dee19760a7 Fix typo in VariableUnusedViaUnset test há 15 anos atrás
VariableUsage 75bda3864e Add tests for unused command line variables há 15 anos atrás
Wrapping 325214900b Fix casing of 'Qt' in docs, comments and user-visible strings. há 13 anos atrás
X11 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode há 14 anos atrás
.NoDartCoverage fa73553a59 clean up coverage some há 23 anos atrás
CMakeBuildTest.cmake.in 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CMakeInstall.cmake bce24e14b8 Avoid running CMake.Install test simultaneously with other tests há 15 anos atrás
CMakeLists.txt 05784dadc5 Merge topic 'compile-definitions-unique' há 13 anos atrás
CMakeWizardTest.cmake d8efcfc787 Increase coverage. Add test of class cmakewizard. (cmake -i 'mode') há 16 anos atrás
CTestUpdateBZR.cmake.in 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestUpdateCVS.cmake.in 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestUpdateCommon.cmake 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestUpdateGIT.cmake.in 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites há 15 anos atrás
CTestUpdateHG.cmake.in 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CTestUpdateSVN.cmake.in 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' há 15 anos atrás
EnforceConfig.cmake.in 9db3116226 Remove CMake-language block-end command arguments há 13 anos atrás
README 42a81e7119 Add stronger infrastructure for CMake-only tests há 13 anos atrás
TestInstall.sh.in 26fce5a402 ENH: Added Install test. It is enabled when the CMAKE_INSTALL_PREFIX is CMake_BINARY_DIR/InstallTest. há 22 anos atrás
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS há 15 anos atrás
test_clean.cmake.in 77543bde41 Convert CMake-language commands to lower case há 13 anos atrás

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.