summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'test-RunCMake-refactor-ctest'Brad King2015-02-24149-120/+104
|\ | | | | | | | | | | | | | | | | | | | | | | | | e2b9e7f7 Tests: Drop unnecessary stderr matching from RunCMake.ctest_memcheck 7ce9f6e2 Tests: Teach RunCMake to tolerate 'Error kstat returned' lines in test output 69de0f7e Tests: Teach RunCMake to tolerate Guard Malloc lines in test output 57f2aa7c Tests: Teach RunCMake to tolerate BullseyeCoverage lines in test output b04c8ec3 Tests: Match curl error in RunCMake.ctest_submit FailDrop-* cases 1d82105e Tests: Rename RunCMake.{CTestMemcheck => ctest_memcheck} d7662141 Tests: Rename RunCMake.{CTestSubmit => ctest_submit} 9b50388b Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck) 76e7c22b Tests: Rename RunCMake.CTestMemcheck internals to match CTestSubmit
| * Tests: Drop unnecessary stderr matching from RunCMake.ctest_memcheckBrad King2015-02-235-15/+0
| | | | | | | | | | | | | | | | The Dummy*-stderr.txt files were needed only to match platform-specific memcheck tooling output and verify that stderr is otherwise empty. Now that the RunCMake infrastructure knows how to strip such lines before matching, we can simply drop these files and use the default empty string match.
| * Tests: Teach RunCMake to tolerate 'Error kstat returned' lines in test outputBrad King2015-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | When RunCMake tests run on Solaris, the output may contain unexpected lines of the form "Error kstat returned...". These lines are printed by SystemInformationImplementation::RunProcess when called from SystemInformationImplementation::ParseValueFromKStat (see issue #12066). Until someone investigates why kstat returns values outside the range it documents, simply remove such lines from the actual output before matching it against the expected output.
| * Tests: Teach RunCMake to tolerate Guard Malloc lines in test outputBrad King2015-02-231-1/+1
| | | | | | | | | | | | | | When RunCMake tests run under Xcode Guard Malloc, Guard Malloc may add lines of the form "<tool>(<pid>) malloc:..." to the output. Remove such lines from the actual output before matching it against the expected output.
| * Tests: Teach RunCMake to tolerate BullseyeCoverage lines in test outputBrad King2015-02-231-1/+1
| | | | | | | | | | | | When RunCMake tests run under dynamic analysis, Bullseye may add lines of the form "BullseyeCoverage..." to the output. Remove such lines from the actual output before matching it against the expected output.
| * Tests: Match curl error in RunCMake.ctest_submit FailDrop-* casesBrad King2015-02-233-3/+3
| | | | | | | | | | Port the regexes over from the CTestTestFailedSubmit tests for ftp, http, and https. No such match is needed for the other protocols.
| * Tests: Rename RunCMake.{CTestMemcheck => ctest_memcheck}Brad King2015-02-1985-30/+30
| | | | | | | | Follow the convention of naming tests after the command they test.
| * Tests: Rename RunCMake.{CTestSubmit => ctest_submit}Brad King2015-02-1962-37/+37
| | | | | | | | Follow the convention of naming tests after the command they test.
| * Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck)Brad King2015-02-194-31/+30
| | | | | | | | | | Provide the "run_ctest" macro for use in other tests that also want to cover running "ctest" scripts.
| * Tests: Rename RunCMake.CTestMemcheck internals to match CTestSubmitBrad King2015-02-194-12/+12
| |
* | Merge topic 'use-algorithms'Brad King2015-02-231-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bb9d71b4 Replace loops with algorithms. 4afe6c26 cmAlgorithms: Add cmReverseRange adaptor. a3a0a8c2 cmAlgorithms: Add cmFindNot algorithm. 8c74a41f cmRST: Replace two erase with a rotate and larger erase. 61fe1919 cmAlgorithms: Update concept requirement to FowardIterator 09d6125b cmAlgorithms: Move cmRotate out of 'implementation detail' namespace. 8ed6ecac cmRST: Move two algorithms beside each other. dfe49c20 cmRST: Use std::min where appropriate. 21b0654a cmGlobalGenerator: Convert set insert algorithm to vector algorithms. 416df93a Convert some raw loops to cmWrap. 37b88d34 cmAlgorithms: Add cmWrap. a2818093 Use cmJoin where possible. 76207b08 cmCacheManager: Replace loop with algorithm. 60c3bb73 cmGlobalGenerator: Replace loop with algorithm. 05fec779 cmTarget: Port loop to algorithm. 9c225767 cmGlobalGenerator: Replace set::insert algorithm with cmRemoveDuplicates. ...
| * | cmGlobalGenerator: Convert set insert algorithm to vector algorithms.Stephen Kelly2015-02-201-1/+1
| | | | | | | | | | | | Adjust test for new error output.
* | | Teach find_(library|file|path) to get prefixes from PATH (#15370)Brad King2015-02-1915-0/+54
|/ / | | | | | | | | | | | | | | | | The find_package command already knows how to compute installation prefixes from PATH. Use the same approach to establish prefixes for find_library, find_file, and find_path to use to look in directories like "<prefix>/lib[/<arch>]" and "<prefix>/include" for libraries and headers. This will reduce the amount of configuration end users need to do to establish a work environment rooted under a specific prefix.
* | Tests: Consolidate detection of 'rpmbuild'Brad King2015-02-131-1/+1
| | | | | | | | | | | | | | | | | | Several tests use slight variations of the same logic to enable CPack RPM tests. Consolidate this logic into one check before any tests are added. Look for 'rpmbuild' only on Linux and only when the test build tree does not have spaces in the path. In particular, this will make the result available in time for the RunCMake.CPackRPM test to be activated even if CMake is configured exactly once.
* | Xcode: Teach XCODE_ATTRIBUTE target properties about generator expressionsGregor Jasny2015-02-126-0/+24
| | | | | | | | Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
* | install: Allow generator expressions in TARGETS DESTINATION (#14317)Brad King2015-02-115-0/+11
|/ | | | | | | | | | | | This will allow per-config destinations for targets in EXPORT sets. Using multiple install(TARGETS) with separate CONFIGURATIONS is rejected as a target appearing more than once in an export set. Now instead one can write install(TARGETS foo EXPORT exp DESTINATION lib/$<CONFIG>) to get a single logical membership of the target in the export set while still having a per-config destination.
* Allow export of targets with INTERFACE_SOURCES.Stephen Kelly2015-02-1022-16/+91
| | | | | | Use the same rules for paths in source and binary dirs in installed INTERFACE_SOURCES as are used for INTERFACE_INCLUDE_DIRECTORIES.
* Tests: Move IfacePaths test stderr files.Stephen Kelly2015-02-1011-0/+1
| | | | | Rename the files with a property-specific name, so that additional properties can be easily tested.
* Tests: Run IfacePaths tests with a parameter.Stephen Kelly2015-02-099-21/+35
| | | | | | Run the tests for the INCLUDE_DIRECTORIES INTERFACE property in a specific build location, and update the stderr expectation to match the new output.
* Tests: Split part of include_directories test to a generic location.Stephen Kelly2015-02-0940-157/+163
| | | | | | | | | The moved tests are related to paths in INTERFACE_INCLUDE_DIRECTORIES in general, and when exporting, and covering cases of the install location being within the build or source prefix etc. Other build properties containing paths should have similar tests, so this allows some parameterization while keeping the preparation of the various directory structures.
* RunCMake: Allow specifying the stderr file for a test.Stephen Kelly2015-02-091-1/+4
|
* RunCMake: Allow specifying the directory to run tests in.Stephen Kelly2015-02-091-3/+14
|
* RunCMake: Remove unneeded files.Stephen Kelly2015-02-0957-57/+0
| | | | | The default expectation of RunCMake tests is empty content, so there is no need to specify it.
* Merge topic 'rpm_multi_prefix'Brad King2015-02-035-0/+36
|\ | | | | | | | | 3ec02547 CPackRPM: Allow multiple path relocation prefixes for one package
| * CPackRPM: Allow multiple path relocation prefixes for one packageDomen Vrankar2015-01-295-0/+36
| |
* | Features: Define meaning for no language standard defaultBrad King2015-01-292-15/+35
| | | | | | | | | | | | | | | | | | | | | | | | Define an empty string in CMAKE_<LANG>_STANDARD_DEFAULT to mean that the toolchain has no notion of lanuage standard levels. In this case the <LANG>_STANDARD[_REQUIRED] properties will have no effect. Update the RunCMake.CompileFeatures test to exclude the LinkImplementationFeatureCycle test when there is no standard default. It can never fail because no use of specific features will adjust the CXX_STANDARD level required for any target since the standard levels have no meaning in this case.
* | Merge topic 'shorten-test-paths'Brad King2015-01-284-2/+2
|\ \ | | | | | | | | | | | | | | | | | | 70c50962 Tests: Shorten paths in ExternalProjectLocal 539c5c25 Tests: Shorten paths in RunCMake.CompileFeatures 494f6e8d Tests: Shorten paths in CompileDefinitions
| * | Tests: Shorten paths in RunCMake.CompileFeaturesBrad King2015-01-264-2/+2
| | | | | | | | | | | | | | | Shorten the NotAFeature_OriginDebug_target_compile_features case name to avoid creating really long paths that fail with some tools on Windows.
* | | Merge topic 'file-strings-utf-16'Brad King2015-01-2713-0/+29
|\ \ \ | | | | | | | | | | | | | | | | 1f77a700 file: Teach STRINGS to support UTF-16 and UTF-32 encodings
| * | | file: Teach STRINGS to support UTF-16 and UTF-32 encodingsJustin Borodinsky2015-01-2713-0/+29
| | | |
* | | | Merge topic 'cmake-E-tar-files-from'Brad King2015-01-2714-0/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 44fd71de cmake: Teach "-E tar" command a "--files-from=" option
| * | | | cmake: Teach "-E tar" command a "--files-from=" optionBrad King2015-01-2614-0/+23
| |/ / / | | | | | | | | | | | | | | | | | | | | Read file names from the lines of a specified file. Reject input lines starting in '-' to leave room for option parsing to be added later. Add just '--add-file=' now to allow files starting in '-' to be specified.
* | | | Merge topic 'test-rerun-cmake'Brad King2015-01-2714-0/+106
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 7f2dc8dc configure_file: Test that CMake re-runs on input change or output missing daf95a38 try_compile: Test that CMake re-runs on input change
| * | | | configure_file: Test that CMake re-runs on input change or output missingBrad King2015-01-276-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Makefile generators we expect that touching or modifying the input file of a configure_file, or removing its output, will cause CMake to re-run on the next build. Extend the RunCMake.configure_file test with a case covering this. Also check that CMake does not re-run if nothing has changed.
| * | | | try_compile: Test that CMake re-runs on input changeBrad King2015-01-278-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Makefile and Ninja generators we expect that touching the input source file for a try_compile will cause CMake to re-run on the next build. Extend the RunCMake.try_compile test with a case covering this. Also check that CMake does not re-run if nothing has changed.
* | | | | Merge topic 'tests-RunCMake-normalize-newlines'Brad King2015-01-271-0/+1
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | | bf05938b Tests/RunCMake: Normalize newlines before checking actual output
| * | | Tests/RunCMake: Normalize newlines before checking actual outputBrad King2015-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | We read the expected output with file(STRINGS) which converts CRLF newlines to LF. Do the same with the actual output before comparing.
* | | | Merge topic 'tests-RunCMake-make-program'Brad King2015-01-262-0/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | 23bf98fc Tests/RunCMake: Honor CMAKE_MAKE_PROGRAM
| * | | Tests/RunCMake: Honor CMAKE_MAKE_PROGRAMBrad King2015-01-242-0/+4
| |/ / | | | | | | | | | | | | If tests are using an explicit make program, pass it through to RunCMake tests so that any that actually do build use the expected tool.
* | | Merge topic 'try-run-link-libraries'Brad King2015-01-268-2/+20
|\ \ \ | |/ / |/| | | | | | | | | | | | | | d0adcccb try_run: Add tests for LINK_LIBRARIES with mock libraries. 223c5cb7 try_run: Add test for bad link libraries. e2b1f058 try_run: Add support for LINK_LIBRARIES option.
| * | try_run: Add test for bad link libraries.Matt McCormick2015-01-267-0/+18
| | | | | | | | | | | | Based off the corresponding try_compile test.
| * | try_run: Add support for LINK_LIBRARIES option.Matt McCormick2015-01-261-2/+2
| |/ | | | | | | | | | | | | | | Most functionality is already implemented in Source/cmCoreTryCompile.{h,cxx}. Document and improve argument parsing. This functionality is already being used by a number of modules, like CheckCSourceCompiles.cmake, but it is not documented.
* | Merge topic 'cdash_upload_file_mode'Brad King2015-01-2217-0/+35
|\ \ | | | | | | | | | | | | | | | | | | f3e0b6f1 CTestCoverageCollectGCOV: Add module to run gcov 6dd980e0 ctest_submit: Make CDASH_UPLOAD mode arguments more strict 5dc33f89 ctest_submit: Add CDASH_UPLOAD mode to upload files to CDash
| * | ctest_submit: Make CDASH_UPLOAD mode arguments more strictBrad King2015-01-2017-0/+35
| | | | | | | | | | | | | | | Disallow mixing of arguments from different command signatures. Extend the RunCMake.CTestSubmit test to cover such error cases.
* | | Merge topic 'test-ctest_submit-fail-with-RunCMake'Brad King2015-01-2120-1/+43
|\ \ \ | |/ / |/| | | | | | | | | | | ef97cd85 Tests: Fix obscure RunCMake.CTestSubmit 'drop' case failures 76f7eb2e Tests: Extend RunCMake.CTestSubmit test to cover 'drop' failures
| * | Tests: Fix obscure RunCMake.CTestSubmit 'drop' case failuresBrad King2015-01-212-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | When curl is given a URL of the form '<something>://' it tries to resolve '<something>' as a host name. If the host happens to exist and have a server then the drop might actually appear to work. Instead use an explicit '-no-site-' host to ensure it cannot connect. Reported-by: Gilles Khouzam <Gilles.Khouzam@microsoft.com>
| * | Tests: Extend RunCMake.CTestSubmit test to cover 'drop' failuresBrad King2015-01-1919-1/+41
| | | | | | | | | | | | | | | | | | Replace the TODO comment with calls to run_ctest_submit_FailDrop. For now leave curl errors out of expected stderr. They can be ported over from CTestTestFailedSubmit-* tests later.
* | | Merge topic 'cmake-E-tar-mtime'Brad King2015-01-207-0/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | 3a60c899 cmake: Teach "-E tar" command a "--mtime=" option 90f9c427 cmake: Teach "-E tar" to report file name on failure to read from disk
| * | | cmake: Teach "-E tar" command a "--mtime=" optionBrad King2015-01-197-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an option to set the mtime of entries in a tarball so that one can create a tarball with a consistent content hash (e.g. MD5) for a given set of files regardless of their current timestamps on disk. This will be useful for submission of tarballs to CDash, which tracks content hashes to avoid duplication. Inspired-by: Bill Hoffman <bill.hoffman@kitware.com>
* | | | Merge topic 'GNU-4.4-compile-features'Brad King2015-01-191-3/+3
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 004e1540 Features: Record for GNU 4.4. 2a5ca650 Features: Wrap failure-test in UNIX condition. 1ae2c6b2 Features: Blacklist cxx_constexpr test for GNU 4.5. c66e3317 Features: Use a more-common feature in cycle-test. c43a6dc5 Features: Update comment in test to match the code. 78259135 Features: Test presence of cxx_auto_type with genex. 7b9fc88b Features: Remove outdated comment.