summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Document and test CMAKE_[CURRENT_](BINARY|SOURCE)_DIR in script modeTamas Kenez2015-10-062-0/+15
|
* Tests: Fix RunCMake.CPack_* tests to use proper CMake generatorDomen Vrankar2015-10-012-45/+3
| | | | | | Use the run_cmake() function to generate the test build tree with the proper CMake generator and also to verify that it succeeds. Drop our PreTestError helper as it is no longer needed.
* Tests: Avoid OS X 10.5 limitation warning in RunCMake.CPack* testsBrad King2015-10-011-0/+2
| | | | | | | | | | | | | The DEPENDENCIES test case uses install(TARGETS) and so generates a warning: CMake Warning in CMakeLists.txt: WARNING: Target "test_prog" has runtime paths which cannot be changed during install. To change runtime paths, OS X version 10.6 or newer is required. Therefore, runtime paths will not be changed when installing. CMAKE_BUILD_WITH_INSTALL_RPATH may be used to work around this limitation. Set CMAKE_BUILD_WITH_INSTALL_RPATH to avoid the warning since we do not need to run the binaries from the build tree anyway.
* Tests: Add trailing newlines to generated sources in RunCMake.CPack_* testsBrad King2015-10-011-3/+3
| | | | This avoids compiler warnings on stderr while building them.
* CPack: allow packaging of empty directoriesDomen Vrankar2015-09-2818-2/+64
|
* Merge topic 'test-Wno-dev'Brad King2015-09-283-0/+16
|\ | | | | | | | | bc3e1e4b Tests: Add case for -Wdev and -Wno-dev with non-message() warnings (#15747)
| * Tests: Add case for -Wdev and -Wno-dev with non-message() warnings (#15747)Michael Scott2015-09-253-0/+16
| |
* | Merge topic 'genex-SHELL_PATH'Brad King2015-09-284-0/+23
|\ \ | | | | | | | | | | | | | | | ca6ba3fe Genex: Add a SHELL_PATH expression 7de868c4 Tests: Simplify GeneratorExpression check implementation
| * | Genex: Add a SHELL_PATH expressionStefan Kislinskiy2015-09-284-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some commands on Windows do not understand forward slash paths and require backslashes. In order to help projects generate shell invocations of such commands, provide a generator expression to convert paths to the shell-preferred path format for the current generator. This will allow custom commands to generate paths the same way CMake does for compiler command invocations.
* | | Merge topic 'test-RunCMake-BuildDepends-Borland'Brad King2015-09-281-1/+7
|\ \ \ | | | | | | | | | | | | | | | | 67040500 Tests: Fix RunCMake.BuildDepends filesystem delay for Borland Makefiles
| * | | Tests: Fix RunCMake.BuildDepends filesystem delay for Borland MakefilesBrad King2015-09-251-1/+7
| | | | | | | | | | | | | | | | | | | | Our 1.125s delay does not seem to be long enough to be reliable with the Borland "make" tool. Use a longer delay for Borland.
* | | | Merge topic 'revert-cpack-package-empty-dirs'Brad King2015-09-2611-36/+0
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | 4fa17553 Revert topic 'cpack-package-empty-dirs'
| * | | Revert topic 'cpack-package-empty-dirs'Brad King2015-09-2511-36/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes in commit 47b060ae (CPackDeb: allow empty directories in component packages, 2015-09-21), commit b58de9fe (CPack: allow packaging of empty directories, 2015-09-21), and commit b761e90d (CPack: remove accidental changes, 2015-09-22) regressed packaging of CMake itself. Revert the changes until they can be revised and rebased on other changes that make additional fixes.
* | | | Merge topic 'revert-cmake-W-options'Brad King2015-09-2518-76/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 2e606306 Merge branch 'improve-variable-help-formatting' into revert-cmake-W-options 81739e92 Revert topic 'cmake-W-options' (#15747)
| * \ \ \ Merge branch 'improve-variable-help-formatting' into revert-cmake-W-optionsBrad King2015-09-2262-3/+607
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve conflicts in Help/variable/CMAKE_ERROR_DEPRECATED.rst Help/variable/CMAKE_WARN_DEPRECATED.rst by integrating changes from both sides.
| * | | | | Revert topic 'cmake-W-options' (#15747)Brad King2015-09-2218-76/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes in commit c96fe0b4 (cmake: Add -W options to control deprecation warnings and errors, 2015-07-28) fail to account for -Wdev warnings produced by places in CMake other than message(). This causes a regression in which -Wno-dev fails to suppress such warnings. Revert the feature until it can be revised accordingly.
* | | | | | install: Allow generator expressions in DIRECTORY DESTINATIONRobert Goulet2015-09-244-0/+9
| |_|_|/ / |/| | | |
* | | | | Tests: Cover install(FILES) with a genex DESTINATIONBrad King2015-09-234-0/+9
| | | | |
* | | | | Merge topic 'cpack-package-empty-dirs'Brad King2015-09-231-1/+1
|\ \ \ \ \ | | |_|/ / | |/| | / | |_|_|/ |/| | | b761e90d CPack: remove accidental changes
| * | | CPack: remove accidental changesDomen Vrankar2015-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | Remove changes accidentally included in commit b58de9fe (CPack: allow packaging of empty directories, 2015-09-22).
* | | | Merge topic 'cpack-package-empty-dirs'Brad King2015-09-2212-1/+37
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | b58de9fe CPack: allow packaging of empty directories 47b060ae CPackDeb: allow empty directories in component packages
| * | | CPack: allow packaging of empty directoriesDomen Vrankar2015-09-2212-1/+37
| | | |
* | | | CMP0065: Restrict the use of CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGSChuck Atkins2015-09-2114-0/+95
| | | | | | | | | | | | | | | | | | | | This new policy restricts the addition of the shared library link flags to executables only when the ENABLE_EXPORTS property is set to True.
* | | | CMP0064: Fix recorded version of introduction to be 3.4Brad King2015-09-212-1/+11
|/ / / | | | | | | | | | | | | This policy was added for CMake 3.4 but accidentally recorded as 3.3. Fix this and update the RunCMake.CMP0064 test WARN case accordingly.
* | | Merge topic 'pkg-config-variable-function'Brad King2015-09-213-0/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | 51b83f14 FindPkgConfig: add a command to query arbitrary variables 7f7f1eec FindPkgConfig: use execute_process to strip trailing whitespace
| * | | FindPkgConfig: add a command to query arbitrary variablesBen Boeckel2015-09-213-0/+16
| | | |
* | | | Merge topic 'cpack-verbatim-variables'Brad King2015-09-215-0/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | bc2e54db Introduction of CPACK_VERBATIM_VARIABLES variable
| * | | | Introduction of CPACK_VERBATIM_VARIABLES variableRoman Donchenko2015-09-205-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If variable is set to TRUE, values of all variables prefixed with CPACK_ will be escaped so special characters such as dolar sign, quotes or foreward slash will not be lost. By default variable is treated as set to FALSE for back compatibility. The cpack_encode_variables macro is changed into a function to remove scope pollution. There should be no other effects.
* | | | | Merge topic 'fix-compatibility-mode-LOCATION'Brad King2015-09-213-0/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2514e426 CMP0026: Use compatibility codepath until configure is finished (#15748) b98f7712 cmGlobalGenerator: Add API for the configure step being finished. b5de2bd9 cmLocalGenerator: Simplify condition.
| * | | | | CMP0026: Use compatibility codepath until configure is finished (#15748)Stephen Kelly2015-09-183-0/+17
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use it instead of the similar cmMakefile API. It is necessary to know that the Configure step is completely done, not just that one particular cmMakefile is finished configuring. Prior to commit 611220f7 (cmTarget: Use reliable test for CMP0024 and CMP0026 OLD., 2015-07-25), this was determined by checking whether cmGeneratorTargets exist yet, which happens after the Configure step.
* | | | | Merge topic 'ctest-custom-output-size'Brad King2015-09-217-0/+69
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | fd47df45 CTest: Add options to limit output of passed and failed tests 6e3151f6 CTest: Document and test custom output size settings
| * | | | CTest: Add options to limit output of passed and failed testsRoman Wüger2015-09-184-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ctest command-line options: --test-output-size-passed <n> --test-output-size-failed <n> to set the amount of test output to store in Test.xml as a command-line dashboard client.
| * | | | CTest: Document and test custom output size settingsBrad King2015-09-183-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add documentation and tests for the existing CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE CTest variables.
* | | | | Merge topic 'compute-default-dialect'Brad King2015-09-181-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7235334a Project: Determine default language dialect for the compiler.
| * | | | | Project: Determine default language dialect for the compiler.Stephen Kelly2015-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the __cplusplus and __STDC_VERSION__ macros to automatically determine the default dialect for the compiler while determining its id and version.
* | | | | | Merge topic 'ms-manifest-files'Brad King2015-09-186-0/+46
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e134e53b Add support for *.manifest source files with MSVC tools da00be63 MSVC: Rewrite manifest file handling with Makefile and Ninja d488b5c9 Ninja: Always add OBJECT_DIR variable to link rules 6d620f5a VS: Add manifest tool settings to VS 8 and 9 project files
| * | | | | | Add support for *.manifest source files with MSVC toolsBrad King2015-09-176-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Classify .manifest sources separately, add dependencies on them, and pass them to the MS manifest tool to merge with linker-generated manifest files. Inspired-by: Gilles Khouzam <gillesk@microsoft.com>
* | | | | | | Merge topic 'test-RunCMake-BuildDepends'Brad King2015-09-188-1/+84
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 73a058f8 Tests: Add RunCMake.BuildDepends test 438fabf2 Tests: Teach RunCMake infrastructure to use custom check.cmake file
| * | | | | | Tests: Add RunCMake.BuildDepends testBrad King2015-09-177-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow more granular checks than the main BuildDepends test. Start with a simple single-source C program.
| * | | | | | Tests: Teach RunCMake infrastructure to use custom check.cmake fileBrad King2015-09-171-1/+5
| | | | | | |
* | | | | | | Merge topic 'test-RunCMake-exclude-more-output'Brad King2015-09-181-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / | | | | / / / | |_|_|/ / / |/| | | | | | | | | | | f38625be Tests: Teach RunCMake to tolerate 'Bullseye Testing' lines in test output 1a75a966 Tests: Teach RunCMake to tolerate 'Time Machine' lines in test output
| * | | | | Tests: Teach RunCMake to tolerate 'Bullseye Testing' lines in test outputBrad King2015-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When testing under Bullseye coverage, some tests get lines on stderr of the form: ... Bullseye Testing Technology ... Remove such lines from output before matching because they are not representative of the actual test output.
| * | | | | Tests: Teach RunCMake to tolerate 'Time Machine' lines in test outputBrad King2015-09-171-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some OS X machines some tests get lines on stderr of the form: ... attempting to exclude an item from Time Machine by path ... produced by the system. Remove such lines from output before matching because they are not representative of the actual test output.
* | | | | Merge topic 'cpack-deb-fakeroot-removal'Brad King2015-09-175-11/+49
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | becb14c9 CPack/DEB: test preserve extra config file permissions 7044e8ee CPackDeb: use of libarchive and removal of fakeroot 415405a3 cmArchiveWrite: control user/group, permissions and recursive file adding 4f2ff601 Tests: Make RunCMake.CPack error messages more readable 81b748ae cmGeneratedFileStream: Fix spelling in comment
| * | | | CPack/DEB: test preserve extra config file permissionsDomen Vrankar2015-09-173-5/+42
| | | | |
| * | | | Tests: Make RunCMake.CPack error messages more readableRaffi Enficiaud2015-09-173-6/+7
| | | | |
* | | | | Merge topic 'test-search-ordering'Brad King2015-09-165-0/+12
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | 7a6e5f06 Tests: Cover find_program when the environment duplicate some HINTS 40122975 Merge branch 'fix-bad-search-ordering' into test-search-ordering 02440154 find_*: Fix search order when the environment duplicates some HINTS
| * | | | Tests: Cover find_program when the environment duplicate some HINTSBrad King2015-09-155-0/+12
| | | | | | | | | | | | | | | | | | | | Reported-by: Marc CHEVRIER <marc.chevrier@sap.com>
* | | | | Tests: Cover set_property for buildsystem directory propertiesBrad King2015-09-119-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the RunCMake.set_property test with cases covering buildsystem directory properties: * COMPILE_DEFINITIONS * COMPILE_OPTIONS * INCLUDE_DIRECTORIES Also test a non-buildsystem property to document the equivalence in behavior.
* | | | | cmTarget: Only append non-empty values to buildsystem properties.Stephen Kelly2015-09-115-5/+5
| |/ / / |/| | | | | | | | | | | | | | | | | | | This is a change in behavior from CMake 3.3, but there is no semantic meaning to empty entries in buildsystem properties. This also restores behavior to that of CMake 2.8.10.