Brad King 19e57a48cd Merge topic 'tests-RunCMake-make-program' 11 år sedan
..
AliasTarget b0f277db38 HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards 11 år sedan
Architecture 765b46d1e1 Xcode: Fix test architecture selection for Xcode >= 5 12 år sedan
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
Assembler 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
BuildDepends 65ea5eb721 Tests: Cover rebuild with multiple custom command outputs (#15116) 11 år sedan
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case 13 år sedan
BundleTest d25dbc9059 Tests/BundleTest: Drop use of ChangeLog.txt 12 år sedan
BundleUtilities 50e261ddb6 OSX: Warn when attempting to change runtime paths on OS X 10.5 11 år sedan
CFBundleTest b189c5994d Tests: Run CFBundleTest only with valid configuration 11 år sedan
CMakeCommands e0890d03a4 Features: Extend concept to C language. 11 år sedan
CMakeLib 931e055d8c Port all cmOStringStream to std::ostringstream. 11 år sedan
CMakeOnly fa7d47ac5c Tests: Fix CMP0054 warnings 11 år sedan
CMakeTestAllGenerators 0baf5659c6 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators 14 år sedan
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 år sedan
CMakeTestMultipleConfigures 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CMakeTests 2a3e263173 Tests: Fix CheckSourceTree test for newer Git 11 år sedan
COnly 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CPackComponents 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CPackComponentsForAll 603ef7fd9d CPackRPM: Add component based packaging description and summary 11 år sedan
CPackTestAllGenerators 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests 13 år sedan
CPackWiXGenerator b633b26308 CPackWiX: Fix test to build with expected config 11 år sedan
CTestBuildCommandProjectInSubdir 9f5bd180c8 Tests: Drop CMAKE_TEST_GENERATOR(|_TOOLSET) variables 11 år sedan
CTestConfig d506fee81c Tests: Use -A option to pass generator platform selection 11 år sedan
CTestLimitDashJ e378ba5f39 Add CTestLimitDashJ test (#12904) 13 år sedan
CTestScriptMode 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CTestTest 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTest2 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestBadExe 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestBadGenerator 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestChecksum 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestConfigFileInBuildDir 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestCostSerial 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestCrash 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestCycle 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestDepends 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestEmptyBinaryDirectory 9d9f102f53 Tests: added test for ctest_empty_binary_directory() 12 år sedan
CTestTestFailedSubmits 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestFailure 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestFdSetSize 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestLabelRegExp 887532f0f0 CTest: Fix combined inclusive/exclusive label regular expressions 11 år sedan
CTestTestLaunchers 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestMissingDependsExe 7f0d4aff24 CTest: fix regressions introduced by the ctest-fix-run-serial topic 12 år sedan
CTestTestParallel 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestResourceLock 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case 13 år sedan
CTestTestScheduler 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestSerialInDepends ff59365f8b CTest: fix dashboard issues associated with the ctest-fix-run-serial topic 12 år sedan
CTestTestSerialOrder 7f0d4aff24 CTest: fix regressions introduced by the ctest-fix-run-serial topic 12 år sedan
CTestTestSkipReturnCode 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestStopTime 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestSubdir 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestTimeout 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestUpload 09ab207c66 Tests: Add generator platform support 11 år sedan
CTestTestZeroTimeout 09ab207c66 Tests: Add generator platform support 11 år sedan
CheckCompilerRelatedVariables 65624c39e3 VS14: Add Visual Studio 14 generator (#14982) 11 år sedan
CoberturaCoverage 50daf239b0 CTest: Generalize Cobertura coverage format handling 11 år sedan
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CompatibleInterface 6e7e881c57 Honor $<LINK_ONLY> when checking interface properties 11 år sedan
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case 13 år sedan
CompileDefinitions 3f476beaf7 Genex: Do not consider 'head' when evaluating build properties 11 år sedan
CompileFeatures 9f559a2608 Merge topic 'GNU-4.4-compile-features' 11 år sedan
CompileOptions fbf7a92975 Makefile: Handle '#' in COMPILE_OPTIONS (#15070) 11 år sedan
Complex 560b3e9f1d Tests: Remove incorrect indentation from Complex test comment 11 år sedan
ComplexOneConfig 560b3e9f1d Tests: Remove incorrect indentation from Complex test comment 11 år sedan
ConfigSources bb5905bb13 cmTarget: Don't allow relative paths in INTERFACE_SOURCES 11 år sedan
Contracts ad330edaa2 Tests/Contracts: Submit notes with VTK build 12 år sedan
CrossCompile 77543bde41 Convert CMake-language commands to lower case 13 år sedan
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 år sedan
CustomCommand 9a8ab86645 Encoding: Modify tests to work using non-ascii paths. 11 år sedan
CustomCommandByproducts 557aef0b94 ExternalProject: Add options to specify BYPRODUCTS (#14963) 11 år sedan
CustomCommandWorkingDirectory 77543bde41 Convert CMake-language commands to lower case 13 år sedan
CxxDialect 60a981ea8e Features: Enable compiler extensions by default. 11 år sedan
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 år sedan
CxxSubdirC 07fc7b75ef Tests: Test using objects from a language enabled in a subdirectory (#15325) 11 år sedan
DelphiCoverage 5c31c3e4eb CTest: Add code coverage parser for Pascal/Delphi 11 år sedan
Dependency 4db31095e5 Fix link line order when shared libraries are de-duplicated 11 år sedan
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 år sedan
EmptyDepends 223850576b Watcom: Avoid prompt from wmake about dll with no exports... 13 år sedan
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs 15 år sedan
EmptyProperty 31bd83e9fc set_property: Do not remove a property when APPENDing nothing 12 år sedan
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 år sedan
ExportImport d0adcccbf4 try_run: Add tests for LINK_LIBRARIES with mock libraries. 11 år sedan
ExternalOBJ 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
ExternalProject ad984b60ed Tests/ExternalProject: Skip Windows hg tests with cygwin hg 11 år sedan
ExternalProjectLocal 636f0c1d4f ExternalProject: Add TEST_EXCLUDE_FROM_MAIN option 11 år sedan
ExternalProjectUpdate aba5cec6b2 ExternalProject: Add unit tests for UPDATE_DISCONNECTED 11 år sedan
FindGSL 1b28e3b28b FindGSL: Add module to find the GNU Scientific Library 11 år sedan
FindGTK2 7efef02df2 FindGTK2: Add tests for components and targets in gtk and gtkmm modules 12 år sedan
FindJsonCpp 0aebeb9c84 FindJsonCpp: Add module to find JsonCpp package 11 år sedan
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
FindPackageModeMakefileTest b0b4b4602f Remove .* expressions from beginning and end of MATCHES regexs 11 år sedan
FindPackageTest e3007c92e0 CMakePackageConfigHelpers: Add unit tests for INSTALL_PREFIX option 11 år sedan
ForceInclude 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
Fortran 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
FortranC 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
FortranOnly b6b37e3037 Makefile: Add assembly and preprocessed targets for Fortran 11 år sedan
Framework 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 år sedan
FunctionTest fa7d47ac5c Tests: Fix CMP0054 warnings 11 år sedan
GeneratorExpression 5de63265e3 Genex: Only evaluate TARGET_OBJECTS to determine target sources. 11 år sedan
IPO 77543bde41 Convert CMake-language commands to lower case 13 år sedan
IncludeDirectories ee38062be8 IncludeDirectories: Respect SYSTEM flag when using CONFIG genex. 11 år sedan
InterfaceLibrary 672f1001c0 Genex: Fix evaluation context propagation for TARGET_OBJECTS. 11 år sedan
InterfaceLinkLibraries 0400cd5dd1 Make $<LINK_ONLY> available to projects (#14751) 11 år sedan
JCTest 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
JacocoCoverage 558c2190e8 CTest: Add Jacoco Coverage functionality 11 år sedan
Java 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 år sedan
JavascriptCoverage 220e81345b CTest: Add Javascript coverage parser 11 år sedan
Jump 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
LibName 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
LinkDirectory b7deca4a54 Test: Remove obsolete commented code. 12 år sedan
LinkFlags 152dfdab11 Add additonal tests for the linker flags 12 år sedan
LinkLanguage 750eb105c2 Test target link information invalidation 16 år sedan
LinkLine 77543bde41 Convert CMake-language commands to lower case 13 år sedan
LinkLineOrder 77543bde41 Convert CMake-language commands to lower case 13 år sedan
LinkStatic 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
LoadCommand 5c10514059 Tests: Simplify LoadCommand tests 11 år sedan
LoadCommandOneConfig 5c10514059 Tests: Simplify LoadCommand tests 11 år sedan
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) 14 år sedan
MacRuntimePath 09ab207c66 Tests: Add generator platform support 11 år sedan
MacroTest fa7d47ac5c Tests: Fix CMP0054 warnings 11 år sedan
MakeClean a247911a88 Tests: Don't read the LOCATION property from build targets. 12 år sedan
MathTest 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
MissingInstall be0458c562 InstallRules: added new variable to disable generation of install rules 12 år sedan
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) 15 år sedan
Module 3c0996c135 WCDH: Test that no C compiler features are defined for CXX compiler. 11 år sedan
ModuleDefinition 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
MumpsCoverage 6d66e396a1 CTEST: Fix MUMPS file parser and update test 11 år sedan
NewlineArgs 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 år sedan
ObjC++ 77543bde41 Convert CMake-language commands to lower case 13 år sedan
ObjectLibrary 2c470b775a add_library: Allow arbitrary non-linked sources in OBJECT libraries 11 år sedan
OutDir 9a8ab86645 Encoding: Modify tests to work using non-ascii paths. 11 år sedan
OutOfBinary 77543bde41 Convert CMake-language commands to lower case 13 år sedan
OutOfSource 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
PDBDirectoryAndName 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
PerConfig 3e84e78c3f Use a more reliable regex for extracting binary INFO strings 11 år sedan
Plugin b0f277db38 HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards 11 år sedan
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 16 år sedan
PolicyScope 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
PositionIndependentTargets fe732264e9 Add the INTERFACE_LIBRARY target type. 12 år sedan
PreOrder 77543bde41 Convert CMake-language commands to lower case 13 år sedan
PrecompiledHeader 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
Preprocess 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
Properties 4959f3413c cmSourceFileLocation: Collapse full path for directory comparisons. 11 år sedan
PythonCoverage d0ec3a01a6 Adding support for the Python coverage.py tool. 12 år sedan
Qt4And5Automoc 1fc9ecfae6 FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found. 12 år sedan
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 13 år sedan
Qt4Targets 17c31b8bd4 Qt4: Extend the Qt4Targets test to cover dir and target moc parameters. 11 år sedan
QtAutoUicInterface 98093c45db QtAutoUic: Add INTERFACE_AUTOUIC_OPTIONS target property. 12 år sedan
QtAutogen b4f62b875b Merge topic 'fix-autouic-regression' 11 år sedan
QtAutomocNoQt a223a3b65f Automoc: Don't create automoc targets if Qt is not used (#13999) 12 år sedan
ReturnTest ddac8d3d2d Fix spelling and typos (affecting binary data / module messages) 12 år sedan
RunCMake 19e57a48cd Merge topic 'tests-RunCMake-make-program' 11 år sedan
RuntimePath 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) 14 år sedan
SameName 77543bde41 Convert CMake-language commands to lower case 13 år sedan
SetLang 77543bde41 Convert CMake-language commands to lower case 13 år sedan
Simple 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
SimpleCOnly 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
SimpleExclude 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
SimpleInstall c85672634c Tests: Teach SimpleInstall to use "cmake --build" 12 år sedan
SimpleInstallS2 c85672634c Tests: Teach SimpleInstall to use "cmake --build" 12 år sedan
SourceFileProperty b7d760aea2 test: test source file properties with case-insensitivity 11 år sedan
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 år sedan
SourcesProperty bb5905bb13 cmTarget: Don't allow relative paths in INTERFACE_SOURCES 11 år sedan
StagingPrefix 09ab207c66 Tests: Add generator platform support 11 år sedan
StringFileTest 197a026cfb Fix failing StringFileTest when using unicode characters. 11 år sedan
SubDir 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
SubDirSpaces 3a71d34cf3 Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM where sufficient 11 år sedan
SubProject 790e167718 VS: Fix subproject .sln dependencies on custom targets 11 år sedan
SwigTest 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
SystemInformation dd043c3f21 Features: Add support for C++14 features. 11 år sedan
TarTest 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
TargetName 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
TestDriver 77543bde41 Convert CMake-language commands to lower case 13 år sedan
Testing 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 år sedan
TryCompile 29c3edb87a Avoid if() quoted auto-dereference 11 år sedan
Tutorial 36cf8a1eb9 Tests/Tutorial: Fix when USE_MYMATH is OFF 11 år sedan
Unset 261c248254 unset: Add PARENT_SCOPE option 12 år sedan
VSExcludeFromDefaultBuild b777272b0b Add tests for EXCLUDE_FROM_DEFAULT_BUILD 13 år sedan
VSExternalInclude d506fee81c Tests: Use -A option to pass generator platform selection 11 år sedan
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 13 år sedan
VSMASM df3b007d7f VS: Add test for MASM support 11 år sedan
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) 15 år sedan
VSNsightTegra eeaa25e521 Add 'ANDROID_API_MIN' target property to set Android Target MIN API 11 år sedan
VSProjectInSubdir 1ca93182ad VS: Add test for building MSBuild project in subdir 12 år sedan
VSResource f4c5eade78 Ninja: Fix RC include directories regression 11 år sedan
VSWinStorePhone 352f246f3e VS: Add source file property to specify Windows App deployment location 11 år sedan
VSWindowsFormsResx 6c9712c47b VS: Add Resx configuration to the vcxproj file 12 år sedan
VariableUnusedViaSet f7438ca7ac Add test for unused detection via setting it 15 år sedan
VariableUnusedViaUnset dee19760a7 Fix typo in VariableUnusedViaUnset test 15 år sedan
VariableUsage 75bda3864e Add tests for unused command line variables 15 år sedan
VisibilityInlinesHidden efdcebddbd VisibilityInlinesHidden: only apply -fvisibility-inlines-hidden to C++ sources 12 år sedan
WarnUnusedCliUnused 273ecab96d CLI: Suppress the unused warning if the key value pair is cached. 12 år sedan
Wrapping a247911a88 Tests: Don't read the LOCATION property from build targets. 12 år sedan
X11 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode 14 år sedan
.NoDartCoverage fa73553a59 clean up coverage some 23 år sedan
BootstrapTest.cmake 8ee6b47630 Tests: Launch BootstrapTest through cmake instead of ctest 12 år sedan
CMakeBuildTest.cmake.in d506fee81c Tests: Use -A option to pass generator platform selection 11 år sedan
CMakeCopyright.cmake 2bbf6bd7f8 Copyright.txt: Add test to check year range 12 år sedan
CMakeInstall.cmake f2b1d653cf Tests: Launch CMake.Install test through 'cmake --build' 12 år sedan
CMakeLists.txt 0aebeb9c84 FindJsonCpp: Add module to find JsonCpp package 11 år sedan
CTestUpdateBZR.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CTestUpdateCVS.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CTestUpdateCommon.cmake 39b5df2f37 ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the version 11 år sedan
CTestUpdateGIT.cmake.in 39b5df2f37 ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the version 11 år sedan
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites 15 år sedan
CTestUpdateHG.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CTestUpdateP4.cmake.in 1b54b1d5b7 ctest_update: Do not remove the p4 depot name 12 år sedan
CTestUpdateSVN.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 15 år sedan
EnforceConfig.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 år sedan
README 42a81e7119 Add stronger infrastructure for CMake-only tests 13 år sedan
RegexEscapeString.cmake c9b75dcd73 Fix test failures caused by regexp-sensitive characters in the build paths 12 år sedan
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS 15 år sedan
test_clean.cmake.in 77543bde41 Convert CMake-language commands to lower case 13 år sedan

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.