Brad King 3a7d1ce3ff Merge topic 'test-export-iface-genex' 13 ani în urmă
..
Architecture 1a53fb7537 Use correct default multiple architecture values in test 14 ani în urmă
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
Assembler 242f673829 Tests/Assembler: Use CMAKE_OSX_SYSROOT to generate .s file 13 ani în urmă
BuildDepends 035c29fee4 Merge topic 'link-depends-no-shared' 13 ani în urmă
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
BundleTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
BundleUtilities 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CFBundleTest a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 ani în urmă
CMakeCommands 2bee6f5ba5 Add the TARGET_DEFINED generator expression 13 ani în urmă
CMakeLib 96b66a4963 Avoid string.clear and string.push_back (#13319) 13 ani în urmă
CMakeOnly da1d9bac63 Test find_path multiarch support (#13742) 13 ani în urmă
CMakeTestAllGenerators 0baf5659c6 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators 14 ani în urmă
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 ani în urmă
CMakeTestMultipleConfigures 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CMakeTests cc676c3a08 OS X: Detect implicit linker framework search paths 13 ani în urmă
COnly 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CPackComponents 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CPackComponentsForAll 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests 13 ani în urmă
CPackTestAllGenerators 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests 13 ani în urmă
CPackWiXGenerator 85baac1503 CPack: Add a WiX Generator (#11575) 13 ani în urmă
CTestConfig 361696ae20 CTest: Add test to verify -D variable definitions work 13 ani în urmă
CTestLimitDashJ e378ba5f39 Add CTestLimitDashJ test (#12904) 13 ani în urmă
CTestScriptMode 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestTest 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTest2 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestBadExe 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestChecksum 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestConfigFileInBuildDir 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestCostSerial 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestTestCrash 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestCycle 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestDepends 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestFailedSubmits 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestFailure 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestMemcheck 995a35fe12 CTest: add a check with a quoted memory checker 13 ani în urmă
CTestTestParallel 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestResourceLock 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestScheduler 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestTestStopTime 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestTestSubdir 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestTimeout 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestUpload 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CTestTestZeroTimeout 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CheckCompilerRelatedVariables 16fa7b7395 VS: Fix MSVC_IDE definition recently broken by refactoring 13 ani în urmă
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CompileDefinitions 145a4af8d3 GenEx: Test the use of generator expressions to generate lists. 13 ani în urmă
Complex 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
ComplexOneConfig 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
Contracts 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CrossCompile 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 ani în urmă
CustomCommand 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CustomCommandWorkingDirectory 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 ani în urmă
Dependency 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
DocTest 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 ani în urmă
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 ani în urmă
EmptyDepends 223850576b Watcom: Avoid prompt from wmake about dll with no exports... 13 ani în urmă
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs 15 ani în urmă
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 ani în urmă
ExportImport 1d74ba21f6 Test evaluation target via export for generator expressions 13 ani în urmă
ExternalOBJ 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
ExternalProject 378aa127b4 ExternalProject: Do smoke tests for Git Tutorial builds. 13 ani în urmă
ExternalProjectUpdate a41d3a40be ExternalProjectUpdateTest: Only support Git 1.6.5 and greater. 13 ani în urmă
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
FindPackageModeMakefileTest 09ff191c3f Fix FindPackageMode test Makefile (#13314) 13 ani în urmă
FindPackageTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
ForceInclude b29eadd8f3 Map multiple /FI flags for VS < 10 (#11649) 15 ani în urmă
Fortran 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
FortranC 1ac1058272 Honor real language flags in FortranC.Flags test 16 ani în urmă
FortranOnly 5c0c635a09 Fortran: Add support for free- and fixed-form flags 14 ani în urmă
Framework 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 ani în urmă
FunctionTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
GeneratorExpression b0c8f73eb6 Add the TARGET_NAME generator expression. 13 ani în urmă
IPO 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
IncludeDirectories db925e3532 Merge topic 'interface-includes-defines' 13 ani în urmă
JCTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
Java 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 ani în urmă
Jump 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
LibName 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
LinkDirectory bb18790397 Test CMP0015 OLD and NEW link_directories behavior 16 ani în urmă
LinkFlags c8b13ecc38 Intel-specific workaround for LinkFlags tests 15 ani în urmă
LinkLanguage 750eb105c2 Test target link information invalidation 16 ani în urmă
LinkLine 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
LinkLineOrder 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
LinkStatic 077954d4cb Test static linking with LINK_SEARCH_START_STATIC 15 ani în urmă
LoadCommand 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
LoadCommandOneConfig 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) 14 ani în urmă
MacroTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
MakeClean 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
MathTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) 15 ani în urmă
Module c6fed68ef8 CheckTypeSize: add a test for size of struct members 13 ani în urmă
ModuleDefinition 89987c2102 Test generated module .def files 13 ani în urmă
MumpsCoverage 5b69ce49d4 Update test data to match new coverage format. 13 ani în urmă
NewlineArgs 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 ani în urmă
ObjC++ 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
ObjectLibrary 94c08b368c Tests/ObjectLibrary: Do not enable CXX in subdirectories 13 ani în urmă
OutDir 6eff237c56 Fix OutDir test on HP, MinGW, and Cygwin 16 ani în urmă
OutOfBinary 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
OutOfSource 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
PDBDirectoryAndName 2ccca05fad Run PDBDirectoryAndName test on MSVC and Intel 13 ani în urmă
PerConfig 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
Plugin 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 16 ani în urmă
PolicyScope 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
PositionIndependentTargets 9235603895 Fix PositionIndependentTargets test with clang trunk. 13 ani în urmă
PreOrder 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
PrecompiledHeader 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
Preprocess 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
Properties 84b49be8f0 Remove CMake multiline block-end command arguments 13 ani în urmă
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 14 ani în urmă
Qt4Targets c8ee07d0ad FindQt4: Add INTERFACE includes and defines to Qt4 targets 13 ani în urmă
QtAutomoc 9b32475587 automoc: add define to test which caused bug #13018 13 ani în urmă
ReturnTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
RunCMake 3581b96caa Process the INTERFACE_PIC property from linked dependencies 13 ani în urmă
RuntimePath 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) 14 ani în urmă
SameName 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
SetLang 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
Simple 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SimpleCOnly 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SimpleExclude 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SimpleInstall 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SimpleInstallS2 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 ani în urmă
StringFileTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SubDir 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SubDirSpaces 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SubProject ce8810c4e7 ENH: preclean some warnings 18 ani în urmă
SwigTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
SystemInformation cc676c3a08 OS X: Detect implicit linker framework search paths 13 ani în urmă
TarTest 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
TargetName 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
TestDriver 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă
Testing 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 ani în urmă
TryCompile 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
Tutorial 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
Unset 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
VSExcludeFromDefaultBuild b777272b0b Add tests for EXCLUDE_FROM_DEFAULT_BUILD 13 ani în urmă
VSExternalInclude 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 13 ani în urmă
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) 15 ani în urmă
VSResource df9577259c Add support for Visual Studio project-specific globals (#8707) 14 ani în urmă
VariableUnusedViaSet f7438ca7ac Add test for unused detection via setting it 15 ani în urmă
VariableUnusedViaUnset dee19760a7 Fix typo in VariableUnusedViaUnset test 15 ani în urmă
VariableUsage 75bda3864e Add tests for unused command line variables 15 ani în urmă
Wrapping 325214900b Fix casing of 'Qt' in docs, comments and user-visible strings. 13 ani în urmă
X11 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode 14 ani în urmă
.NoDartCoverage fa73553a59 clean up coverage some 23 ani în urmă
CMakeBuildTest.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CMakeInstall.cmake bce24e14b8 Avoid running CMake.Install test simultaneously with other tests 15 ani în urmă
CMakeLists.txt fc61a7a746 Add the target_compile_definitions command. 13 ani în urmă
CMakeWizardTest.cmake d8efcfc787 Increase coverage. Add test of class cmakewizard. (cmake -i 'mode') 16 ani în urmă
CTestUpdateBZR.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestUpdateCVS.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestUpdateCommon.cmake 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestUpdateGIT.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites 15 ani în urmă
CTestUpdateHG.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CTestUpdateSVN.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 15 ani în urmă
EnforceConfig.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 ani în urmă
README 42a81e7119 Add stronger infrastructure for CMake-only tests 14 ani în urmă
TestInstall.sh.in 26fce5a402 ENH: Added Install test. It is enabled when the CMAKE_INSTALL_PREFIX is CMake_BINARY_DIR/InstallTest. 22 ani în urmă
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS 15 ani în urmă
test_clean.cmake.in 77543bde41 Convert CMake-language commands to lower case 13 ani în urmă

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.