Brad King 60eb396f10 Export: Escape exported property values when writing CMake language files 10 years ago
..
AliasTarget b0f277db38 HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards 11 years ago
Architecture 765b46d1e1 Xcode: Fix test architecture selection for Xcode >= 5 12 years ago
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments 13 years ago
Assembler 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
BuildDepends 9660a3ccea Makefile: Fix multiple custom command outputs with one missing 10 years ago
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case 13 years ago
BundleTest d25dbc9059 Tests/BundleTest: Drop use of ChangeLog.txt 11 years ago
BundleUtilities 50e261ddb6 OSX: Warn when attempting to change runtime paths on OS X 10.5 11 years ago
CFBundleTest b189c5994d Tests: Run CFBundleTest only with valid configuration 11 years ago
CMakeCommands 0778016a0b Tests: Do not try to use invalid "ld -v" flag on Solaris 10 years ago
CMakeLib 356c26ebdf cmSystemTools: Teach RunSingleCommand to separate stdout and stderr 10 years ago
CMakeOnly 5685817874 FindHDF5: Add version support 10 years ago
CMakeTestAllGenerators 0baf5659c6 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators 14 years ago
CMakeTestMultipleConfigures 9db3116226 Remove CMake-language block-end command arguments 13 years ago
CMakeTests 332ee3e305 Tests: Fix CheckSourceTree test when build is under source (#15566) 10 years ago
COnly 9db3116226 Remove CMake-language block-end command arguments 13 years ago
CPackComponents 9db3116226 Remove CMake-language block-end command arguments 13 years ago
CPackComponentsDEB e3f522f6e4 CPack/DEB per component dependencies 10 years ago
CPackComponentsForAll 76080c32e1 CPackRPM content listing refactor 10 years ago
CPackComponentsPrefix 7c103be8de CPack: Enable DEB and RPM tests more reliably 10 years ago
CPackTestAllGenerators 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests 13 years ago
CPackWiXGenerator b633b26308 CPackWiX: Fix test to build with expected config 11 years ago
CTestBuildCommandProjectInSubdir 9f5bd180c8 Tests: Drop CMAKE_TEST_GENERATOR(|_TOOLSET) variables 11 years ago
CTestConfig d506fee81c Tests: Use -A option to pass generator platform selection 11 years ago
CTestCoverageCollectGCOV 9a544f2d98 CTestCoverageCollectGCOV: Support CTEST_CUSTOM_COVERAGE_EXCLUDE 10 years ago
CTestLimitDashJ e378ba5f39 Add CTestLimitDashJ test (#12904) 13 years ago
CTestScriptMode 9db3116226 Remove CMake-language block-end command arguments 13 years ago
CTestTest 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTest2 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestBadExe 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestBadGenerator 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestChecksum 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestConfigFileInBuildDir 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestCostSerial 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestCrash 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestCycle 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestDepends 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestEmptyBinaryDirectory 9d9f102f53 Tests: added test for ctest_empty_binary_directory() 12 years ago
CTestTestFailure 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestFdSetSize 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestLabelRegExp 887532f0f0 CTest: Fix combined inclusive/exclusive label regular expressions 11 years ago
CTestTestLaunchers 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestMissingDependsExe 7f0d4aff24 CTest: fix regressions introduced by the ctest-fix-run-serial topic 12 years ago
CTestTestParallel 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestResourceLock 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case 13 years ago
CTestTestScheduler 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestSerialInDepends ff59365f8b CTest: fix dashboard issues associated with the ctest-fix-run-serial topic 12 years ago
CTestTestSerialOrder 7f0d4aff24 CTest: fix regressions introduced by the ctest-fix-run-serial topic 12 years ago
CTestTestSkipReturnCode 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestStopTime 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestSubdir 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestTimeout 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestUpload 09ab207c66 Tests: Add generator platform support 11 years ago
CTestTestVerboseOutput 874fdd914a CTest: Output test-specific env vars in verbose mode (#15446) 10 years ago
CTestTestZeroTimeout 09ab207c66 Tests: Add generator platform support 11 years ago
CheckCompilerRelatedVariables 65624c39e3 VS14: Add Visual Studio 14 generator (#14982) 11 years ago
CoberturaCoverage 50daf239b0 CTest: Generalize Cobertura coverage format handling 11 years ago
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments 13 years ago
CompatibleInterface 6e7e881c57 Honor $<LINK_ONLY> when checking interface properties 11 years ago
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case 13 years ago
CompileDefinitions 494f6e8d5b Tests: Shorten paths in CompileDefinitions 10 years ago
CompileFeatures ecb1d5b47a Features: VS 2013 Update 3 supports initializer lists (#15494) 10 years ago
CompileOptions fbf7a92975 Makefile: Handle '#' in COMPILE_OPTIONS (#15070) 11 years ago
Complex 560b3e9f1d Tests: Remove incorrect indentation from Complex test comment 10 years ago
ComplexOneConfig 560b3e9f1d Tests: Remove incorrect indentation from Complex test comment 10 years ago
ConfigSources bb5905bb13 cmTarget: Don't allow relative paths in INTERFACE_SOURCES 11 years ago
Contracts ad330edaa2 Tests/Contracts: Submit notes with VTK build 12 years ago
CrossCompile 77543bde41 Convert CMake-language commands to lower case 13 years ago
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 years ago
CustomCommand abec4213d6 Merge topic 'fix-OBJECT_DEPENDS-after-path-normalization' 10 years ago
CustomCommandByproducts 86032ae0eb ExternalProject: Replace placeholder tokens in BYPRODUCTS 10 years ago
CustomCommandWorkingDirectory 77543bde41 Convert CMake-language commands to lower case 13 years ago
CxxDialect 60a981ea8e Features: Enable compiler extensions by default. 11 years ago
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 13 years ago
CxxSubdirC 07fc7b75ef Tests: Test using objects from a language enabled in a subdirectory (#15325) 11 years ago
DelphiCoverage 5c31c3e4eb CTest: Add code coverage parser for Pascal/Delphi 11 years ago
Dependency 4db31095e5 Fix link line order when shared libraries are de-duplicated 11 years ago
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 years ago
EmptyDepends 223850576b Watcom: Avoid prompt from wmake about dll with no exports... 13 years ago
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs 15 years ago
EmptyProperty 31bd83e9fc set_property: Do not remove a property when APPENDing nothing 12 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 60eb396f10 Export: Escape exported property values when writing CMake language files 10 years ago
ExternalOBJ 9db3116226 Remove CMake-language block-end command arguments 13 years ago
ExternalProject 124243c0eb ExternalProject: Add unit tests for GIT_SUBMODULES argument 10 years ago
ExternalProjectLocal 70c50962fb Tests: Shorten paths in ExternalProjectLocal 10 years ago
ExternalProjectSubdir e1c6df392b ExternalProject: Allow dependencies on INTERFACE libraries 10 years ago
ExternalProjectUpdate aba5cec6b2 ExternalProject: Add unit tests for UPDATE_DISCONNECTED 11 years ago
FindGSL 1b28e3b28b FindGSL: Add module to find the GNU Scientific Library 11 years ago
FindGTK2 7efef02df2 FindGTK2: Add tests for components and targets in gtk and gtkmm modules 12 years ago
FindJsonCpp a576844263 FindJsonCpp: Drop new module due to upstream jsoncpp providing package 10 years ago
FindMatlab bb2a42aeca Tests: Increasing the stability of the FindMatlab.basic_checks test 10 years ago
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments 13 years ago
FindPackageModeMakefileTest b0b4b4602f Remove .* expressions from beginning and end of MATCHES regexs 11 years ago
FindPackageTest d430cb7c36 Tests: Fix failures when running under the default install prefix (#15566) 10 years ago
ForceInclude 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
Fortran 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
FortranC 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
FortranOnly 54e900abfb CheckFortranCompilerFlag: Add test case 10 years ago
Framework 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 years ago
FunctionTest fa7d47ac5c Tests: Fix CMP0054 warnings 11 years ago
GeneratorExpression 5de63265e3 Genex: Only evaluate TARGET_OBJECTS to determine target sources. 11 years ago
GhsMulti 48004d9dbe Add a 'Green Hills MULTI' generator on Windows 10 years ago
IPO 77543bde41 Convert CMake-language commands to lower case 13 years ago
IncludeDirectories ee38062be8 IncludeDirectories: Respect SYSTEM flag when using CONFIG genex. 10 years ago
InterfaceLibrary ac14cbf017 Allow add_dependencies() on INTERFACE libraries (#15414) 10 years ago
InterfaceLinkLibraries 0400cd5dd1 Make $<LINK_ONLY> available to projects (#14751) 11 years ago
JCTest 9db3116226 Remove CMake-language block-end command arguments 13 years ago
JacocoCoverage c771f9d945 CTest: Fix Jacoco Coverage 10 years ago
Java 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 years ago
JavascriptCoverage 220e81345b CTest: Add Javascript coverage parser 11 years ago
Jump 9db3116226 Remove CMake-language block-end command arguments 13 years ago
LibName 9db3116226 Remove CMake-language block-end command arguments 13 years ago
LinkDirectory b7deca4a54 Test: Remove obsolete commented code. 11 years ago
LinkFlags 152dfdab11 Add additonal tests for the linker flags 12 years ago
LinkLanguage 750eb105c2 Test target link information invalidation 16 years ago
LinkLine 77543bde41 Convert CMake-language commands to lower case 13 years ago
LinkLineOrder 77543bde41 Convert CMake-language commands to lower case 13 years ago
LinkStatic 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
LoadCommand 5c10514059 Tests: Simplify LoadCommand tests 11 years ago
LoadCommandOneConfig 5c10514059 Tests: Simplify LoadCommand tests 11 years ago
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) 14 years ago
MacRuntimePath 09ab207c66 Tests: Add generator platform support 11 years ago
MacroTest fa7d47ac5c Tests: Fix CMP0054 warnings 11 years ago
MakeClean a247911a88 Tests: Don't read the LOCATION property from build targets. 12 years ago
MathTest 9db3116226 Remove CMake-language block-end command arguments 13 years ago
MissingInstall be0458c562 InstallRules: added new variable to disable generation of install rules 11 years ago
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) 15 years ago
Module 0de47b05f7 ExternalData: Add option to disable use of symlinks 10 years ago
ModuleDefinition 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
MumpsCoverage 6d66e396a1 CTEST: Fix MUMPS file parser and update test 11 years ago
NewlineArgs 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 years ago
ObjC++ 77543bde41 Convert CMake-language commands to lower case 13 years ago
ObjectLibrary 2c470b775a add_library: Allow arbitrary non-linked sources in OBJECT libraries 11 years ago
OutDir 9a8ab86645 Encoding: Modify tests to work using non-ascii paths. 10 years ago
OutOfBinary 77543bde41 Convert CMake-language commands to lower case 13 years ago
OutOfSource 9db3116226 Remove CMake-language block-end command arguments 13 years ago
PDBDirectoryAndName 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
PerConfig 3e84e78c3f Use a more reliable regex for extracting binary INFO strings 11 years ago
Plugin b0f277db38 HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards 11 years ago
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 16 years ago
PolicyScope 9db3116226 Remove CMake-language block-end command arguments 13 years ago
PositionIndependentTargets fe732264e9 Add the INTERFACE_LIBRARY target type. 12 years ago
PreOrder 77543bde41 Convert CMake-language commands to lower case 13 years ago
PrecompiledHeader 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
Preprocess baef72f2b3 Tests: Update Preprocess test for XL compiler limitations 10 years ago
Properties 4959f3413c cmSourceFileLocation: Collapse full path for directory comparisons. 11 years ago
PythonCoverage d0ec3a01a6 Adding support for the Python coverage.py tool. 12 years ago
Qt4And5Automoc 1fc9ecfae6 FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found. 11 years ago
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 13 years ago
Qt4Targets 17c31b8bd4 Qt4: Extend the Qt4Targets test to cover dir and target moc parameters. 11 years ago
QtAutoUicInterface 98093c45db QtAutoUic: Add INTERFACE_AUTOUIC_OPTIONS target property. 12 years ago
QtAutogen bddfe77d12 Merge topic 'qt-autogen-always-run' 10 years ago
QtAutomocNoQt a223a3b65f Automoc: Don't create automoc targets if Qt is not used (#13999) 12 years ago
ReturnTest ddac8d3d2d Fix spelling and typos (affecting binary data / module messages) 12 years ago
RunCMake 5ab7dd544e Merge topic 'fix-function-missing-end' 10 years ago
RuntimePath 9db3116226 Remove CMake-language block-end command arguments 13 years ago
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) 13 years ago
SameName 77543bde41 Convert CMake-language commands to lower case 13 years ago
SetLang 77543bde41 Convert CMake-language commands to lower case 13 years ago
Simple 9db3116226 Remove CMake-language block-end command arguments 13 years ago
SimpleCOnly 9db3116226 Remove CMake-language block-end command arguments 13 years ago
SimpleExclude 9db3116226 Remove CMake-language block-end command arguments 13 years ago
SimpleInstall c85672634c Tests: Teach SimpleInstall to use "cmake --build" 12 years ago
SimpleInstallS2 c85672634c Tests: Teach SimpleInstall to use "cmake --build" 12 years ago
SourceFileProperty b7d760aea2 test: test source file properties with case-insensitivity 11 years ago
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 years ago
SourcesProperty bb5905bb13 cmTarget: Don't allow relative paths in INTERFACE_SOURCES 11 years ago
StagingPrefix 09ab207c66 Tests: Add generator platform support 11 years ago
StringFileTest 197a026cfb Fix failing StringFileTest when using unicode characters. 11 years ago
SubDir 9db3116226 Remove CMake-language block-end command arguments 13 years ago
SubDirSpaces 3a71d34cf3 Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM where sufficient 11 years ago
SubProject 790e167718 VS: Fix subproject .sln dependencies on custom targets 11 years ago
SwigTest 9db3116226 Remove CMake-language block-end command arguments 13 years ago
SystemInformation dd043c3f21 Features: Add support for C++14 features. 11 years ago
TargetName 9db3116226 Remove CMake-language block-end command arguments 13 years ago
TestDriver 77543bde41 Convert CMake-language commands to lower case 13 years ago
Testing 9db3116226 Remove CMake-language block-end command arguments 13 years ago
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 years ago
TryCompile 29c3edb87a Avoid if() quoted auto-dereference 11 years ago
Tutorial 36cf8a1eb9 Tests/Tutorial: Fix when USE_MYMATH is OFF 11 years ago
Unset 261c248254 unset: Add PARENT_SCOPE option 12 years ago
VSExcludeFromDefaultBuild a6e4e73da3 VS: Add option to put INSTALL target in .sln default build 10 years ago
VSExternalInclude d506fee81c Tests: Use -A option to pass generator platform selection 11 years ago
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 13 years ago
VSMASM df3b007d7f VS: Add test for MASM support 11 years ago
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) 15 years ago
VSNsightTegra eeaa25e521 Add 'ANDROID_API_MIN' target property to set Android Target MIN API 11 years ago
VSProjectInSubdir 1ca93182ad VS: Add test for building MSBuild project in subdir 12 years ago
VSResource f4c5eade78 Ninja: Fix RC include directories regression 11 years ago
VSWinStorePhone 4775c90145 VS: Add source file property to set extra hlsl shader flags 10 years ago
VSWindowsFormsResx 01a9ab0def VS: Add support for XAML source files 10 years ago
VSXaml 01a9ab0def VS: Add support for XAML source files 10 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
Visibility 700f1c3b2b Honor visibility properties for all target types (#15556) 10 years ago
WarnUnusedCliUnused 273ecab96d CLI: Suppress the unused warning if the key value pair is cached. 12 years ago
Wrapping a247911a88 Tests: Don't read the LOCATION property from build targets. 12 years ago
X11 9db3116226 Remove CMake-language block-end command arguments 13 years ago
XCTest 87a4b8580c Tests: Add XCTest example to test Frameworks and Cocoa App Bundles 10 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
BootstrapTest.cmake 8ee6b47630 Tests: Launch BootstrapTest through cmake instead of ctest 12 years ago
CMakeBuildTest.cmake.in d506fee81c Tests: Use -A option to pass generator platform selection 11 years ago
CMakeCopyright.cmake 2bbf6bd7f8 Copyright.txt: Add test to check year range 12 years ago
CMakeInstall.cmake f2b1d653cf Tests: Launch CMake.Install test through 'cmake --build' 12 years ago
CMakeLists.txt 771f1b00dc Tests: Rename Visibility{InlinesHidden =>} 10 years ago
CTestUpdateBZR.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 years ago
CTestUpdateCVS.cmake.in 493388ce48 ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610) 10 years ago
CTestUpdateCommon.cmake 493388ce48 ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610) 10 years ago
CTestUpdateGIT.cmake.in 493388ce48 ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610) 10 years ago
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites 15 years ago
CTestUpdateHG.cmake.in 493388ce48 ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610) 10 years ago
CTestUpdateP4.cmake.in 1b54b1d5b7 ctest_update: Do not remove the p4 depot name 12 years ago
CTestUpdateSVN.cmake.in 493388ce48 ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610) 10 years ago
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 15 years ago
EnforceConfig.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 years ago
README 42a81e7119 Add stronger infrastructure for CMake-only tests 13 years ago
RegexEscapeString.cmake c9b75dcd73 Fix test failures caused by regexp-sensitive characters in the build paths 12 years ago
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS 15 years ago
test_clean.cmake.in 77543bde41 Convert CMake-language commands to lower case 13 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.