summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* Drop Visual Studio 6 generatorBrad King2016-03-091-2/+2
| | | | | | This generator has been deprecated since CMake 3.3. Remove it. Update documentation, modules, and tests to drop content specific to this generator.
* Diagnose recursive project/enable_language without crashing (#15999)Brad King2016-03-071-0/+1
| | | | | | | Calling `project()` or `enable_language()` from a toolchain file will infinitely recurse since those commands load the toolchain file. Diagnose and reject this case with an error message instead of crashing when the stack eventually overflows.
* VS: Add option to set `ConfigurationType` of a .vcxproj fileFabian Otto2016-02-261-0/+4
| | | | | | Add a VS_CONFIGURATION_TYPE target property to set this value explicitly. This is useful to build a Windows Kernel Mode Driver, for example.
* CMakeParseArguments: add a RunCMake test suiteMatthias Maennich2015-12-171-0/+1
|
* Add test for OSX/iOS Framework directory structure (#15833)Gregor Jasny2015-11-131-0/+6
|
* CPack: allow packaging of empty directoriesDomen Vrankar2015-09-281-1/+1
|
* CMP0065: Restrict the use of CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGSChuck Atkins2015-09-211-0/+7
| | | | | This new policy restricts the addition of the shared library link flags to executables only when the ENABLE_EXPORTS property is set to True.
* Tests: Add RunCMake.BuildDepends testBrad King2015-09-171-0/+1
| | | | | This will allow more granular checks than the main BuildDepends test. Start with a simple single-source C program.
* Merge topic 'find_program-NAMES_PER_DIR'Brad King2015-09-081-0/+1
|\ | | | | | | | | | | | | | | | | | | 8ea7611b find_program: Optionally consider all names in each directory fc1990c9 cmFindProgramCommand: Re-implement search using more flexible approach fdbfc9f6 Tests: Add explicit testing for find_program 907a919b cmSystemTools: Drop unused StringEndsWith method ed4de3c9 cmFindProgramCommand: Use Names member instead of passing it bf32b95e cmFindLibraryCommand: Avoid repeating search for the same name
| * Tests: Add explicit testing for find_programBrad King2015-09-021-0/+1
| | | | | | | | | | | | Previously this command was tested only implicitly as part of larger tests. Add a RunCMake.find_program test to cover find_program cases specifically and independently.
* | Merge topic 'add-link-search-static-properties-defaults'Brad King2015-09-031-0/+1
|\ \ | |/ |/| | | | | 18d7f8fb Tests: Move LINK_SEARCH_{START,END}_STATIC case to dedicated test
| * Tests: Move LINK_SEARCH_{START,END}_STATIC case to dedicated testBrad King2015-09-021-0/+1
| | | | | | | | | | | | | | | | | | | | The test case added to RunCMake.set_property by commit 675ef165 (Allow LINK_SEARCH_{START,END}_STATIC props to have default values, 2015-08-07) is not a test of the set_property command and so belongs in its own test case. Create a new RunCMake.LinkStatic test to cover cases related to static linking. While at it, simplify the LINK_SEARCH_STATIC test case to enable only C.
* | CPack generator independent testsRoman Donchenko2015-08-281-0/+1
|/ | | | | | | | CPackConfig.cmake file generation from CMake test suite. Currently it contains only a simple test without special characters in variable value. Test is not part of RunCMake/CPack as those tests are expected to be run for a specified generator.
* Merge topic 'cmState-policies'Brad King2015-08-061-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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-011-0/+1
| | | | | | | | | | If some day there are no policies checked through the makefile at generate time, this can be fixed.