summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'test-VSGNUFortran-oracle-link'Brad King2015-10-021-3/+3
|\ | | | | | | | | 7bc202cc Tests: Simplify VSGNUFortran Oracle-specific link lines
| * Tests: Simplify VSGNUFortran Oracle-specific link linesBrad King2015-10-011-3/+3
| | | | | | | | | | | | | | On an Oracle 12.4 build the c_using_fortran executable cannot find the "fsu" library at runtime. Since this is an implementation detail of the "hello" library, link that library to it privately so that "-lfsu" does not propagate to the executables consuming it.
* | Tests: Fix RunCMake.CPack_* tests to use proper CMake generatorDomen Vrankar2015-10-012-45/+3
| | | | | | | | | | | | Use the run_cmake() function to generate the test build tree with the proper CMake generator and also to verify that it succeeds. Drop our PreTestError helper as it is no longer needed.
* | Tests: Avoid OS X 10.5 limitation warning in RunCMake.CPack* testsBrad King2015-10-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The DEPENDENCIES test case uses install(TARGETS) and so generates a warning: CMake Warning in CMakeLists.txt: WARNING: Target "test_prog" has runtime paths which cannot be changed during install. To change runtime paths, OS X version 10.6 or newer is required. Therefore, runtime paths will not be changed when installing. CMAKE_BUILD_WITH_INSTALL_RPATH may be used to work around this limitation. Set CMAKE_BUILD_WITH_INSTALL_RPATH to avoid the warning since we do not need to run the binaries from the build tree anyway.
* | Tests: Add trailing newlines to generated sources in RunCMake.CPack_* testsBrad King2015-10-011-3/+3
|/ | | | This avoids compiler warnings on stderr while building them.
* Merge topic 'fix-qtautogen-with-object-library-Ninja'Brad King2015-09-292-1/+13
|\ | | | | | | | | 9bc6eb8e cmGlobalGenerator: Initialize generator targets on construction (#15729)
| * cmGlobalGenerator: Initialize generator targets on construction (#15729)Stephen Kelly2015-09-292-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Ninja generator and Visual Studio generators are special-cased for the QtAutogen feature. In order to reduce the number of custom targets, the Visual Studio generators prefer to create custom commands instead, and in order to create appropriate Ninja files, generated rcc files are listed as byproducts. This requires the use of the GetConfigCommonSourceFiles API of the cmGeneratorTarget for those generators when initializing the autogen target. The initializer method is called from Compute() after the cmGeneratorTarget objects are created, however the initialization of the object directory occurs later in the InitGeneratorTargets method. That means that the resulting object locations are computed incorrectly and cached before the object directory is determined, so the generated buildsystem can not find the object files. The initialization of the object directory was split from the creation of cmGeneratorTarget instances in commit 0e0258c8 (cmGlobalGenerator: Split creation of generator object from initialization., 2015-07-25). The motivation for the split was to do only what is essential to do early in cases where cmGeneratorTargets need to be created at configure-time. That is required for the purpose of implementing policies CMP0024 and CMP0026, and for try_compile(LINK_LIBRARIES). However, the split was not really necessary. Compute the object directory in the cmGeneratorTarget constructor instead. The QtAutogen unit test already tests the use of TARGET_OBJECTS with AUTOMOC, and that test already passes on Ninja. The reason it already passes is that the QtAutogen target also uses the AUTORCC feature, and specifies several qrc files in its SOURCES. Later in the Compute algorithm (after the InitGeneratorTargets call), the rcc files are determined and target->AddSource is called. The AddSource call clears the previously mentioned cache of source files, causing it to be regenerated when next queried, this time taking account of the object directory. Extend the test suite with a new target which does not make use of AUTORCC with qrc files so that the test added alone would break without the fix in this commit.
* | Merge topic 'cpack-package-empty-dirs'Brad King2015-09-2919-4/+65
|\ \ | | | | | | | | | | | | | | | | | | | | | 9298f56d CPack: allow packaging of empty directories ecd71c9c SystemTools: time operations on directories 19c6f4ee SystemTools: set time file permissions 749a140a CPackDeb: allow empty directories in component packages
| * | CPack: allow packaging of empty directoriesDomen Vrankar2015-09-2818-2/+64
| | |
| * | CPackDeb: allow empty directories in component packagesRaffi Enficiaud2015-09-281-2/+1
| | |
* | | Merge topic 'link-https-cmake.org'Brad King2015-09-296-6/+6
|\ \ \ | |/ / |/| | | | | | | | da7276cf Replace http://www.cmake.org URLs with https://cmake.org
| * | Replace http://www.cmake.org URLs with https://cmake.orgBrad King2015-09-256-6/+6
| | | | | | | | | | | | | | | | | | | | | The latter is now the preferred URL for visiting cmake.org with a browser. Convert using the shell code: git ls-files -z | xargs -0 sed -i 's|http://www\.cmake|https://cmake|g'
* | | Merge topic 'test-Wno-dev'Brad King2015-09-283-0/+16
|\ \ \ | | | | | | | | | | | | | | | | bc3e1e4b Tests: Add case for -Wdev and -Wno-dev with non-message() warnings (#15747)
| * | | Tests: Add case for -Wdev and -Wno-dev with non-message() warnings (#15747)Michael Scott2015-09-253-0/+16
| | |/ | |/|
* | | Merge topic 'ninja-cleanup-path-conversion'Brad King2015-09-284-0/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | 6e2a4087 Ninja: Centralize path conversion in global generator (#15757) 993d0641 Ninja: Fix OBJECT_DIR placeholder substitution in link rules
| * | | Ninja: Centralize path conversion in global generator (#15757)Brad King2015-09-254-0/+7
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the Ninja generator we run all build rules from the top of the build tree rather than changing into each subdirectory. Therefore we convert all paths relative to the HOME_OUTPUT directory. However, the Convert method on cmLocalGenerator restricts relative path conversions to avoid leaving the build tree with a "../" sequence. Therefore conversions performed for "subdirectories" that are outside the top of the build tree always use full paths while conversions performed for subdirectories that are inside the top of the build tree may use relative paths to refer to the same files. Since Ninja always runs rules from the top of the build tree we should convert them using only the top-level cmLocalGenerator in order to remain consistent. Also extend the test suite with a case that fails without this fix.
* | | Merge topic 'test-fix-C-comments'Brad King2015-09-282-14/+14
|\ \ \ | | | | | | | | | | | | | | | | 4eb77a1c Tests: Use C-Style comments in C sources and headers
| * | | Tests: Use C-Style comments in C sources and headersMarc Chevrier2015-09-252-14/+14
| | | | | | | | | | | | | | | | | | | | Not all C compilers tolerate C++-style comments in C code, so do not use them in our tests.
* | | | Merge topic 'genex-SHELL_PATH'Brad King2015-09-288-6/+64
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | ca6ba3fe Genex: Add a SHELL_PATH expression 7de868c4 Tests: Simplify GeneratorExpression check implementation
| * | | | Genex: Add a SHELL_PATH expressionStefan Kislinskiy2015-09-286-3/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some commands on Windows do not understand forward slash paths and require backslashes. In order to help projects generate shell invocations of such commands, provide a generator expression to convert paths to the shell-preferred path format for the current generator. This will allow custom commands to generate paths the same way CMake does for compiler command invocations.
| * | | | Tests: Simplify GeneratorExpression check implementationBrad King2015-09-232-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a function instead of a macro so we do not need an extra layer of backslashes. Use a bracket argument to avoid another layer of extra backslashes.
* | | | | Merge topic 'test-RunCMake-BuildDepends-Borland'Brad King2015-09-281-1/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 67040500 Tests: Fix RunCMake.BuildDepends filesystem delay for Borland Makefiles
| * | | | | Tests: Fix RunCMake.BuildDepends filesystem delay for Borland MakefilesBrad King2015-09-251-1/+7
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Our 1.125s delay does not seem to be long enough to be reliable with the Borland "make" tool. Use a longer delay for Borland.
* | | | | Merge topic 'revert-cpack-package-empty-dirs'Brad King2015-09-2612-37/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | 4fa17553 Revert topic 'cpack-package-empty-dirs'
| * | | | Revert topic 'cpack-package-empty-dirs'Brad King2015-09-2512-37/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes in commit 47b060ae (CPackDeb: allow empty directories in component packages, 2015-09-21), commit b58de9fe (CPack: allow packaging of empty directories, 2015-09-21), and commit b761e90d (CPack: remove accidental changes, 2015-09-22) regressed packaging of CMake itself. Revert the changes until they can be revised and rebased on other changes that make additional fixes.
* | | | | Merge topic 'revert-cmake-W-options'Brad King2015-09-2518-76/+0
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | 2e606306 Merge branch 'improve-variable-help-formatting' into revert-cmake-W-options 81739e92 Revert topic 'cmake-W-options' (#15747)
| * | | | Merge branch 'improve-variable-help-formatting' into revert-cmake-W-optionsBrad King2015-09-2276-15/+762
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve conflicts in Help/variable/CMAKE_ERROR_DEPRECATED.rst Help/variable/CMAKE_WARN_DEPRECATED.rst by integrating changes from both sides.
| * | | | | Revert topic 'cmake-W-options' (#15747)Brad King2015-09-2218-76/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes in commit c96fe0b4 (cmake: Add -W options to control deprecation warnings and errors, 2015-07-28) fail to account for -Wdev warnings produced by places in CMake other than message(). This causes a regression in which -Wno-dev fails to suppress such warnings. Revert the feature until it can be revised accordingly.
* | | | | | Merge topic 'install-directory-dest-genex'Brad King2015-09-257-7/+16
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd189cc2 install: Allow generator expressions in DIRECTORY DESTINATION
| * | | | | | install: Allow generator expressions in DIRECTORY DESTINATIONRobert Goulet2015-09-247-7/+16
| | |_|_|/ / | |/| | | |
* | | | | | Merge topic 'Threads-CXX'Brad King2015-09-254-0/+36
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fff9434d FindThreads: officially announce it works with only C++ enabled 66db914a FindThreads: fix printing a pointer value in test code 0b38424c FindThreads: make the call to try_run() work also if only C++ is enabled 9924a212 FindThreads: replace CheckIncludeFiles by CheckIncludeFile a27bc0cc Check(Function|Library|Symbol)Exists: make it work if only C++ is enabled 7279f293 FindThreads: add simple testcase
| * | | | | FindThreads: officially announce it works with only C++ enabledRolf Eike Beer2015-09-252-9/+24
| | | | | |
| * | | | | FindThreads: add simple testcaseRolf Eike Beer2015-09-213-0/+21
| | | | | |
* | | | | | Tests: Cover install(FILES) with a genex DESTINATIONBrad King2015-09-237-6/+15
| | | | | |
* | | | | | Merge topic 'cpack-package-empty-dirs'Brad King2015-09-231-1/+1
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | / | |_|_|_|/ |/| | | | b761e90d CPack: remove accidental changes
| * | | | CPack: remove accidental changesDomen Vrankar2015-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Remove changes accidentally included in commit b58de9fe (CPack: allow packaging of empty directories, 2015-09-22).
* | | | | Merge topic 'cpack-package-empty-dirs'Brad King2015-09-2213-3/+38
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | b58de9fe CPack: allow packaging of empty directories 47b060ae CPackDeb: allow empty directories in component packages
| * | | | CPack: allow packaging of empty directoriesDomen Vrankar2015-09-2212-1/+37
| | | | |
| * | | | CPackDeb: allow empty directories in component packagesRaffi Enficiaud2015-09-211-2/+1
| |/ / /
* | | | Merge topic 'ctest-variable-docs'Brad King2015-09-221-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4da5a227 Help: document CTEST_CUSTOM_* variables 70c0cc72 ctest_read_custom_files: mention that ctest does this automatically 71c67e83 CTEST_CUSTOM_*: treat variables as lists 936a95d4 CTestCoverageCollectGCOV: replace tabulators
| * | | | CTestCoverageCollectGCOV: replace tabulatorsBen Boeckel2015-09-211-3/+3
| | | | |
* | | | | CMP0065: Restrict the use of CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGSChuck Atkins2015-09-2114-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | This new policy restricts the addition of the shared library link flags to executables only when the ENABLE_EXPORTS property is set to True.
* | | | | CMP0064: Fix recorded version of introduction to be 3.4Brad King2015-09-212-1/+11
| |/ / / |/| | | | | | | | | | | | | | | This policy was added for CMake 3.4 but accidentally recorded as 3.3. Fix this and update the RunCMake.CMP0064 test WARN case accordingly.
* | | | Merge topic 'pkg-config-variable-function'Brad King2015-09-213-0/+16
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | 51b83f14 FindPkgConfig: add a command to query arbitrary variables 7f7f1eec FindPkgConfig: use execute_process to strip trailing whitespace
| * | | FindPkgConfig: add a command to query arbitrary variablesBen Boeckel2015-09-213-0/+16
| | | |
* | | | Merge topic 'cpack-verbatim-variables'Brad King2015-09-215-0/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | bc2e54db Introduction of CPACK_VERBATIM_VARIABLES variable
| * | | | Introduction of CPACK_VERBATIM_VARIABLES variableRoman Donchenko2015-09-205-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If variable is set to TRUE, values of all variables prefixed with CPACK_ will be escaped so special characters such as dolar sign, quotes or foreward slash will not be lost. By default variable is treated as set to FALSE for back compatibility. The cpack_encode_variables macro is changed into a function to remove scope pollution. There should be no other effects.
* | | | | Merge topic 'cpack-deb-checksum-on-symlinks'Brad King2015-09-213-4/+29
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | da295f45 CPack/Deb: checksum on symlinks release notes 7c7874c8 CPackDeb: preventing md5sum on symlinks
| * | | | | CPackDeb: preventing md5sum on symlinksRaffi Enficiaud2015-09-183-4/+29
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | - Direct call to cmSystemTools::ComputeFileMD5 - Avoiding hashing symlinks - Tests
* | | | | Merge topic 'fix-compatibility-mode-LOCATION'Brad King2015-09-213-0/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2514e426 CMP0026: Use compatibility codepath until configure is finished (#15748) b98f7712 cmGlobalGenerator: Add API for the configure step being finished. b5de2bd9 cmLocalGenerator: Simplify condition.