summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |/
* | Tests: Move command failure cases into RunCMake infrastructureBrad King2015-07-14106-0/+288
| | | | | | | | | | | | | | 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-143-0/+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 '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-0811-0/+35
|\ \ \ | | | | | | | | | | | | | | | | bf112531 Add rudimentary support for the Apple Swift language with Xcode
| * | | Add rudimentary support for the Apple Swift language with XcodeBrad King2015-07-0611-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge topic 'ExternalProject-USES_TERMINAL'Brad King2015-07-073-0/+143
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e4947639 ExternalProject: Added new USES_TERMINAL options
| * | | | | ExternalProject: Added new USES_TERMINAL optionsJames Johnston2015-07-063-0/+143
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new USES_TERMINAL option to the ExternalProject_Add_Step function. This option passes USES_TERMINAL to the underlying add_custom_command call so that the Ninja console pool is used. Also, corresponding new USES_TERMINAL_<step> options were added to the ExternalProject_Add function. Justification: if using Ninja with a CMake superbuild, it's often desirable to limit the superbuild to ONE sub-Ninja process at a time to avoid oversubscribing the CPU. Using the console pool also makes it easy to monitor the progress of the sub-Ninja process. Independent USES_TERMINAL_<step> arguments are passed to ExternalProject_Add instead of one USES_TERMINAL argument that controls everything. Users may wish to run some steps in parallel but not others (e.g. parallelize configure but not build).
* | | | | Merge topic 'refactor-cmListFileBacktrace'Brad King2015-07-0713-16/+48
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d2475bb5 cmListFileBacktrace: Implement in terms of cmState::Snapshot. 238aac23 cmListFile: Remove FilePath member from cmListFileContext. 329098a9 cmMakefile: Set the FilePath on the frame from the cmState. 91158a33 cmMakefile: Create intermediate variables for snapshot frames. 821f91d6 cmMakefile: Create a scoped context for parsing listfiles. 30d44efa cmMakefile: Access the execution list file from the cmState. 6361f680 cmState: Store execution context. 94704d75 cmState: Add GetCallStackParent method. a8e54460 cmState: Store snapshots for more different types. dbafb015 cmMakefile: Split CallStack into two pieces. 27ff19a9 cmLinkedTree: Add operator* to the iterator.
| * | | | cmMakefile: Create a scoped context for parsing listfiles.Stephen Kelly2015-07-0613-16/+48
| | |/ / | |/| | | | | | | | | | Update the Syntax tests to check for updated/improved backtraces.
* | | | CTest: Show the number of tests for each label in the summaryBetsy McPhail2015-07-062-0/+30
|/ / /
* | | Merge topic 'ctest-test-load'Brad King2015-07-0224-0/+147
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | f62d301b ctest: Optionally avoid starting tests that may exceed a given CPU load 07c550ca cmCTestMultiProcessHandler: Refactor RUN_SERIAL implementation 8bf5a80b cmSystemTools: Add StringToULong helper dffc307c Tests: Teach RunCMake infrastructure to optionally timeout
| * | | ctest: Optionally avoid starting tests that may exceed a given CPU loadBetsy McPhail2015-06-3023-0/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a TestLoad setting to CTest that can be set via a new --test-load command-line option, CTEST_TEST_LOAD variable, or TEST_LOAD option to the ctest_test command. Teach cmCTestMultiProcessHandler to measure the CPU load and avoid starting tests that may take more than the spare load currently available. The expression <current_load> + <test_processors> <= <max-load> must be true to start a new test. Co-Author: Zack Galbreath <zack.galbreath@kitware.com>
| * | | Tests: Teach RunCMake infrastructure to optionally timeoutBrad King2015-06-301-0/+7
| |/ / | | | | | | | | | | | | Add a RunCMake_TEST_TIMEOUT option that tests can set to cause RunCMake to limit the time it waits for the child process to finish.
* | | enable_language: Allow CMakeDetermine<LANG>Compiler module to fail earlyBrad King2015-06-295-0/+11
| | | | | | | | | | | | | | | If the module reports a FATAL_ERROR, skip the rest of the steps to enable the language to avoid unnecessary following error messages.
* | | Merge topic 'fix-target_link_libraries-wrong-dir'Brad King2015-06-266-0/+11
|\ \ \ | |/ / |/| | | | | | | | 30c2e1dd cmTarget: Fix diagnostic of target_link_libraries in wrong directory (#15626)
| * | cmTarget: Fix diagnostic of target_link_libraries in wrong directory (#15626)Brad King2015-06-256-0/+11
| |/ | | | | | | | | | | | | | | | | | | Since commit v3.3.0-rc1~62^2~5 (cmTarget: Store only cmListFileContext for CMP0023 handling, 2015-05-18) a call to target_link_libraries on a target that was defined in another (non-ancestor) directory crashes because no execution context is left active. Fix this by getting the execution context from the actual cmMakefile where the current target_link_libraries call takes place. Test this by verifying that such calls correctly produce an error diagnostic instead of crashing.
* | Merge topic 'fix-function-missing-end'Brad King2015-06-237-0/+20
|\ \ | | | | | | | | | | | | 5d85fb4f Fix assertion failure on unmatched function or macro
| * | Fix assertion failure on unmatched function or macroBrad King2015-06-227-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix in commit v3.2.3~3^2 (Fix assertion failure on unmatched foreach in function, 2015-05-18) broke handling of unmatched non-loop blocks because it assumed all function blockers removed during error unwinding were for loops, essentially switching the set of mishandled cases. The purpose of the loop block push/pop operations is to define a scope matching the lifetime of the loop function blockers. Since our function blockers already have the proper lifetime, simply move the push/pop operations to their constructor/destructor. Extend the RunCMake.Syntax test with a case covering this.
* | | Merge topic 'GNUInstallDirs-special-prefixes'Brad King2015-06-1912-0/+158
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 8bcec4d2 Help: Add notes for topic 'GNUInstallDirs-special-prefixes' c8bd37ec GNUInstallDirs: Add special cases for certain prefixes 5f30f175 GNUInstallDirs: Add test cases
| * | | GNUInstallDirs: Add special cases for certain prefixesAlex Turbov2015-06-183-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the module to handle SYSCONFDIR and LOCALSTATEDIR properly if CMAKE_INSTALL_PREFIX is set to `/` or `/usr` -- i.e. as expected by GNU Coding Standard (i.e. set SYSCONFDIR to `/etc` and `LOCALSTATEDIR` to `/var`). Also if CMAKE_INSTALL_PREFIX is set to /opt/pkg, `SYSCONFDIR` must be set to `/etc/opt/pkg` and `LOCALSTATEDIR` to `/var/opt/pkg` according to FHS.
| * | | GNUInstallDirs: Add test casesBrad King2015-06-1812-0/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a RunCMake.GNUInstallDirs test with cases covering various install prefixes. Hard-code the architecture information. Tolerate all platform-specific LIBDIR values. Currently the root prefix is not handled well, but verify the current behavior in the test anyway. This can be addressed with a future change. Inspired-by: Alex Turbov <i.zaufi@gmail.com>
* | | | Merge topic 'cmake--build-dir'Brad King2015-06-167-0/+28
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 90ad087a cmake: Fix --build <relative-dir> for VS generators (#15609) 7195ec92 Tests: Extend RunCMake.CommandLine to cover --build with no arg
| * | | | cmake: Fix --build <relative-dir> for VS generators (#15609)Brad King2015-06-115-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The VS >= 10 generators need to parse the .sln file from the build directory to locate targets in subdirectories. This occurs after we change the working directory to the build tree. If a relative directory other than "." was given then we would change to it and also refer to the .sln file location with it. Fix this by converting the build tree to a full path always. This will also give a more informative error message when the directory does not exist.
| * | | | Tests: Extend RunCMake.CommandLine to cover --build with no argBrad King2015-06-113-0/+4
| |/ / /
* | | | Merge topic 'cpack-rpm-and-deb-runcmake-tests'Brad King2015-06-1621-28/+392
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 5f61ed99 Tests: Move RunCMake.CPackRPM case into RunCMake.CPack_RPM test e726fc02 Tests: Add RunCMake tests for CPack{Deb,RPM}
| * | | | Tests: Move RunCMake.CPackRPM case into RunCMake.CPack_RPM testDomen Vrankar2015-06-157-28/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move PARTIALLY_RELOCATABLE_WARNING test to the new common CPack test script structure to have all tests in one place as well as additional benefit of having some more checks done during test execution.
| * | | | Tests: Add RunCMake tests for CPack{Deb,RPM}Domen Vrankar2015-06-1516-0/+386
| |/ / / | | | | | | | | | | | | Add script structure for easier addition of new CPack related tests.
* | | | Merge topic 'compiler-launcher'Brad King2015-06-1513-0/+49
|\ \ \ \ | |/ / / |/| | | | | | | | | | | 698f7597 Add options to launch the compiler through tools like ccache or distcc
| * | | Add options to launch the compiler through tools like ccache or distccBill Hoffman2015-06-1513-0/+49
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a <LANG>_COMPILER_LAUNCHER target property (initialized by a CMAKE_<LANG>_COMPILER_LAUNCHER variable) to specify a compiler launcher tool. This will supersede the CMAKE_<LANG>_COMPILER_ARG1 approach to using such tools. The old approach set CMAKE_<LANG>_COMPILER to the launcher tool while the new approach leaves this variable set to the actual compiler. Implement this property for Makefile and Ninja generators. It cannot be implemented for VS or Xcode generators as the IDE build tools offer no such hooks.
* | | CTest: Capture test stdout/stderr through one pipe (#15600)Brad King2015-06-033-0/+30
|/ / | | | | | | | | | | | | Use the KWSys Process "MergeOutput" option to give each test child process the same pipe for both stdout and stderr. This allows natural merging of stdout and stderr together instead of merging on arbitrary buffered read boundaries as before.
* | Merge topic 'FindPkgConfig_fix_extra_path'Brad King2015-06-013-0/+107
|\ \ | | | | | | | | | | | | d4c6531a FindPkgConfig: Fix extra paths for CMAKE_{FRAMEWORK,APPBUNDLE}_PATH vars
| * | FindPkgConfig: Fix extra paths for CMAKE_{FRAMEWORK,APPBUNDLE}_PATH varsDaniele E. Domenichelli2015-05-293-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | The CMAKE_FRAMEWORK_PATH and CMAKE_APPBUNDLE_PATH cache variables are supposed to be used to generate the extra paths passed to pkg-config, but instead the CMAKE_PREFIX_PATH variable is used. This bug was introduced by the refactor in commit v3.1.0-rc1~747^2~1.
* | | FindMatlab: fix reconfiguration of Matlab_ROOT_DIRRaffi Enficiaud2015-06-014-0/+59
|/ /
* | Tests: Add case for rejecting $<TARGET_FILE:...> on an INTERFACE libraryBrad King2015-05-264-0/+34
| | | | | | | | | | Add an explicit test for this existing error. We already cover it for an OBJECT library but INTERFACE libraries are not allowed either.
* | Merge topic 'extend-visibility-properties'Brad King2015-05-2611-23/+104
|\ \ | | | | | | | | | | | | | | | | | | | | | 700f1c3b Honor visibility properties for all target types (#15556) 50de5dbb Help: Format visibility property and variable documentation 771f1b00 Tests: Rename Visibility{InlinesHidden =>} ab55b3b5 Tests: Refactor RunCMake.VisibilityPreset test setup
| * | Honor visibility properties for all target types (#15556)Brad King2015-05-269-1/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The <LANG>_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN were first merged in commit v2.8.12~322 (Merge topic 'VISIBILITY_PRESET-property', 2013-06-05) but worked only for shared libraries and executables with exports. Prior to commit v3.0.0-rc1~581^2 (GenerateExportHeader: Deprecate add_compiler_export_flags function., 2013-09-02) the add_compiler_export_flags function was used to add visibility flags to all targets. The visibility flags are useful for sources in all target types because they may be later linked into shared libraries or executables with exports. Introduce policy CMP0063 to enable them for all target types while preserving compatibility with existing projects that do not expect this.
| * | Tests: Refactor RunCMake.VisibilityPreset test setupBrad King2015-05-223-22/+9
| | | | | | | | | | | | | | | | | | | | | | | | Enable languages only in the individual test case. Enable the test everywhere except Visual Studio generators (which do not implement the properties) and just set fake flags as needed to activate relevant code paths. Drop unneeded CMAKE_SUPPRESS_REGENERATION which seems to have been copied from an unrelated test when this test was created.