David Cole a51e1529e7 Merge topic 'ninja-fix-macosx' 13 лет назад
..
Architecture 1a53fb7537 Use correct default multiple architecture values in test 14 лет назад
ArgumentExpansion 729db484ef Fix ArgumentExpansion test expected results 15 лет назад
Assembler d6865175a7 Tests/Assembler: Assemble and link with same flags (#13314) 13 лет назад
BuildDepends 207ec5c3b1 Ninja: fix mis-matching endif() argument 13 лет назад
BundleGeneratorTest 36c228814b BUG: Fix issue #7523: Analyze output of 'hdiutil attach' to get the name of the volume that was mounted. Eliminates the need to use the -mountpoint arg of hdiutil which has a silly 90 character limit on the name of the mount point. Also add a custom volume icon to the BundleGeneratorTest to cover this code. 17 лет назад
BundleTest 0037dcb6af Removed most usage of Carbon in favour of CoreFoundation 15 лет назад
BundleUtilities 98d20316bd Fix BundleUtilities test failure with space in build path. 14 лет назад
CFBundleTest a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 лет назад
CMakeCommands 55b2aa884c Use generalized RunCMake test infrastrucure for build_command test 14 лет назад
CMakeLib 96b66a4963 Avoid string.clear and string.push_back (#13319) 13 лет назад
CMakeOnly ee26019bd4 Add FindLibLZMA Module 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 20fe27cda1 Add test to enable detecting differences between generation N and N+1 of a cmake generated build tree. Theoretically, each generation run with exactly the same arguments should be identical to the previous generation... Practically, there are differences. This is a tool to help us measure those differences. For now, the test always succeeds. Eventually, we may add the code to make it fail when there are differences. 16 лет назад
CMakeTests 663832eb44 Merge topic 'test-getpropery' 14 лет назад
COnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 лет назад
CPackComponents 5a9e8e701e CPack: Add CPACK_NSIS_INSTALL_ROOT variable (#9148) 15 лет назад
CPackComponentsForAll e20c59ae50 CPackRPM support component specific variables for spec files 14 лет назад
CPackTestAllGenerators 8d94703cc2 Fix failing test. Forgot to double quote last arg to STRING. 16 лет назад
CTestConfig 361696ae20 CTest: Add test to verify -D variable definitions work 13 лет назад
CTestScriptMode 7048373296 STYLE: don't load CMakeDetermineSystem and CMakeSystemSpecific directly from 16 лет назад
CTestTest ed55b1b8d2 Remove unused code from CTest test suite 16 лет назад
CTestTest2 2b082aa353 CTestTest2: Avoid running purify unless requested 15 лет назад
CTestTestBadExe a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestChecksum a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestConfigFileInBuildDir 76ecdd8d16 CTest: Look for CTestConfig.cmake in build dir first, then source dir 14 лет назад
CTestTestCostSerial a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestCrash a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestCycle a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestDepends a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestFailedSubmits a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestFailure a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestParallel a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestResourceLock a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestRunScript ec5a70dc91 Increase ctest RunScript line coverage. (Note: NEW_PROCESS argument is currently causing the test to fail, still investigating the reason for this, will add coverage for it later) 16 лет назад
CTestTestScheduler a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestStopTime a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestSubdir a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestTimeout a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CTestTestUpload 6b6f309c5f Add the FILES keyword to ctest_upload command 15 лет назад
CTestTestZeroTimeout a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 лет назад
CheckCompilerRelatedVariables 3b5256e19e Teach our tests about special cases for VS 11 14 лет назад
CommandLineTest 1d91bc64aa Remove unused DumpDocumentation code 16 лет назад
CompileCommandOutput cdc2b41cc2 Fix CompileCommandOutput test build on Windows 14 лет назад
Complex 70f362305f Find_library(): allow searching for versioned shared objects 14 лет назад
ComplexOneConfig 53d31c2426 complex: Remove unused option to test CMakeLib 14 лет назад
Contracts bf2e385397 Tests: Update drop site value for the Trilinos contract test 14 лет назад
CrossCompile 8658fcbe24 Fix TRY_RUN cross compile test to pass consistently 16 лет назад
CustComDepend ce8810c4e7 ENH: preclean some warnings 18 лет назад
CustomCommand d54618f36e Tests/CustomCommand: Do not use 'main' in a library 13 лет назад
CustomCommandWorkingDirectory 88548a45fb Handle relative WORKING_DIRECTORY in add_custom_(command|target) 15 лет назад
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 лет назад
Dependency adb58d5e36 Honor strong intra-component target dependencies 15 лет назад
DocTest ce8810c4e7 ENH: preclean some warnings 18 лет назад
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 лет назад
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 35c48e1270 Check*.cmake: Expand imported targets in CMAKE_REQUIRED_LIBRARIES 14 лет назад
ExternalOBJ b291d9e756 VS10: Fix external objects generated outside target (#13047) 14 лет назад
ExternalProject e333602567 Fix MSYS CVS local test repo path format (#13001) 14 лет назад
FindModulesExecuteAll ee086dd028 ENH: add a project name 17 лет назад
FindPackageModeMakefileTest 09ff191c3f Fix FindPackageMode test Makefile (#13314) 13 лет назад
FindPackageTest 14b213c0ce add test for #13241: empty SIZEOF_VOIDP in write_basic_package_version_file 13 лет назад
ForceInclude b29eadd8f3 Map multiple /FI flags for VS < 10 (#11649) 15 лет назад
Fortran fcb2a27982 Fix and simplify Fortran test compiler compatibility check 14 лет назад
FortranC 1ac1058272 Honor real language flags in FortranC.Flags test 16 лет назад
FortranOnly 5c0c635a09 Fortran: Add support for free- and fixed-form flags 14 лет назад
Framework 58be1b005f BUG: Fix issue #7046 - make sure extensionless headers and resource files work with the Xcode generator. Also fix incorrect mappings in the lastKnownFileType code. Add some extensionless files to the Framework test. 17 лет назад
FunctionTest e79e412e70 VS2010: Honor PROJECT_LABEL target property (#10611) 15 лет назад
IPO b4ace1cca0 Test INTERPROCEDURAL_OPTIMIZATION build feature 16 лет назад
IncludeDirectories cad69215fa Tests/IncludeDirectories: Files must end in a newline (#13314) 13 лет назад
JCTest 36ce9651db ENH: make it take longer 17 лет назад
Java c177c8e6b8 Tests: Java tests should test UseJava.cmake 15 лет назад
Jump d89e238e6c Cygwin: Fix tests to check CYGWIN instead of WIN32 15 лет назад
KDE4StableBranchTest 7e53bcc115 add a test which checks that cmake can build the latest stable KDE4 (kdelibs) release 16 лет назад
LibName 9b311fbee6 Ninja: add soname test case 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 df1a77c225 ENH: some cleanup, condensing some tests, removing arguments that were not needed but rather were cut and paste copies etc 18 лет назад
LinkLineOrder ee9f925509 ENH: remove warnings in tests 22 лет назад
LinkStatic 077954d4cb Test static linking with LINK_SEARCH_START_STATIC 15 лет назад
LoadCommand 1531c11168 LoadCommand test: cleanup 14 лет назад
LoadCommandOneConfig d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 лет назад
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) 14 лет назад
MacroTest d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 лет назад
MakeClean d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 лет назад
MathTest ce8810c4e7 ENH: preclean some warnings 18 лет назад
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) 15 лет назад
Module 8de3b3d13e CheckCXXCompilerFlag test: make it a CMakeOnly test 14 лет назад
ModuleDefinition 89987c2102 Test generated module .def files 14 лет назад
MumpsCoverage 5b69ce49d4 Update test data to match new coverage format. 13 лет назад
NewlineArgs ce8810c4e7 ENH: preclean some warnings 18 лет назад
ObjC++ b21cb9ff74 Tests/ObjC++: Use standard <iostream> header 13 лет назад
ObjectLibrary fb7348f644 Fix ObjectLibrary test on Watcom 14 лет назад
OutDir 6eff237c56 Fix OutDir test on HP, MinGW, and Cygwin 16 лет назад
OutOfBinary 0fe0523810 BUG: Fixed out-of-source subdirectories to work when they are also out-of-binary. Updated the OutOfSource test to test this feature. 19 лет назад
OutOfSource 6dd410c2b9 Ninja: Add the Ninja generator 14 лет назад
PerConfig bc92c84231 Merge topic 'resolve/tests-if-CYGWIN' 15 лет назад
Plugin fdb3f878fe Test NO_SONAME property (#13155) 13 лет назад
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 16 лет назад
PolicyScope a364daf1fd Allow users to specify defaults for unset policies 15 лет назад
PositionIndependentTargets 9235603895 Fix PositionIndependentTargets test with clang trunk. 13 лет назад
PreOrder 2208231aac ENH: some more CMakeList cleanups 19 лет назад
PrecompiledHeader df847671b4 Ninja: add support for OBJECT_OUTPUTS, fix PrecompiledHeader test case 14 лет назад
Preprocess 3b5256e19e Teach our tests about special cases for VS 11 14 лет назад
Properties 9dbba1b464 Fix #12342: Add APPEND_STRING option to set_property() 14 лет назад
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 14 лет назад
QtAutomoc 9b32475587 automoc: add define to test which caused bug #13018 14 лет назад
ReturnTest d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 лет назад
RunCMake 2e99949ccb include: Ignore empty string as file name (#13388) 13 лет назад
RuntimePath d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 лет назад
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) 14 лет назад
SameName ce8810c4e7 ENH: preclean some warnings 18 лет назад
SetLang ce8810c4e7 ENH: preclean some warnings 18 лет назад
Simple 2208231aac ENH: some more CMakeList cleanups 19 лет назад
SimpleCOnly ae47302529 18 лет назад
SimpleExclude ce8810c4e7 ENH: preclean some warnings 18 лет назад
SimpleInstall fea3e84ee3 export(): Document undefined behavior of location properties 14 лет назад
SimpleInstallS2 fea3e84ee3 export(): Document undefined behavior of location properties 14 лет назад
SourceGroups a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 лет назад
StringFileTest 36cb701690 allow STRING(SUBSTRING) work with length -1 as "rest of the string" 15 лет назад
SubDir ce8810c4e7 ENH: preclean some warnings 18 лет назад
SubDirSpaces 19cb2ca47f Disable SubDirSpaces parens with GNU Make 3.82 (#11654) 15 лет назад
SubProject ce8810c4e7 ENH: preclean some warnings 18 лет назад
SwigTest ce8810c4e7 ENH: preclean some warnings 18 лет назад
SystemInformation 55d7aa4c44 Add platform variable for flags specific to shared libraries 13 лет назад
TarTest d1513e0f0b Allow test to work on machines with umasks that do not allow files to be overwritten. 16 лет назад
TargetName ce8810c4e7 ENH: preclean some warnings 18 лет назад
TestDriver ce8810c4e7 ENH: preclean some warnings 18 лет назад
Testing 31b0657e7d Merge topic 'custom-command-generator-expressions' 15 лет назад
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 лет назад
TryCompile 93c56a7040 Tests: Added test for check_prototype_definition. 15 лет назад
Tutorial 1bc355b711 Use new style header generation and get rid of OBJECT_DEPENDS in tutorial 16 лет назад
Unset f8bc0492e1 ENH: Create $CACHE{VAR} syntax 17 лет назад
VSExternalInclude 3b5256e19e Teach our tests about special cases for VS 11 14 лет назад
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 ce8810c4e7 ENH: preclean some warnings 18 лет назад
X11 7fa8e532b6 Tests/X11: Add missing include <stdlib.h> for 'rand' 13 лет назад
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode 14 лет назад
.NoDartCoverage fa73553a59 clean up coverage some 23 лет назад
CMakeBuildTest.cmake.in 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 лет назад
CMakeInstall.cmake bce24e14b8 Avoid running CMake.Install test simultaneously with other tests 15 лет назад
CMakeLists.txt a51e1529e7 Merge topic 'ninja-fix-macosx' 13 лет назад
CMakeWizardTest.cmake d8efcfc787 Increase coverage. Add test of class cmakewizard. (cmake -i 'mode') 16 лет назад
CTestUpdateBZR.cmake.in 11bdc2b1a1 Generalize CTest.Update* test dashboard script helpers 15 лет назад
CTestUpdateCVS.cmake.in e333602567 Fix MSYS CVS local test repo path format (#13001) 14 лет назад
CTestUpdateCommon.cmake 0375865a4e Fix machine-specific UpdateGIT test failures 14 лет назад
CTestUpdateGIT.cmake.in 5c153c62f3 Make CTest.UpdateGIT robust to Git safecrlf on Windows 13 лет назад
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites 15 лет назад
CTestUpdateHG.cmake.in d0702f8214 CTest.UpdateHG: Fix repo URL for leading slash 14 лет назад
CTestUpdateSVN.cmake.in c785c6bd6b CTestUpdateSVN: Do not create repo directory first (#13349) 13 лет назад
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 15 лет назад
EnforceConfig.cmake.in faf6d82bd6 Always use a configuration for CMake tests 16 лет назад
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 181c1eeede ENH: Add test_clean target to wipe out tests 17 лет назад

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.