summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* include_guard: add tests for the featurePavel Solodovnikov2017-06-221-0/+1
|
* Merge topic 'execute_process-pipeline-results'Brad King2017-06-121-1/+3
|\ | | | | | | | | | | | | d6051ca3 execute_process: Add option to get results of every child Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !702
| * execute_process: Add option to get results of every childAdam Weisi2017-06-101-1/+3
| | | | | | | | | | Add a `RESULTS_VARIABLE` option to get the results of all children in a pipeline of one or more `COMMAND`s.
* | CUDA: Add option to run the compiler through launcher toolsBrad King2017-06-091-0/+3
|/ | | | | | | | Add a `CUDA_COMPILER_LAUNCHER` target property like those added for C and CXX by commit v3.4.0-rc1~450^2 (Add options to launch the compiler through tools like ccache or distcc, 2015-06-04). Fixes: #16953
* Tests: Fix RunCMake.GNUInstallDirs on BSD platformsBrad King2017-06-021-1/+1
| | | | | | | The `GNUInstallDirs` module has different defaults on BSD platforms. Update the test expected output to account for the difference. Fixes: #16887
* Merge topic 'separgs-native'Brad King2017-04-281-0/+1
|\ | | | | | | | | | | | | | | | | 28d83837 separgs: Use NATIVE_COMMAND where appropriate 2a207aac separgs: Add a NATIVE_COMMAND mode 81841426 separgs: Migrate tests to RunCMake tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !753
| * separgs: Migrate tests to RunCMake testsChristian Pfeiffer2017-04-261-0/+1
| |
* | Merge topic 'ctest_test-ignore-skipped-tests'Brad King2017-04-271-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | 851b6c15 cmCTestTestHandler: indicate why a test did not run 25a7f14f Help: add release notes ab8bbef9 cmCTestTestHandler: count skipped tests as disabled 202a44a4 cmCTestRunTest: do not count skipped tests as failed Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Craig Scott <craig.scott@crascit.com> Merge-request: !741
| * cmCTestTestHandler: count skipped tests as disabledBen Boeckel2017-04-241-0/+1
| | | | | | | | | | | | The `Skipped` status is basically a runtime version of the `Disabled` status (set as a property on the test by the configure step), so treat them the same.
* | Merge topic 'remove-xcode-2'Brad King2017-04-241-23/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 7373b389 Xcode: Drop support for Xcode versions below 3 eaf53849 Xcode: Compute version number earlier Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Gregor Jasny <gjasny@googlemail.com> Merge-request: !737
| * | Xcode: Drop support for Xcode versions below 3Brad King2017-04-221-23/+1
| |/
* | ninja: break unnecessary target dependenciesBen Boeckel2017-04-211-0/+4
|/ | | | | | | | | | | | | | | | | | Previously, given two libraries, X and Y where X depends on Y, all object compilations of X would require the Y library to have been linked before being compiled. This is not necessary and can instead be loosened such that object compilations of X only depend on the order-only dependencies of Y to be completed. This is to ensure that generated sources, headers, custom commands, etc. are completed before X starts to compile its objects. This should help build performance in projects with many libraries which cause a deep library dependency chain. Previously, a library at the bottom would not start compilation until after all other libraries completed, but now only its link step needs to wait and its compilation jobs can be run in parallel with other tasks. Fixes: #15555
* Drop Visual Studio 7 .NET 2003 generatorBrad King2017-04-191-2/+2
| | | | This generator has been deprecated since CMake 3.6. Remove it.
* Merge topic 'ipo-policy-CMP0069'Brad King2017-03-311-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | dfa8263f Implement interprocedural optimization for GNU compilers 1588a577 Add policy CMP0069 to enforce INTERPROCEDURAL_OPTIMIZATION a7575700 Refactoring: s,GetFeatureAsBool,IsIPOEnabled, e05835c3 CheckIPOSupported: Visual Studio and Xcode generators do not support IPO Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Brad King <brad.king@kitware.com> Reviewed-by: Nils Gladitz <nilsgladitz@gmail.com> Merge-request: !568
| * Add policy CMP0069 to enforce INTERPROCEDURAL_OPTIMIZATIONRuslan Baratov2017-03-301-0/+1
| | | | | | | | | | | | | | | | | | Previously the `INTERPROCEDURAL_OPTIMIZATION` target property was honored only for the Intel compiler on Linux and otherwise ignored. In order to add support for more compilers incrementally without changing behavior in the future, add a new policy whose NEW behavior enforces the `INTERPROCEDURAL_OPTIMIZATION` property. Add flags for supported compilers and otherwise produce an error.
* | Add 'DISABLED' test propertyBetsy McPhail2017-03-291-0/+1
|/ | | | | | When this property is set, the test is skipped and its status is automatically set to 'Not Run'. A disabled test will not be counted in the total number of tests and its completion status will be 'Disabled'.
* Tests for 'CheckIPOSupported' moduleRuslan Baratov2017-03-211-0/+1
|
* Merge topic 'implicit-dir-symlinks'Brad King2017-03-031-0/+3
|\ | | | | | | | | | | | | | | 69528fe6 Tests: Add case for RPATH exclusion of symlinks to implicit directories f3102ca8 Merge branch 'backport-implicit-dir-symlinks' into implicit-dir-symlinks c3fb650c cmOrderDirectories: Consider symlinks when checking implicit directories b1a37362 cmOrderDirectories: Factor out implicit directory check
| * Tests: Add case for RPATH exclusion of symlinks to implicit directoriesBrad King2017-03-021-0/+3
| | | | | | | | Issue: #16682
* | cmListFileLexer: bail out on seek-errorsGregor Jasny2017-02-271-1/+1
| | | | | | | | | | | | | | If we are given a FIFO, for example, we cannot seek back after trying to read a Byte-Order-Mark. Closes: #16607
* | Add policy CMP0068 separate install_name and RPATH settings on macOSClinton Stimpson2017-02-141-0/+3
|/ | | | | | | | BUILD_WITH_INSTALL_RPATH, SKIP_BUILD_RPATH, CMAKE_SKIP_RPATH and CMAKE_SKIP_INSTALL_RPATH no longer any effect on the install name of a target on macOS. Fixes: #16589
* Xcode: Refactor RunCMake.Framework test to prepare for static frameworksGregor Jasny2017-01-261-2/+1
|
* Merge topic 'FindGTK2_RunTwice'Brad King2017-01-261-0/+5
|\ | | | | | | | | | | 4bc2c16b FindGTK2: Add unit test to check variables when run twice 9702b3ee FindGTK2: Fix GTK2_LIBRARIES and GTK2_TARGETS when called twice
| * FindGTK2: Add unit test to check variables when run twiceDaniele E. Domenichelli2017-01-251-0/+5
| |
* | Merge topic 'lang_lint'Brad King2017-01-251-0/+2
|\ \ | |/ |/| | | | | 0618ddf6 Add properties to run the cpplint style checker with the compiler
| * Add properties to run the cpplint style checker with the compilerJamie Snape2017-01-231-0/+2
| | | | | | | | | | | | Create a `<LANG>_CPPLINT` target property (initialized by a `CMAKE_<LANG>_CPPLINT` variable) to specify a `cpplint` style checker command line to be run along with the compiler.
* | CPack/STGZ: minimalistic packages testDomen Vrankar2017-01-221-1/+1
|/
* CPack/Archive minimal tests for more formatsDomen Vrankar2016-12-231-1/+1
|
* try_compile: extend CMP0067 to honor language standards for CUDA.Robert Maynard2016-12-121-0/+1
|
* try_compile: Add options to specify language standardsBrad King2016-12-061-0/+12
| | | | | | | | | Give `try_compile` callers a way to control the `CXX_STANDARD`, `CXX_STANDARD_REQUIRED`, and `CXX_EXTENSIONS` properties of the generated test target (or the `C` equivalents) in order to compile a test source for a particular language standard. Issue: #16456
* execute_process: Add ENCODING option for Windows child process outputDāvis Mosāns2016-11-301-0/+3
| | | | Different applications can use different output encodings.
* Merge topic 'add-setup-projects-tests-module'Brad King2016-10-011-0/+1
|\ | | | | | | | | 130784e0 AndroidTestUtilities: Add module to help drive Android device tests
| * AndroidTestUtilities: Add module to help drive Android device testsSchuyler Kylstra2016-09-301-0/+1
| | | | | | | | | | | | Add a module to manage the data needed for the project tests. It will move the test data to the build directory and transfer necessary data to an Android device if that is enabled.
* | project: Fix support for explicit RC languageBrad King2016-09-281-1/+1
|/ | | | | | | | | | | | | | | The check added in commit v3.6.0-rc1~293^2 (Diagnose recursive project/enable_language without crashing, 2016-03-07) broke support for enabling `RC` explicitly along with other languages like `C`. The reason is that we enable all listed languages at once so the internal `enable_language(RC)` that we do while enabling `C` or `CXX` on some platforms triggers the recursion check if `RC` is explicitly listed. Ideally we should refactor things to only enable one language at a time, but for now it is simplest to just exclude `RC` from the explicit list until other languages are enabled, and then enable it. Closes: #16330
* Merge topic 'test-fixtures'Brad King2016-09-221-0/+1
|\ | | | | | | | | 73f47c9e CTest: Add support for test fixtures
| * CTest: Add support for test fixturesCraig Scott2016-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | Add new test properties: * FIXTURES_SETUP * FIXTURES_CLEANUP * FIXTURES_REQUIRED to specify the roles and dependencies of tests providing/using test fixtures.
* | Merge topic 'ctest-capture-error'Brad King2016-09-211-0/+1
|\ \ | |/ |/| | | | | | | | | adf1e32f Help: Add notes for topic 'ctest-capture-error' d328dc68 CTest: Add CAPTURE_CMAKE_ERROR val to `ctest_*` commands 9ac2e189 ctest_coverage: If gcov is not found just warn, not error
| * CTest: Add CAPTURE_CMAKE_ERROR val to `ctest_*` commandsBill Hoffman2016-09-201-0/+1
| | | | | | | | | | | | | | If a `ctest_*` command has CAPTURE_CMAKE_ERROR then any errors generated by cmake during that command will cause the value to be assigned `-1`. This will prevent a `ctest -S` script from returning non-zero unless the script explicitly calls `message(FATAL_ERROR)`.
* | Add support for creating prebuilt Android.mk filesBill Hoffman2016-09-131-0/+2
|/ | | | | | | | | | | Add options to the `install()` and `export()` commands to export the targets we build into Android.mk files that reference them as prebuilt libraries with associated usage requirements (compile definitions, include directories, link libraries). This will allow CMake-built projects to be imported into projects using the Android NDK build system. Closes: #15562
* Tests: Port GenerateExportHeader test to RunCMake infrastructureBrad King2016-09-051-0/+3
| | | | This will allow build failure cases to be added later.
* Android: Add test cases covering use of the NDK and standalone toolchainsBrad King2016-08-231-0/+21
|
* Tests: Hide errors from `ldd --help` output checkBrad King2016-07-211-1/+2
| | | | | If `--help` is not a valid option then it may print content to stderr, so we need to capture that.
* Add options to run `ldd -u -r` as a "link-what-you-use" toolBill Hoffman2016-06-171-0/+8
| | | | | | | Create a LINK_WHAT_YOU_USE target property and corresponding CMAKE_LINK_WHAT_YOU_USE variable to enable this behavior. Extend link commands by running `ldd -u -r` to detect shared libraries that are linked but not needed.
* CustomCommandGenerator: Add support for CROSSCOMPILING_EMULATORJean-Christophe Fillion-Robin2016-05-091-1/+7
| | | | | | Teach the `add_custom_command` and `add_custom_target' commands to substitute argv0 with the crosscompiling emulator if it is a target with the `CROSSCOMPILING_EMULATOR` property set.
* Add options to run clang-tidy with the compilerDaniel Pfeifer2016-04-131-0/+2
| | | | | | Create a <LANG>_CLANG_TIDY target property (initialized by a CMAKE_<LANG>_CLANG_TIDY variable) to specify a clang-tidy command line to be run along with the compiler.
* Merge topic 'vs-startup-project'Brad King2016-03-241-1/+4
|\ | | | | | | | | | | | | | | ad140c6e VS: Put ALL_BUILD in the PREDEFINED_TARGETS_FOLDER f069be05 VS: Fix default target support for targets nested inside a folder c05ea485 VS: Improve unit test macros 78ec0461 VS: Add option to choose the `.sln` startup project (#15578)
| * VS: Fix default target support for targets nested inside a folderTaylor Braun-Jones2016-03-231-1/+4
| | | | | | | | | | It's not actually the first target in a `.sln` file that is treated as the default startup project, but rather the first fully defined target.
* | Merge topic 'timeout_after_match'Brad King2016-03-221-0/+1
|\ \ | |/ |/| | | | | | | de7afd29 Help: Add notes for topic 'timeout_after_match' 993e48d0 CTest: Optionally use a secondary test timeout after matching output
| * CTest: Optionally use a secondary test timeout after matching outputZack Galbreath2016-03-221-0/+1
| | | | | | | | | | | | Allow a test N seconds to complete after we detect a matching line in its output. Activate this behavior with a new TIMEOUT_AFTER_MATCH test property.
* | Tests: Rename RunCMake.{SolutionGlobalSections => VSSolution}Brad King2016-03-181-1/+1
|/ | | | The test will be suitable for covering other `.sln` content too.