David Cole 85f843a7b4 Merge topic 'mixed-lib-to-lib64' пре 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 733726edf6 find_library: Fix mixed lib->lib64 (non-)conversion cases (#13419) пре 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 пре 19 година
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.