summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'if-test'Brad King2015-08-0311-0/+46
|\ | | | | | | | | | | 14e49ed1 if: Add "TEST <test>" condition 623dcc85 ExternalProject: Avoid if() auto-dereference of a "TEST" variable
| * if: Add "TEST <test>" conditionMatt McCormick2015-08-0311-0/+46
| | | | | | | | | | | | | | | | if(TEST TestNameThatExists) will return true if a test with the name TestNameThatExists has been added with add_test. The syntax is similar to if(TARGET TargetName). Since use of "TEST" as an argument to if() could previously be interpreted as a non-keyword argument, add policy CMP0064 to treat it as a keyword as NEW behavior.
* | Merge topic 'update-kwsys'Brad King2015-08-031-4/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | da98b896 Tests: In CTestTest2 skip the kwsys.testProcess-10 test that leaks 129640f2 CTestCustom: Ignore kwsys.testProcess-10 for MemCheck as KWSys does d0915bc8 Merge branch 'upstream-kwsys' into update-kwsys 1feafc64 KWSys 2015-07-30 (f63febb7)
| * | Tests: In CTestTest2 skip the kwsys.testProcess-10 test that leaksBrad King2015-07-311-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This test intentionally leaks memory so KWSys excludes it from MemCheck. However, when CTestTest2 runs under our own MemCheck then valgrind may recursively check tests run by ctest_test() calls in our test.cmake script. Teach these calls to exluce testProcess-10 too. Also read the KWSys CTestCustom.cmake file so ctest_memcheck() will ignore the test too.
* | | cmake: Add -W options to control deprecation warnings and errorsMichael Scott2015-07-2918-0/+76
| |/ |/| | | | | | | | | | | | | | | | | | | Refactor the -Wdev and -Wno-dev to use a generic -W parser that follows the GCC pattern. Include support for setting CMAKE_ERROR_DEPRECATED and CMAKE_WARN_DEPRECATED via the deprecated warning. Add -Werror=dev and -Wno-error=dev options so that dev warning options are in line with deprecated warning options. Use a new CMAKE_SUPPRESS_DEVELOPER_ERRORS internal cache entry to store the above new dev options persistently. Add tests for new options and updated cmake documentation and release notes to list new options.
* | Merge topic 'trace-expand'Brad King2015-07-273-0/+6
|\ \ | | | | | | | | | | | | 594bafe5 cmake: add --trace-expand option
| * | cmake: add --trace-expand optionBen Boeckel2015-07-233-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | The --trace option is helpful, but sometimes, what you're looking for is deep under many layers of function calls and figuring out what instance of the function call you're looking at is tedious to determine (usually involving patching and message()). Instead, add a --trace-expand option to trace while expanding commands into what CMake actually sees.
* | | Merge topic 'refactor-cmMakefile-properties'Brad King2015-07-276-0/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bbb507ae cmMakefile: Move the InitializeFromParent method 6ed9c7e0 cmState: Host buildsystem properties for directories. 8f0a5d84 cmState: Fix compilation on IBM XL compiler 9644a2d1 cmAlgorithms: Add cmMakeReverseIterator. 1e77de74 cmMakefile: Don't clear buildsystem properties. c1bf1a59 CompileDefinitions: Add unit test for setting empty content.
| * | | CompileDefinitions: Add unit test for setting empty content.Stephen Kelly2015-07-226-0/+23
| |/ /
* | | Tests: Extend BuildDepends test to cover OBJECT_DEPENDSBrad King2015-07-224-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | The actual file timestamp dependency is known to not work on Visual Studio or Xcode generators. Tolerate such failure for these generators (Tests/CustomCommand already covers using OBJECT_DEPENDS to pull a custom command into a target, and that still works with these generators).
* | | Merge topic 'export-no-custom-target'Brad King2015-07-229-3/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | 7e9f908e export: Reject custom target exports earlier (#15657) 3b09398a Tests: Teach RunCMake.export to enable languages only when needed
| * | | export: Reject custom target exports earlier (#15657)Brad King2015-07-214-0/+8
| | | | | | | | | | | | | | | | | | | | Diagnose and reject custom targets given to the export() command immediately. Previously we would generate an internal error later.
| * | | Tests: Teach RunCMake.export to enable languages only when neededBrad King2015-07-215-3/+5
| |/ /
* | | Merge topic 'target-directory-properties'Brad King2015-07-222-1/+7
|\ \ \ | |_|/ |/| | | | | | | | 45c5f8ca Add SOURCE_DIR and BINARY_DIR target properties
| * | Add SOURCE_DIR and BINARY_DIR target propertiesClifford Yapp2015-07-212-1/+7
| |/ | | | | | | | | This will allow project code to recover the directory information about where a target was created.
* | Merge topic 'vs-compiler-feature-2015-update'Brad King2015-07-221-6/+0
|\ \ | |/ |/| | | | | c2d590c9 Features: Update MSVC features for VS 2015 RTM
| * Features: Update MSVC features for VS 2015 RTMBrad King2015-07-211-6/+0
| | | | | | | | | | VS 2015 RTM completed support for constexpr and attribute features. Update our feature table and test accordingly.
| * Merge branch 'fix-command-rename' into releaseBrad King2015-07-131-0/+7
| |\
| * \ Merge branch 'empty-LINK_LIBRARIES' into releaseBrad King2015-07-084-0/+14
| |\ \
| * \ \ Merge branch 'CheckCompilerFlag-do-not-use-FLAGS' into releaseBrad King2015-07-081-0/+7
| |\ \ \
* | | | | cmMakefile: Remove special handling of LINK_DIRECTORIES property.Stephen Kelly2015-07-181-3/+3
| | | | | | | | | | | | | | | | | | | | There is no need to handle it in a special way.
* | | | | Merge topic 'ctest-change-id'Brad King2015-07-175-0/+44
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 601ff0ec CTest: Optionally add a ChangeId attribute on XML Site tags
| * | | | | CTest: Optionally add a ChangeId attribute on XML Site tagsZack Galbreath2015-07-175-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add variable CTEST_CHANGE_ID to configure the setting. This allows CTest clients to give CDash information about what change is being tested so that CDash can take actions to report the results (e.g. to a pull request page).
* | | | | | Merge topic 'cpack-per-component-extra-control-file'Brad King2015-07-176-5/+64
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3e6b2ab6 CPack/DEB: component version of PACKAGE_CONTROL_EXTRA 506f6bc0 CPack/DEB: Remove duplicate string(TOUPPER) calls 32e9276a Tests/RunCMake/CPack/DEB: add verifyDebControl 47d1f118 Tests/RunCMake/CPack: found files should be preserved
| * | | | | | CPack/DEB: component version of PACKAGE_CONTROL_EXTRADomen Vrankar2015-07-154-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Component version of CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA variable.
| * | | | | | Tests/RunCMake/CPack/DEB: add verifyDebControlDomen Vrankar2015-07-151-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add verifyDebControl helper function for checking of package control files such as preinstall scripts.
| * | | | | | Tests/RunCMake/CPack: found files should be preservedDomen Vrankar2015-07-151-5/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Package file names that are found during validation should be preserved in FOUND_FILE_${NO} variables that can be later used in custom VerifyResult scripts.
* | | | | | Merge topic 'makefile-target-messages'Brad King2015-07-1511-0/+55
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f0cad193 Tests: Add test for TARGET_MESSAGES global property 1d398478 Makefile: Optionally disable target completion messages in build output d560b46f CMakeGenericSystem: Recognize Watcom WMake generator as Makefile generator
| * | | | | | Tests: Add test for TARGET_MESSAGES global propertyBrad King2015-07-1411-0/+55
| |/ / / / /
* | | | | | Merge topic 'vs-nsight-tegra-attributes'Brad King2015-07-152-1/+75
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8c0afaf4 VS: Add more Nsight Tegra generator Android property settings
| * | | | | | VS: Add more Nsight Tegra generator Android property settingsMikhail Filimonov2015-07-142-1/+75
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the Nsight Tegra project generator to add bunch of properties with the backing variables to fine-tune the generated projects. Add target properties that map to all "Configuration" PropertyGroups for each configuration: * ANDROID_ARCH * ANDROID_STL_TYPE Add target properties that map to the AntBuild section of vcxproj files: * ANDROID_ANT_ADDITIONAL_OPTIONS * ANDROID_ASSETS_DIRECTORIES * ANDROID_JAR_DEPENDENCIES * ANDROID_JAR_DIRECTORIES * ANDROID_JAVA_SOURCE_DIR * ANDROID_NATIVE_LIB_DEPENDENCIES * ANDROID_NATIVE_LIB_DIRECTORIES * ANDROID_PROCESS_MAX * ANDROID_PROGUARD * ANDROID_PROGUARD_CONFIG_PATH * ANDROID_SECURE_PROPS_PATH * ANDROID_SKIP_ANT_STEP Reviewed-by: Dmitry Polyanitsa <dpolyanitsa@nvidia.com>
* | | | | | Merge topic 'tests-no-match-full-path'Brad King2015-07-15119-285/+266
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | e5ca59b4 Tests: Move command failure cases into RunCMake infrastructure 0699e0d3 Tests: Move CTestTestConfigFileInBuildDir into RunCMake.ctest_start
| * | | | | Tests: Move command failure cases into RunCMake infrastructureBrad King2015-07-14111-204/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move failure cases from the CMake.{If,List,While,GetProperty} tests over to the RunCMake.{if,list,while,get_property} tests to use the more modern infrastructure. This also avoids using REGEX_ESCAPE_STRING to try to regex-match full paths.
| * | | | | Tests: Move CTestTestConfigFileInBuildDir into RunCMake.ctest_startBrad King2015-07-148-81/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subsume the CTestTestConfigFileInBuildDir test cases into the RunCMake.ctest_start test as new cases to avoid infrastructure duplication. This also avoids using REGEX_ESCAPE_STRING to try to regex-match full paths.
* | | | | | Merge topic 'fix-command-rename'Brad King2015-07-131-0/+7
|\ \ \ \ \ \ | |/ / / / / |/| | | | / | | |_|_|/ | |/| | | d4f032b5 cmState: Restore renamed commands on cleanup.
| * | | | cmState: Restore renamed commands on cleanup.Stephen Kelly2015-07-121-0/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit v3.3.0-rc1~196^2~7 (cmake: Simplify command clean up loop., 2015-04-12) introduced a bug that built-in commands which were renamed no longer had their original name restored when cleanup is performed between configure runs. Check for that and restore the commands with their original name. Extend the complex test for this. That test is run by ctest with the --build-two-config command line option.
| * | | Merge branch 'fortran-module-preprocessor-defs' into releaseBrad King2015-07-063-1/+8
| |\ \ \
| * \ \ \ Merge branch 'fix-target_link_libraries-wrong-dir' into releaseBrad King2015-06-256-0/+11
| |\ \ \ \
| * \ \ \ \ Merge branch 'fix-function-missing-end' into releaseBrad King2015-06-227-0/+20
| |\ \ \ \ \
* | | | | | | Add generator expression support to OUTPUT_NAME target propertyRobert Goulet2015-07-094-3/+13
| | | | | | |
* | | | | | | Merge topic 'CheckCompilerFlag-do-not-use-FLAGS'Brad King2015-07-091-0/+7
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | a639689c Check*CompilerFlag: Revert to previous method used to pass flags (#15641)
| * | | | | | Check*CompilerFlag: Revert to previous method used to pass flags (#15641)Brad King2015-07-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.3.0-rc1~397^2 (Check*CompilerFlag: Refactor method used to pass flags, 2015-02-24) these check modules pass the flags to the compiler front-end during linking as well as during compilation. This breaks checks for flags like '-x c++' that are meant only for the compilation step. Revert the change and add a test covering a compiler-only flag.
* | | | | | | Merge topic 'empty-LINK_LIBRARIES'Brad King2015-07-094-0/+14
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | 7aa9e80e set_property: Fix crash when setting LINK_LIBRARIES to nothing
| * | | | | | set_property: Fix crash when setting LINK_LIBRARIES to nothingBrad King2015-07-084-0/+14
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use a special dedicated structure to store the LINK_LIBRARIES target property. Do not try to construct a string from a NULL value. Instead leave the property structure empty when no value is given. Reported-by: Ghyslain Leclerc <ghleclerc@gmail.com>
* | | | | | Merge topic 'string-append'Brad King2015-07-085-0/+67
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2b18cdca string: add APPEND subcommand
| * | | | | | string: add APPEND subcommandDaniel Pfeifer2015-07-075-0/+67
| | | | | | |
* | | | | | | Merge topic 'add-apple-swift-language'Brad King2015-07-0819-0/+69
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bf112531 Add rudimentary support for the Apple Swift language with Xcode
| * | | | | | | Add rudimentary support for the Apple Swift language with XcodeBrad King2015-07-0619-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the `Swift` language to be enabled with the Xcode generator for Xcode >= 6.1. Reject it on other generators and with older Xcode versions. Since Apple is the only vendor implementing the language right now, the compiler id can be just `Apple`.
* | | | | | | | Merge topic 'auto_export_dll_symbols'Brad King2015-07-0812-0/+138
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f86407c Windows: Optionally generate DLL module definition files automatically 069aa93b bindexplib: Add support for "/bigobj" format objects 61bbbdcf bindexplib: Fix treatment of some symbols de70c922 bindexplib: Teach DumpFile to return errors 8ea69dfe bindexplib: Build source as part of CMakeLib 2963cb2a bindexplib: Wrap long lines 4ff09893 bindexplib: Drop code that CMake does not need 7de8276c bindexplib: Add copyright/license notice block 65086ad7 bindexplib: Import original implementation from CERN
| * | | | | | | | Windows: Optionally generate DLL module definition files automaticallyBill Hoffman2015-07-0612-0/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create target property WINDOWS_EXPORT_ALL_SYMBOLS to automatically generate a module definition file from MS-compatible .obj files and give it to the linker in order to export all symbols from the .dll part of a SHARED library.