David Cole c95d1baa19 Merge topic 'position-independent-targets' 13 years ago
..
Architecture 1a53fb7537 Use correct default multiple architecture values in test 14 years ago
ArgumentExpansion 729db484ef Fix ArgumentExpansion test expected results 15 years ago
Assembler b3ce4200dc Do not bother enabling C++ in Assembler test 14 years ago
BuildDepends 7eb8d9036c Provide dependency file flags to generator 14 years ago
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 years ago
BundleTest 0037dcb6af Removed most usage of Carbon in favour of CoreFoundation 15 years ago
BundleUtilities 98d20316bd Fix BundleUtilities test failure with space in build path. 14 years ago
CFBundleTest a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 years ago
CMakeCommands 55b2aa884c Use generalized RunCMake test infrastrucure for build_command test 13 years ago
CMakeLib 8778357898 Add newline to the output. 13 years ago
CMakeOnly ee26019bd4 Add FindLibLZMA Module 13 years ago
CMakeTestAllGenerators 0baf5659c6 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators 14 years ago
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 years ago
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 years ago
CMakeTests 663832eb44 Merge topic 'test-getpropery' 13 years ago
COnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 years ago
CPackComponents 5a9e8e701e CPack: Add CPACK_NSIS_INSTALL_ROOT variable (#9148) 15 years ago
CPackComponentsForAll e20c59ae50 CPackRPM support component specific variables for spec files 14 years ago
CPackTestAllGenerators 8d94703cc2 Fix failing test. Forgot to double quote last arg to STRING. 16 years ago
CTestConfig 0b38bb4c53 Fix issue #2336 - honor the -C arg to ctest. Honor it for all stages of running -D dashboards from the command line and running ctest_configure, ctest_build and ctest_test commands in -S scripts. Also, allow a script to change it by setting the CTEST_CONFIGURATION_TYPE variable: allows for multiple configuration build/test cycles within one script. Add a new signature for the cmake command build_command that accepts CONFIGURATION as one argument. The original build_command signature is still there, but now marked as deprecated in the documentation. Of course... also add CTestConfig tests to verify that -C is honored for -D dashboards and -S scripts. 16 years ago
CTestScriptMode 7048373296 STYLE: don't load CMakeDetermineSystem and CMakeSystemSpecific directly from 16 years ago
CTestTest ed55b1b8d2 Remove unused code from CTest test suite 16 years ago
CTestTest2 2b082aa353 CTestTest2: Avoid running purify unless requested 15 years ago
CTestTestBadExe a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestChecksum a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestConfigFileInBuildDir 76ecdd8d16 CTest: Look for CTestConfig.cmake in build dir first, then source dir 14 years ago
CTestTestCostSerial a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestCrash a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestCycle a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestDepends a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestFailedSubmits a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestFailure a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestParallel a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestResourceLock a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
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 years ago
CTestTestScheduler a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestStopTime a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestSubdir a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestTimeout a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CTestTestUpload 6b6f309c5f Add the FILES keyword to ctest_upload command 14 years ago
CTestTestZeroTimeout a6a21c85ed Tests: Eliminate unnecessary files and variables. 15 years ago
CheckCompilerRelatedVariables 3b5256e19e Teach our tests about special cases for VS 11 14 years ago
CommandLineTest 1d91bc64aa Remove unused DumpDocumentation code 16 years ago
CompileCommandOutput cdc2b41cc2 Fix CompileCommandOutput test build on Windows 14 years ago
Complex 70f362305f Find_library(): allow searching for versioned shared objects 13 years ago
ComplexOneConfig 53d31c2426 complex: Remove unused option to test CMakeLib 14 years ago
Contracts bf2e385397 Tests: Update drop site value for the Trilinos contract test 14 years ago
CrossCompile 8658fcbe24 Fix TRY_RUN cross compile test to pass consistently 16 years ago
CustComDepend ce8810c4e7 ENH: preclean some warnings 17 years ago
CustomCommand 128605054a Normalize slashes of add_custom_(command|target) DEPENDS (#11973) 14 years ago
CustomCommandWorkingDirectory 88548a45fb Handle relative WORKING_DIRECTORY in add_custom_(command|target) 15 years ago
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 years ago
Dependency adb58d5e36 Honor strong intra-component target dependencies 15 years ago
DocTest ce8810c4e7 ENH: preclean some warnings 17 years ago
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 years ago
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs 15 years ago
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 years ago
ExportImport 35c48e1270 Check*.cmake: Expand imported targets in CMAKE_REQUIRED_LIBRARIES 13 years ago
ExternalOBJ b291d9e756 VS10: Fix external objects generated outside target (#13047) 13 years ago
ExternalProject e333602567 Fix MSYS CVS local test repo path format (#13001) 13 years ago
FindModulesExecuteAll ee086dd028 ENH: add a project name 17 years ago
FindPackageModeMakefileTest 0d44ce2bf4 Silence make on OpenBSD in FindPackageModeTest(#12508) 14 years ago
FindPackageTest 14b213c0ce add test for #13241: empty SIZEOF_VOIDP in write_basic_package_version_file 13 years ago
ForceInclude b29eadd8f3 Map multiple /FI flags for VS < 10 (#11649) 15 years ago
Fortran fcb2a27982 Fix and simplify Fortran test compiler compatibility check 14 years ago
FortranC 1ac1058272 Honor real language flags in FortranC.Flags test 16 years ago
FortranOnly 5c0c635a09 Fortran: Add support for free- and fixed-form flags 14 years ago
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 years ago
FunctionTest e79e412e70 VS2010: Honor PROJECT_LABEL target property (#10611) 15 years ago
IPO b4ace1cca0 Test INTERPROCEDURAL_OPTIMIZATION build feature 16 years ago
IncludeDirectories 9106b564ae Extract and use the INCLUDE_DIRECTORIES target properties. 13 years ago
JCTest 36ce9651db ENH: make it take longer 17 years ago
Java c177c8e6b8 Tests: Java tests should test UseJava.cmake 14 years ago
Jump d89e238e6c Cygwin: Fix tests to check CYGWIN instead of WIN32 15 years ago
KDE4StableBranchTest 7e53bcc115 add a test which checks that cmake can build the latest stable KDE4 (kdelibs) release 16 years ago
LibName 5ff037e894 BUG: better fix for .dll.lib problem 19 years ago
LinkDirectory bb18790397 Test CMP0015 OLD and NEW link_directories behavior 16 years ago
LinkFlags c8b13ecc38 Intel-specific workaround for LinkFlags tests 15 years ago
LinkLanguage 750eb105c2 Test target link information invalidation 16 years ago
LinkLine df1a77c225 ENH: some cleanup, condensing some tests, removing arguments that were not needed but rather were cut and paste copies etc 18 years ago
LinkLineOrder ee9f925509 ENH: remove warnings in tests 21 years ago
LinkStatic 077954d4cb Test static linking with LINK_SEARCH_START_STATIC 14 years ago
LoadCommand 1531c11168 LoadCommand test: cleanup 14 years ago
LoadCommandOneConfig d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 years ago
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) 14 years ago
MacroTest d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 years ago
MakeClean d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 years ago
MathTest ce8810c4e7 ENH: preclean some warnings 17 years ago
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) 15 years ago
Module 8de3b3d13e CheckCXXCompilerFlag test: make it a CMakeOnly test 14 years ago
ModuleDefinition 89987c2102 Test generated module .def files 13 years ago
MumpsCoverage 5b69ce49d4 Update test data to match new coverage format. 13 years ago
NewlineArgs ce8810c4e7 ENH: preclean some warnings 17 years ago
ObjC++ 2208231aac ENH: some more CMakeList cleanups 18 years ago
ObjectLibrary fb7348f644 Fix ObjectLibrary test on Watcom 13 years ago
OutDir 6eff237c56 Fix OutDir test on HP, MinGW, and Cygwin 16 years ago
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 years ago
OutOfSource 6dd410c2b9 Ninja: Add the Ninja generator 14 years ago
PerConfig bc92c84231 Merge topic 'resolve/tests-if-CYGWIN' 15 years ago
Plugin fdb3f878fe Test NO_SONAME property (#13155) 13 years ago
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 16 years ago
PolicyScope a364daf1fd Allow users to specify defaults for unset policies 15 years ago
PositionIndependentTargets bd34963002 Refactor generation of shared library flags 13 years ago
PreOrder 2208231aac ENH: some more CMakeList cleanups 18 years ago
PrecompiledHeader df847671b4 Ninja: add support for OBJECT_OUTPUTS, fix PrecompiledHeader test case 13 years ago
Preprocess 3b5256e19e Teach our tests about special cases for VS 11 14 years ago
Properties 9dbba1b464 Fix #12342: Add APPEND_STRING option to set_property() 14 years ago
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 13 years ago
QtAutomoc 9b32475587 automoc: add define to test which caused bug #13018 13 years ago
ReturnTest d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 years ago
RunCMake 8787f946b7 Merge branch 'list-empty-error' into enhance-include_external_msproject 13 years ago
RuntimePath d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests 16 years ago
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) 13 years ago
SameName ce8810c4e7 ENH: preclean some warnings 17 years ago
SetLang ce8810c4e7 ENH: preclean some warnings 17 years ago
Simple 2208231aac ENH: some more CMakeList cleanups 18 years ago
SimpleCOnly ae47302529 18 years ago
SimpleExclude ce8810c4e7 ENH: preclean some warnings 17 years ago
SimpleInstall fea3e84ee3 export(): Document undefined behavior of location properties 14 years ago
SimpleInstallS2 fea3e84ee3 export(): Document undefined behavior of location properties 14 years ago
SourceGroups a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 years ago
StringFileTest 36cb701690 allow STRING(SUBSTRING) work with length -1 as "rest of the string" 15 years ago
SubDir ce8810c4e7 ENH: preclean some warnings 17 years ago
SubDirSpaces 19cb2ca47f Disable SubDirSpaces parens with GNU Make 3.82 (#11654) 15 years ago
SubProject ce8810c4e7 ENH: preclean some warnings 17 years ago
SwigTest ce8810c4e7 ENH: preclean some warnings 17 years ago
SystemInformation 55d7aa4c44 Add platform variable for flags specific to shared libraries 13 years ago
TarTest d1513e0f0b Allow test to work on machines with umasks that do not allow files to be overwritten. 16 years ago
TargetName ce8810c4e7 ENH: preclean some warnings 17 years ago
TestDriver ce8810c4e7 ENH: preclean some warnings 17 years ago
Testing 31b0657e7d Merge topic 'custom-command-generator-expressions' 15 years ago
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 years ago
TryCompile 93c56a7040 Tests: Added test for check_prototype_definition. 14 years ago
Tutorial 1bc355b711 Use new style header generation and get rid of OBJECT_DEPENDS in tutorial 16 years ago
Unset f8bc0492e1 ENH: Create $CACHE{VAR} syntax 17 years ago
VSExternalInclude 3b5256e19e Teach our tests about special cases for VS 11 14 years ago
VSGNUFortran 1e16406dc9 CMakeAddFortranSubdirectory: Add NO_EXTERNAL_INSTALL option 14 years ago
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) 15 years ago
VSResource df9577259c Add support for Visual Studio project-specific globals (#8707) 14 years ago
VariableUnusedViaSet f7438ca7ac Add test for unused detection via setting it 15 years ago
VariableUnusedViaUnset dee19760a7 Fix typo in VariableUnusedViaUnset test 15 years ago
VariableUsage 75bda3864e Add tests for unused command line variables 15 years ago
Wrapping ce8810c4e7 ENH: preclean some warnings 17 years ago
X11 3ca9bf797c ENH: make sure tests for cpack are run correctly 16 years ago
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode 14 years ago
.NoDartCoverage fa73553a59 clean up coverage some 23 years ago
CMakeBuildTest.cmake.in 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 years ago
CMakeInstall.cmake bce24e14b8 Avoid running CMake.Install test simultaneously with other tests 15 years ago
CMakeLists.txt c95d1baa19 Merge topic 'position-independent-targets' 13 years ago
CMakeWizardTest.cmake d8efcfc787 Increase coverage. Add test of class cmakewizard. (cmake -i 'mode') 16 years ago
CTestUpdateBZR.cmake.in 11bdc2b1a1 Generalize CTest.Update* test dashboard script helpers 15 years ago
CTestUpdateCVS.cmake.in e333602567 Fix MSYS CVS local test repo path format (#13001) 13 years ago
CTestUpdateCommon.cmake 0375865a4e Fix machine-specific UpdateGIT test failures 14 years ago
CTestUpdateGIT.cmake.in e6067ca969 Merge topic 'ctest-git-flexibility' 15 years ago
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites 15 years ago
CTestUpdateHG.cmake.in d0702f8214 CTest.UpdateHG: Fix repo URL for leading slash 13 years ago
CTestUpdateSVN.cmake.in 6d79b50518 Teach CTest.UpdateSVN to detect svn add --depth before using it 14 years ago
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 15 years ago
EnforceConfig.cmake.in faf6d82bd6 Always use a configuration for CMake tests 16 years ago
README 42a81e7119 Add stronger infrastructure for CMake-only tests 13 years ago
TestInstall.sh.in 26fce5a402 ENH: Added Install test. It is enabled when the CMAKE_INSTALL_PREFIX is CMake_BINARY_DIR/InstallTest. 22 years ago
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS 15 years ago
test_clean.cmake.in 181c1eeede ENH: Add test_clean target to wipe out tests 17 years ago

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.