summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'refactor-cmLocalGenerator'Brad King2015-05-152-0/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ce167b54 cmMakefile: Handle CMP0014 before configuring the generator. 7baef756 cmLocalGenerator: Assert that there is a parent. 63255342 cmMakefile: Remove redundant variable set. 894961af cmMakefile: Use the state to determine the parent directory. 115e9199 Use new top-level check abstraction. c5059c90 cmLocalGenerator: Add abstraction to check if top-level. b17686d2 cmGlobalGenerator: Move some flags from cmLocalGenerator. ed41a8e7 cmLocalGenerator: Port loops to cmState::Snapshot. 48a9e91b cmState: Add an accessor for Parent snapshot and a validity check. e7f7c2e2 cmLocalGenerator: Convert two recursive methods to loops. c5cb3a73 cmLocalGenerator: Get project directories from the cmState. 76b59831 cmLocalGenerator: Initialize state before creating cmMakefile. 34c9ee2e cmLocalGenerator: Require a global generator in the constructor. 3837c483 Tests: Add case for 'ctest' run with bad CTestTestfile b317b38d cmGlobalBorlandMakefileGenerator: Do not inherit from NMake generator 94867698 Don't use a cmLocalGenerator instance to call static methods. ...
| * Tests: Add case for 'ctest' run with bad CTestTestfileBrad King2015-05-142-0/+17
| |
* | Merge topic 'disallow-install-of-export'Brad King2015-05-159-0/+49
|\ \ | | | | | | | | | | | | | | | b85d3b66 install: Disallow installing export() result. 501c237a install: Use an intermediate filesVector variable.
| * | install: Disallow installing export() result.Stephen Kelly2015-05-149-0/+49
| |/
* | Merge topic 'fix-tests-in-usr-local'Brad King2015-05-155-1/+23
|\ \ | |/ |/| | | | | | | d430cb7c Tests: Fix failures when running under the default install prefix (#15566) 332ee3e3 Tests: Fix CheckSourceTree test when build is under source (#15566)
| * Tests: Fix failures when running under the default install prefix (#15566)Brad King2015-05-144-0/+12
| | | | | | | | | | | | | | Fix test cases whose behavior differs when their source or build tree is under CMAKE_INSTALL_PREFIX by setting an install prefix under the build tree. Otherwise they may fail when run under the default install prefix (e.g. /usr/local).
| * Tests: Fix CheckSourceTree test when build is under source (#15566)Brad King2015-05-141-1/+11
| | | | | | | | | | | | Since the build tree will populate content under the source tree the test cannot reliably check that the source tree is pristine. Simply skip most of the test in this case.
* | FindHDF5: Add version supportAxel Huebl2015-05-131-2/+2
|/ | | | | Detect the HDF5 version and set HDF5_VERSION just as we detect HDF5_IS_PARALLEL from the header already.
* Merge topic 'ctest-no-make-i'Brad King2015-05-1215-1/+87
|\ | | | | | | | | | | | | 226df303 CTest: Stop telling 'make' to ignore errors with -i 28e7a135 Help: Fix build_command alternative signature docs 231601b6 build_command: Choose configuration consistently across signatures
| * CTest: Stop telling 'make' to ignore errors with -iBrad King2015-05-1215-1/+87
| | | | | | | | Add policy CMP0061 to maintain compatibility for existing projects.
* | Merge topic 'cpack-deb-component-dependencies'Brad King2015-05-126-1/+235
|\ \ | | | | | | | | | | | | | | | 1237d5fa Help: Add notes for topic 'cpack-deb-component-dependencies' e3f522f6 CPack/DEB per component dependencies
| * | CPack/DEB per component dependenciesRaffi Enficiaud2015-05-086-1/+235
| |/ | | | | | | Dependencies may now be set per component
* | Merge topic 'cpack-not-running-tests'Brad King2015-05-122-19/+22
|\ \ | | | | | | | | | | | | 7c103be8 CPack: Enable DEB and RPM tests more reliably
| * | CPack: Enable DEB and RPM tests more reliablyDomen Vrankar2015-05-122-19/+22
| |/ | | | | | | | | | | | | CPack DEB and RPM generators were not used for some tests because CPACK_BINARY_DEB and CPACK_BINARY_RPM variable were not set. Fix this, simplify generator selection in CTEST_RUN_CPackComponentsForAll, and fix bugs that were detected after tests were run.
* | Merge topic 'ExternalProject-improve-missing-source-error'Brad King2015-05-1210-0/+69
|\ \ | |/ |/| | | | | dcb18836 ExternalProject: Improve error when SOURCE_DIR is missing (#15560)
| * ExternalProject: Improve error when SOURCE_DIR is missing (#15560)Brad King2015-05-0810-0/+69
| | | | | | | | | | Mention the SOURCE_DIR that we checked and found empty or missing so that the user can see the full path to what we expected to find.
* | execute_process: Improve stdout/stderr mergingBrad King2015-05-078-0/+56
|/ | | | | | | Use the KWSys Process "MergeOutput" option to give the child process the same pipe (or file) 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 'vs-install-in-default-build'Brad King2015-05-074-1/+18
|\ | | | | | | | | | | a6e4e73d VS: Add option to put INSTALL target in .sln default build 562e69dd Tests: Enable devenv tests on VS >= 10
| * VS: Add option to put INSTALL target in .sln default buildRobert Goulet2015-05-064-0/+15
| | | | | | | | | | Add a CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD variable to control this behavior.
| * Tests: Enable devenv tests on VS >= 10Brad King2015-05-041-1/+3
| | | | | | | | | | | | | | | | | | The VSExcludeFromDefaultBuild have not been enabled on VS >= 10 since commit v3.0.0-rc1~260^2~9 (Tests: Simplify VSExcludeFromDefaultBuild configuration, 2013-11-14). Since commit v3.0.0-rc1~260^2~2 (VS: Add CMAKE_VS_(DEVENV|MSBUILD|MSDEV)_COMMAND variables, 2013-12-04) we can simply check the CMAKE_VS_DEVENV_COMMAND variable for a devenv tool to use for the test.
* | CPack/DEB component dependency auto-discoveryRaffi Enficiaud2015-05-073-1/+101
|/ | | | Dependency auto-discovery can now be set per component
* Merge topic 'test-RunCMake-parallel-make'Brad King2015-04-301-0/+3
|\ | | | | | | | | 703e7625 Tests: Protect RunCMake tests from MAKEFLAGS in environment (#15542)
| * Tests: Protect RunCMake tests from MAKEFLAGS in environment (#15542)Brad King2015-04-291-0/+3
| |
* | Merge topic 'cpack-deb-component-description'Brad King2015-04-305-1/+221
|\ \ | | | | | | | | | | | | 2f0afffa CPackDEB component description
| * | CPackDEB component descriptionRaffi Enficiaud2015-04-295-1/+221
| |/ | | | | | | | | Support for setting different description for each component.
* | if: Implement new IN_LIST operatorNils Gladitz2015-04-3010-0/+81
| |
* | Revert "add_custom_command: Diagnose MAIN_DEPENDENCY limitation."Nils Gladitz2015-04-3011-70/+0
|/ | | | | | | | | | | | This reverts commit 242c3966 (add_custom_command: Diagnose MAIN_DEPENDENCY limitation, 2015-03-09) and the follow up commit b372a99a (UseSWIG: Do not use MAIN_DEPENDENCY on custom commands, 2015-03-26). I misdiagnosed the underlying issue that prompted creation of policy CMP0057. The actual issue surfaces when a single custom command's MAIN_DEPENDENCY is listed in more than one target; this issue will have to be addressed independently.
* Merge topic 'deterministic-CTest-tests'Brad King2015-04-282-0/+4
|\ | | | | | | | | bf24b6c5 Tests: Guard more CTest tests against parallel execution.
| * Tests: Guard more CTest tests against parallel execution.Stephen Kelly2015-04-272-0/+4
| |
* | Merge topic 'test-ExportImport-AIX-GCC'Brad King2015-04-281-0/+1
|\ \ | | | | | | | | | | | | 4fc47424 Tests: Fix ExportImport on AIX with GCC
| * | Tests: Fix ExportImport on AIX with GCCBrad King2015-04-231-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The iface_test_bld gets the excludedFromAll include directory with "-isystem" because it is added indirectly through an imported target. On AIX with GCC the -isystem flag causes sources to be preprocessed as: # 3 "/.../excludedFromAll.h" 2 3 4 The flags after the file name are documented here: https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html and the "4" flag says that following content is extern "C". This causes the excludedFromAll function to be declared as a C symbol and not mangled for C++, which fails to link later because the symbol is really provided as C++. Work around this by setting the NO_SYSTEM_FROM_IMPORTED target property on iface_test_bld. Somehow iface_test_exp does not end up with -isystem so we do not need this workaround for that target.
* | Tests: Fix RunCMake.CTest to tolerate source line number changesBrad King2015-04-271-1/+1
|/
* Merge topic 'cpack-deb-linitian-md5hash'Brad King2015-04-239-0/+434
|\ | | | | | | | | | | 75b0e167 CPackDeb: Add basic package tests fdfe4586 CPackDeb: Fix lintian md5sum file warning
| * CPackDeb: Add basic package testsRaffi Enficiaud2015-04-239-0/+434
| | | | | | | | | | Tests of generated component based deb packages with lintian and dpkg. Also includes basic file name check.
* | Merge topic 'deterministic-CTest-tests'Brad King2015-04-231-0/+3
|\ \ | | | | | | | | | | | | | | | b5b20d20 ctest: Treat ENV{CTEST_OUTPUT_ON_FAILURE} as a boolean fcf9cf6c Tests: Make a CTest test deterministic.
| * | Tests: Make a CTest test deterministic.Stephen Kelly2015-04-201-0/+3
| | | | | | | | | | | | The test expect sub-test not to run in parallel.
* | | Merge topic 'ExternalProject-depend-INTERFACE'Brad King2015-04-229-0/+48
|\ \ \ | | | | | | | | | | | | | | | | | | | | e1c6df39 ExternalProject: Allow dependencies on INTERFACE libraries c0502faa ExternalProject: Fix error message typo
| * | | ExternalProject: Allow dependencies on INTERFACE librariesBrad King2015-04-229-0/+48
| | | | | | | | | | | | | | | | | | | | Respect INTERFACE library property whitelist. Check that a target has type "UTILITY" before querying other properties.
* | | | Merge topic 'ExternalProject-genex'Brad King2015-04-229-7/+52
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | b470d618 Help: Add notes for topic 'ExternalProject-genex' 0273ef14 ExternalProject: Allow generator expressions with LOG_* options (#15287) 7bd8cfb8 ExternalProject: Allow generator expressions in initial cache options 1cf43dcf Tests: Add case to cover ExternalProject with subdirectories
| * | | ExternalProject: Allow generator expressions with LOG_* options (#15287)Andrey Pokrovskiy2015-04-212-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Use file(GENERATE) to write the logging wrapper scripts to evaluate generator expressions. Use a per-config script names in case the content varies by configuration.
| * | | ExternalProject: Allow generator expressions in initial cache optionsAndrey Pokrovskiy2015-04-216-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | Use file(GENERATE) to write the initial cache file so that we can evaluate generator expressions. Use a per-config initial cache file name in case the content varies by configuration.
| * | | Tests: Add case to cover ExternalProject with subdirectoriesBrad King2015-04-213-0/+32
| | |/ | |/| | | | | | | | | | | | | | | | Add an ExternalProjectSubdir test directory with a minimal test showing use of ExternalProject_Add for a source tree in a subdirectory. This will allow us to easily add test external projects that cover specific behavior where the client project must check results.
* | | Merge topic 'fix-CTestTestSerialOrder-parallel-env'Brad King2015-04-221-0/+1
|\ \ \ | | | | | | | | | | | | | | | | 2f4b13b3 Tests: Protect CTestTestSerialOrder from environment (#15524)
| * | | Tests: Protect CTestTestSerialOrder from environment (#15524)Brad King2015-04-211-0/+1
| |/ / | | | | | | | | | Reported-by: Stephen Kelly <steveire@gmail.com>
* | | QtAutogen: Process 'rcc --list' stdout and stderr separately (#15523)Brad King2015-04-213-0/+15
|/ / | | | | | | | | | | | | | | | | | | The stderr may have warning messages. We should not treat these lines as resource files. However, we must still recognize error message lines for missing resource files that may be generated. Extend the QtAutogen test to cover a generated resource as the only one listed in a .qrc file. This causes 'rcc --list' to print a warning to stderr that we now intend to ignore.
* | Merge topic 'cmSystemTools-RunSingleCommand-stderr'Brad King2015-04-211-1/+1
|\ \ | | | | | | | | | | | | 356c26eb cmSystemTools: Teach RunSingleCommand to separate stdout and stderr
| * | cmSystemTools: Teach RunSingleCommand to separate stdout and stderrBrad King2015-04-201-1/+1
| |/ | | | | | | | | | | | | Extend the RunSingleCommand signature to capture stdout and stderr separately. Allow both to be captured to the same std::string to preserve existing behavior. Update all call sites to do this so that this refactoring does not introduce functional changes.
* | Merge topic 'cpack-rpm-refactored-file-listing'Brad King2015-04-213-1/+32
|\ \ | | | | | | | | | | | | | | | | | | cd953bf7 Help: Add notes for topic 'cpack-rpm-refactored-file-listing' 76080c32 CPackRPM content listing refactor 152e9b32 CPackRPM package content list code move
| * | CPackRPM content listing refactorDomen Vrankar2015-04-193-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring of content list that removes use of find and sed to make listing algorithm more clear and remove external dependencies. Patch also limits man pages handling to locations listed in brp-compress rpm script by default - fixes bug report #14660.
* | | Merge topic 'ExternalProject-test-refactor'Brad King2015-04-216-58/+63
|\ \ \ | |_|/ |/| | | | | | | | 28429270 Tests: Delay RunCMake.ExternalProject case checks