summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* nmake/jom: Only warn about bad VS environment if compiler not found.James Johnston2015-08-067-0/+152
| | | | | | | nmake and jom generators no longer warn about missing INCLUDE/LIB environment variables unless the C/CXX compiler cannot be found. This is useful if the user does not want to use these generators with the Visual C++ compiler, or they do not want to enable any language.
* Merge topic 'cpack-rpm-documentation-fixes'Brad King2015-08-0611-2/+155
|\ | | | | | | | | | | | | | | | | | | 94226751 Tests/RunCMake/CPack: Add dependencies tests 105011e0 Tests/RunCMake/CPack: Bump verify result cmake version d882d477 Tests/RunCMake/CPack/DEB: Add getPackageInfo helper function 145735b7 Tests/RunCMake/CPack: Enable CXX language in tests e26f53a8 CPack/RPM: missing PACKAGE_CONFLICTS documentation 64aacb24 CPack/RPM: undocumented variables
| * Tests/RunCMake/CPack: Add dependencies testsDomen Vrankar2015-08-068-0/+143
| | | | | | | | | | Add tests for RPM and DEB package test for currently supported dependency features (requires, provides, conflicts, ...).
| * Tests/RunCMake/CPack: Bump verify result cmake versionDomen Vrankar2015-08-061-1/+1
| | | | | | | | | | Bumped version to current cmake version so that we always use latest policies.
| * Tests/RunCMake/CPack/DEB: Add getPackageInfo helper functionDomen Vrankar2015-08-061-0/+10
| | | | | | | | | | getPackageInfo helper function returns package info for provided deb package file
| * Tests/RunCMake/CPack: Enable CXX language in testsDomen Vrankar2015-08-061-1/+1
| | | | | | | | | | Enable CXX language for CPack tests so that they may compile binaries if needed.
* | Merge topic 'ninja-LINK_DEPENDS'Brad King2015-08-061-1/+1
|\ \ | | | | | | | | | | | | 43c94281 Ninja: Honor the LINK_DEPENDS target property (#14796)
| * | Ninja: Honor the LINK_DEPENDS target property (#14796)Brad King2015-08-051-1/+1
| | |
* | | Merge topic 'cmState-policies'Brad King2015-08-0611-0/+40
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 757a1f54 cmState: Move PolicyState from cmMakefile. 52dbe654 cmState: Record the end position of each directory. 65a5e0c6 cmLinkedTree: Add Clear API. 34835433 cmState: Add Type for policy scope. af0de01c cmState: Remove call stack parent tracking. 6ae8b30b cmMakefile: Move policy barriers inside cmState scopes. a5fc17b5 cmMakefile: Re-order policy entries and barriers. 0a01e6c6 cmState: Add Snapshot Type accessor. f0005bb4 Tests: Verify generate-time policy scope behavior.
| * | | Tests: Verify generate-time policy scope behavior.Stephen Kelly2015-08-0111-0/+40
| | | | | | | | | | | | | | | | | | | | If some day there are no policies checked through the makefile at generate time, this can be fixed.
* | | | Merge topic 'fix-missing-subdir-error'Brad King2015-08-0610-0/+25
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | c4d2f64f add_subdirectory: Fix error message on missing CMakeLists.txt (#15680)
| * | | add_subdirectory: Fix error message on missing CMakeLists.txt (#15680)Brad King2015-08-0410-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit v3.3.0-rc1~76^2 (cmMakefile: Handle CMP0014 before configuring the generator, 2015-05-14) accidentally left the file name "/CMakeLists.txt" in the error message. Remove it and add a test case.
* | | | UseJava: Teach add_jar to support file syntax for sourcesMarc Chevrier2015-08-042-4/+21
| |_|/ |/| |
* | | 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
| |\ \ \