Brad King d2f2a2e226 Merge branch 'C-features-Wundef' into release 11 年之前
..
AliasTarget b0f277db38 HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards 11 年之前
Architecture 765b46d1e1 Xcode: Fix test architecture selection for Xcode >= 5 12 年之前
ArgumentExpansion 9db3116226 Remove CMake-language block-end command arguments 13 年之前
Assembler f60797f75b Tests/Assembler: Drop -g when generating sample assembly source 12 年之前
BuildDepends e4114ee9e9 Tests/BuildDepends: Make 3-second delay more robust 11 年之前
BundleGeneratorTest 77543bde41 Convert CMake-language commands to lower case 13 年之前
BundleTest d25dbc9059 Tests/BundleTest: Drop use of ChangeLog.txt 12 年之前
BundleUtilities 50e261ddb6 OSX: Warn when attempting to change runtime paths on OS X 10.5 11 年之前
CFBundleTest a5aadcd46d CFBundle test: Add isysroot argument when calling Rez. 12 年之前
CMakeCommands e0890d03a4 Features: Extend concept to C language. 11 年之前
CMakeLib 218699eb28 Tests: Fix CMakeLib.testRST for relative __FILE__ 11 年之前
CMakeOnly fa7d47ac5c Tests: Fix CMP0054 warnings 11 年之前
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 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CMakeTests 5bd48ac534 Replace string(REGEX REPLACE) with string(REPLACE) where possible 11 年之前
COnly 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CPackComponents 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CPackComponentsForAll 193029c4aa cpack: For DragNDrop generator, add sysroot option when calling Rez. 12 年之前
CPackTestAllGenerators 587b7b6f5e Tests: Use the right path to CPack value for running CPack tests 13 年之前
CPackWiXGenerator b633b26308 CPackWiX: Fix test to build with expected config 12 年之前
CTestBuildCommandProjectInSubdir 9f5bd180c8 Tests: Drop CMAKE_TEST_GENERATOR(|_TOOLSET) variables 12 年之前
CTestConfig d506fee81c Tests: Use -A option to pass generator platform selection 11 年之前
CTestLimitDashJ e378ba5f39 Add CTestLimitDashJ test (#12904) 13 年之前
CTestScriptMode 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CTestTest 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTest2 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestBadExe 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestBadGenerator 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestChecksum 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestConfigFileInBuildDir 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestCostSerial 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestCrash 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestCycle 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestDepends 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestEmptyBinaryDirectory 9d9f102f53 Tests: added test for ctest_empty_binary_directory() 12 年之前
CTestTestFailedSubmits 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestFailure 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestFdSetSize 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestLabelRegExp 887532f0f0 CTest: Fix combined inclusive/exclusive label regular expressions 11 年之前
CTestTestLaunchers 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestMemcheck 7345a1f71d tests: Add a test for ctest_memcheck MemorySanitizer 11 年之前
CTestTestMissingDependsExe 7f0d4aff24 CTest: fix regressions introduced by the ctest-fix-run-serial topic 12 年之前
CTestTestParallel 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestResourceLock 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestRunScript 77543bde41 Convert CMake-language commands to lower case 13 年之前
CTestTestScheduler 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestSerialInDepends ff59365f8b CTest: fix dashboard issues associated with the ctest-fix-run-serial topic 12 年之前
CTestTestSerialOrder 7f0d4aff24 CTest: fix regressions introduced by the ctest-fix-run-serial topic 12 年之前
CTestTestSkipReturnCode 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestStopTime 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestSubdir 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestTimeout 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestUpload 09ab207c66 Tests: Add generator platform support 11 年之前
CTestTestZeroTimeout 09ab207c66 Tests: Add generator platform support 11 年之前
CheckCompilerRelatedVariables 65624c39e3 VS14: Add Visual Studio 14 generator (#14982) 11 年之前
CoberturaCoverage 50daf239b0 CTest: Generalize Cobertura coverage format handling 11 年之前
CommandLineTest 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CompatibleInterface 6e7e881c57 Honor $<LINK_ONLY> when checking interface properties 11 年之前
CompileCommandOutput 77543bde41 Convert CMake-language commands to lower case 13 年之前
CompileDefinitions 3f476beaf7 Genex: Do not consider 'head' when evaluating build properties 11 年之前
CompileFeatures a3d0ae1758 Features: Fix the default C dialect for Clang and GNU. 11 年之前
CompileOptions fbf7a92975 Makefile: Handle '#' in COMPILE_OPTIONS (#15070) 11 年之前
Complex fb95f820e0 Tests: Set policies in 'complex' tests 11 年之前
ComplexOneConfig fb95f820e0 Tests: Set policies in 'complex' tests 11 年之前
ConfigSources 3676fb4963 cmTarget: Allow transitive evaluation of SOURCES property. 11 年之前
Contracts ad330edaa2 Tests/Contracts: Submit notes with VTK build 12 年之前
CrossCompile 77543bde41 Convert CMake-language commands to lower case 13 年之前
CustComDepend 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 年之前
CustomCommand c4af46b444 add_custom_command: Normalize OUTPUT and DEPENDS paths. 11 年之前
CustomCommandWorkingDirectory 77543bde41 Convert CMake-language commands to lower case 13 年之前
CxxDialect 60a981ea8e Features: Enable compiler extensions by default. 11 年之前
CxxOnly 749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929) 14 年之前
Dependency 4db31095e5 Fix link line order when shared libraries are de-duplicated 11 年之前
DoubleProject 5badf5f734 Fix the case where cmake --build failed with two project cmds in one file. 14 年之前
EmptyDepends 223850576b Watcom: Avoid prompt from wmake about dll with no exports... 13 年之前
EmptyLibrary 220c5dc45a Add test that CMake errors with empty libs 15 年之前
EmptyProperty 31bd83e9fc set_property: Do not remove a property when APPENDing nothing 12 年之前
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 09ab207c66 Tests: Add generator platform support 11 年之前
ExternalOBJ 9db3116226 Remove CMake-language block-end command arguments 13 年之前
ExternalProject ad984b60ed Tests/ExternalProject: Skip Windows hg tests with cygwin hg 11 年之前
ExternalProjectLocal 92af3664c9 Tests: split the ExternalProject test 11 年之前
ExternalProjectUpdate d506fee81c Tests: Use -A option to pass generator platform selection 11 年之前
FindGTK2 7efef02df2 FindGTK2: Add tests for components and targets in gtk and gtkmm modules 12 年之前
FindModulesExecuteAll 9db3116226 Remove CMake-language block-end command arguments 13 年之前
FindPackageModeMakefileTest b0b4b4602f Remove .* expressions from beginning and end of MATCHES regexs 11 年之前
FindPackageTest e3007c92e0 CMakePackageConfigHelpers: Add unit tests for INSTALL_PREFIX option 11 年之前
ForceInclude b29eadd8f3 Map multiple /FI flags for VS < 10 (#11649) 15 年之前
Fortran 09ab207c66 Tests: Add generator platform support 11 年之前
FortranC d506fee81c Tests: Use -A option to pass generator platform selection 11 年之前
FortranOnly a128129a86 VS: Support Intel Fortran 15 .vfproj generation (#15175) 11 年之前
Framework 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 年之前
FunctionTest fa7d47ac5c Tests: Fix CMP0054 warnings 11 年之前
GeneratorExpression 5de63265e3 Genex: Only evaluate TARGET_OBJECTS to determine target sources. 11 年之前
IPO 77543bde41 Convert CMake-language commands to lower case 13 年之前
IncludeDirectories faedd2bea9 cmTarget: Fix system include annotation propagation. 12 年之前
InterfaceLibrary affe9d56a2 Allow INTERFACE_SOURCES to specify $<TARGET_OBJECTS> (#14970) 11 年之前
InterfaceLinkLibraries 0400cd5dd1 Make $<LINK_ONLY> available to projects (#14751) 11 年之前
JCTest 9db3116226 Remove CMake-language block-end command arguments 13 年之前
JacocoCoverage 558c2190e8 CTest: Add Jacoco Coverage functionality 11 年之前
Java 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 年之前
Jump 9db3116226 Remove CMake-language block-end command arguments 13 年之前
LibName 9db3116226 Remove CMake-language block-end command arguments 13 年之前
LinkDirectory b7deca4a54 Test: Remove obsolete commented code. 12 年之前
LinkFlags 152dfdab11 Add additonal tests for the linker flags 12 年之前
LinkLanguage 750eb105c2 Test target link information invalidation 16 年之前
LinkLine 77543bde41 Convert CMake-language commands to lower case 13 年之前
LinkLineOrder 77543bde41 Convert CMake-language commands to lower case 13 年之前
LinkStatic 077954d4cb Test static linking with LINK_SEARCH_START_STATIC 15 年之前
LoadCommand 5c10514059 Tests: Simplify LoadCommand tests 11 年之前
LoadCommandOneConfig 5c10514059 Tests: Simplify LoadCommand tests 11 年之前
MFC 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213) 14 年之前
MacRuntimePath 09ab207c66 Tests: Add generator platform support 11 年之前
MacroTest fa7d47ac5c Tests: Fix CMP0054 warnings 11 年之前
MakeClean a247911a88 Tests: Don't read the LOCATION property from build targets. 12 年之前
MathTest 9db3116226 Remove CMake-language block-end command arguments 13 年之前
MissingInstall be0458c562 InstallRules: added new variable to disable generation of install rules 12 年之前
MissingSourceFile 7af41c3492 Test that missing source mentions directory (#11677) 15 年之前
Module d0af0faefb WCDH: Make the header -Wundef safe for the C language. 11 年之前
ModuleDefinition 89987c2102 Test generated module .def files 13 年之前
MumpsCoverage 6d66e396a1 CTEST: Fix MUMPS file parser and update test 11 年之前
NewlineArgs 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 年之前
ObjC++ 77543bde41 Convert CMake-language commands to lower case 13 年之前
ObjectLibrary 2c470b775a add_library: Allow arbitrary non-linked sources in OBJECT libraries 11 年之前
OutDir 6eff237c56 Fix OutDir test on HP, MinGW, and Cygwin 16 年之前
OutOfBinary 77543bde41 Convert CMake-language commands to lower case 13 年之前
OutOfSource 9db3116226 Remove CMake-language block-end command arguments 13 年之前
PDBDirectoryAndName fba51b096e MSVC: Add properties to configure compiler PDB files (#14762) 12 年之前
PerConfig 3e84e78c3f Use a more reliable regex for extracting binary INFO strings 11 年之前
Plugin b0f277db38 HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards 11 年之前
Policy0002 65a78ec5b8 Test support for OLD behavior of policy CMP0002 16 年之前
PolicyScope 9db3116226 Remove CMake-language block-end command arguments 13 年之前
PositionIndependentTargets fe732264e9 Add the INTERFACE_LIBRARY target type. 12 年之前
PreOrder 77543bde41 Convert CMake-language commands to lower case 13 年之前
PrecompiledHeader 9db3116226 Remove CMake-language block-end command arguments 13 年之前
Preprocess 8635ac2330 Tests/Preprocess: Remove unnecessary VS version tests 11 年之前
Properties 4959f3413c cmSourceFileLocation: Collapse full path for directory comparisons. 11 年之前
PythonCoverage d0ec3a01a6 Adding support for the Python coverage.py tool. 12 年之前
Qt4And5Automoc 1fc9ecfae6 FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found. 12 年之前
Qt4Deploy ab9661c1dd Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 14 年之前
Qt4Targets 17c31b8bd4 Qt4: Extend the Qt4Targets test to cover dir and target moc parameters. 11 年之前
QtAutoUicInterface 98093c45db QtAutoUic: Add INTERFACE_AUTOUIC_OPTIONS target property. 12 年之前
QtAutogen e6f0bb7b15 Merge topic 'autogen-fixes' 11 年之前
QtAutomocNoQt a223a3b65f Automoc: Don't create automoc targets if Qt is not used (#13999) 13 年之前
ReturnTest ddac8d3d2d Fix spelling and typos (affecting binary data / module messages) 12 年之前
RunCMake 0c3ddf8b65 Merge branch 'revert-definition-map-lookup' into release 11 年之前
RuntimePath 9db3116226 Remove CMake-language block-end command arguments 13 年之前
SBCS ba89e92ba6 Visual Studio: Allow setting Single Byte Character Set (#12189) 14 年之前
SameName 77543bde41 Convert CMake-language commands to lower case 13 年之前
SetLang 77543bde41 Convert CMake-language commands to lower case 13 年之前
Simple 9db3116226 Remove CMake-language block-end command arguments 13 年之前
SimpleCOnly 9db3116226 Remove CMake-language block-end command arguments 13 年之前
SimpleExclude 9db3116226 Remove CMake-language block-end command arguments 13 年之前
SimpleInstall c85672634c Tests: Teach SimpleInstall to use "cmake --build" 12 年之前
SimpleInstallS2 c85672634c Tests: Teach SimpleInstall to use "cmake --build" 12 年之前
SourceGroups 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code 13 年之前
SourcesProperty 81ad69e056 Make the SOURCES target property writable. 11 年之前
StagingPrefix 09ab207c66 Tests: Add generator platform support 11 年之前
StringFileTest fa7d47ac5c Tests: Fix CMP0054 warnings 11 年之前
SubDir 9db3116226 Remove CMake-language block-end command arguments 13 年之前
SubDirSpaces 3a71d34cf3 Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM where sufficient 11 年之前
SubProject 790e167718 VS: Fix subproject .sln dependencies on custom targets 11 年之前
SwigTest 9db3116226 Remove CMake-language block-end command arguments 13 年之前
SystemInformation dd043c3f21 Features: Add support for C++14 features. 11 年之前
TarTest 9db3116226 Remove CMake-language block-end command arguments 13 年之前
TargetName 9db3116226 Remove CMake-language block-end command arguments 13 年之前
TestDriver 77543bde41 Convert CMake-language commands to lower case 13 年之前
Testing 9db3116226 Remove CMake-language block-end command arguments 13 年之前
TestsWorkingDirectory a27edd8a05 Fix XCode -> Xcode typos, notably in man page (#12231) 14 年之前
TryCompile f6024ef420 Merge topic 'try_compile-COPY_FILE_ERROR' 12 年之前
Tutorial a247911a88 Tests: Don't read the LOCATION property from build targets. 12 年之前
Unset 261c248254 unset: Add PARENT_SCOPE option 12 年之前
VSExcludeFromDefaultBuild b777272b0b Add tests for EXCLUDE_FROM_DEFAULT_BUILD 13 年之前
VSExternalInclude d506fee81c Tests: Use -A option to pass generator platform selection 11 年之前
VSGNUFortran 307d45eaf4 Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 13 年之前
VSMASM df3b007d7f VS: Add test for MASM support 11 年之前
VSMidl e33cbda5c4 VSMidl Test: Use correct include_directories with VS6 (#11461) 15 年之前
VSNsightTegra 178f56a579 VS: Fix Tegra-Android platform linking of libraries by name 11 年之前
VSProjectInSubdir 1ca93182ad VS: Add test for building MSBuild project in subdir 12 年之前
VSResource f4c5eade78 Ninja: Fix RC include directories regression 11 年之前
VSWinStorePhone 39fefde25d VS: Add test case for Windows Phone and Windows Store 11 年之前
VSWindowsFormsResx 6c9712c47b VS: Add Resx configuration to the vcxproj file 12 年之前
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 年之前
VisibilityInlinesHidden efdcebddbd VisibilityInlinesHidden: only apply -fvisibility-inlines-hidden to C++ sources 12 年之前
WarnUnusedCliUnused 273ecab96d CLI: Suppress the unused warning if the key value pair is cached. 12 年之前
Wrapping a247911a88 Tests: Don't read the LOCATION property from build targets. 12 年之前
X11 9db3116226 Remove CMake-language block-end command arguments 13 年之前
iOSNavApp 64c9b318bf Xcode: Add test to demonstrate iOS project in Xcode 14 年之前
.NoDartCoverage fa73553a59 clean up coverage some 23 年之前
BootstrapTest.cmake 8ee6b47630 Tests: Launch BootstrapTest through cmake instead of ctest 12 年之前
CMakeBuildTest.cmake.in d506fee81c Tests: Use -A option to pass generator platform selection 11 年之前
CMakeCopyright.cmake 2bbf6bd7f8 Copyright.txt: Add test to check year range 12 年之前
CMakeInstall.cmake f2b1d653cf Tests: Launch CMake.Install test through 'cmake --build' 12 年之前
CMakeLists.txt 36bb100e2b Fix the test for running the CxxDialog unit test. 11 年之前
CTestUpdateBZR.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CTestUpdateCVS.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CTestUpdateCommon.cmake 39b5df2f37 ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the version 11 年之前
CTestUpdateGIT.cmake.in 39b5df2f37 ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the version 11 年之前
CTestUpdateGIT.sh.in c3781efb28 ctest_update: Support Git upstream branch rewrites 15 年之前
CTestUpdateHG.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CTestUpdateP4.cmake.in 1b54b1d5b7 ctest_update: Do not remove the p4 depot name 12 年之前
CTestUpdateSVN.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 年之前
CheckFortran.cmake 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 15 年之前
EnforceConfig.cmake.in 9db3116226 Remove CMake-language block-end command arguments 13 年之前
README 42a81e7119 Add stronger infrastructure for CMake-only tests 14 年之前
RegexEscapeString.cmake c9b75dcd73 Fix test failures caused by regexp-sensitive characters in the build paths 12 年之前
bootstrap.bat.in 5e102d5e01 Enable BootstrapTest on MSYS 15 年之前
test_clean.cmake.in 77543bde41 Convert CMake-language commands to lower case 13 年之前

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.