summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'test-search-ordering'Brad King2015-09-165-0/+12
|\ | | | | | | | | | | | | 7a6e5f06 Tests: Cover find_program when the environment duplicate some HINTS 40122975 Merge branch 'fix-bad-search-ordering' into test-search-ordering 02440154 find_*: Fix search order when the environment duplicates some HINTS
| * Tests: Cover find_program when the environment duplicate some HINTSBrad King2015-09-155-0/+12
| | | | | | | | Reported-by: Marc CHEVRIER <marc.chevrier@sap.com>
* | Merge topic 'fix-buildsystem-property-append'Brad King2015-09-1411-5/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | ed258d60 Tests: Cover set_property for buildsystem directory properties fb45c371 cmState: Only append non-empty values to buildsystem properties. 158f7e31 cmMakefile: Use appropriate parameter name. 08ce3f48 cmTarget: Only append non-empty values to buildsystem properties.
| * | Tests: Cover set_property for buildsystem directory propertiesBrad King2015-09-119-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the RunCMake.set_property test with cases covering buildsystem directory properties: * COMPILE_DEFINITIONS * COMPILE_OPTIONS * INCLUDE_DIRECTORIES Also test a non-buildsystem property to document the equivalence in behavior.
| * | cmTarget: Only append non-empty values to buildsystem properties.Stephen Kelly2015-09-115-5/+5
| | | | | | | | | | | | | | | | | | This is a change in behavior from CMake 3.3, but there is no semantic meaning to empty entries in buildsystem properties. This also restores behavior to that of CMake 2.8.10.
* | | CMakeParseImplicitLinkInfo: Do not match "VAR=..." as link line (#15737)Brad King2015-09-111-0/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling with LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' the compiler output includes a line like COLLECT_GCC_OPTIONS='-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ... that our link line regex matches due to an argument ending in "-ld". Since it is not really the link line no implicit link information is dectected. Exclude "VAR=..." lines from consideration as link lines to fix this.
* | Merge topic 'cpack-cmake-special-characters-mangling'Brad King2015-09-104-0/+14
|\ \ | | | | | | | | | | | | 2a7772ff CPack: don't mangle CMake-special characters when applying default settings
| * | CPack: don't mangle CMake-special characters when applying default settingsRoman Donchenko2015-09-094-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mangling is prevented by using a function instead of a macro for setting default value of some CPack variables. Function is meant for internal use in CPack.cmake only. Old macro is deprecated but kept for backwards compatibility - was intended for internal use only as it can't be used for CPack after CPack.cmake script is included. Patch removes local workarounds that were required by old macro, fixes default setting of variables that by default inherit value from another variable that already went through old default setting macro (e.g. value of CPACK_PACKAGE_INSTALL_REGISTRY_KEY caused error for wrong escapes if CPACK_PACKAGE_INSTALL_DIRECTORY contained escaped back slashes) and provides a test for correct escaping of characters.
* | | CPack/Deb: enable per component setting of dependenciesDomen Vrankar2015-09-092-12/+37
|/ /
* | Merge topic 'more-swift2-fixes'Brad King2015-09-095-10/+35
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 9cdf6ef4 Swift: Add proper Swift compiler test 1aa29f0d Swift: Remove positive Swift language tests d778a1c2 Swift: Require Xcode 6.1 and for MacOS X at least SDK 10.10 4da60024 Swift: Fix Compiler-Id detection for Swift 2 874a265c Swift: Make SwiftMix compatible with Swift 2
| * | Swift: Remove positive Swift language testsGregor Jasny2015-09-063-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's relatively complex to determine in advance if a Xcode, SDK, and Deployment Target configuration is capable of running Swift. For example the following combinations do not work: * deployment target < OS X 10.9 * Xcode 6.2 and macosx10.9 SDK * Xcode 7 Beta 6 and macosx10.10 SDK Until we found out how to query Xcode for Swift support in a reliable way, the RunCMake.Swift test cases will be restricted to negative ones.
| * | Swift: Require Xcode 6.1 and for MacOS X at least SDK 10.10Gregor Jasny2015-09-051-4/+31
| | |
| * | Swift: Make SwiftMix compatible with Swift 2Gregor Jasny2015-09-031-2/+4
| | |
* | | Merge topic 'fix-xcode-gtk2-tests'Brad King2015-09-091-0/+3
|\ \ \ | |_|/ |/| | | | | | | | 3b906c80 GTK2: Add --build-project to all GTK2 tests
| * | GTK2: Add --build-project to all GTK2 testsGregor Jasny2015-09-061-0/+3
| |/ | | | | | | Otherwise xcodebuild invocation will fail.
* | Merge topic 'fix-buildsystem-target-properties'Brad King2015-09-0816-7/+41
|\ \ | | | | | | | | | | | | | | | | | | b9856862 Tests: Cover set_property for buildsystem target properties 407ff47e cmTarget: Fix memory leak when SOURCES property is cleared cf74fc24 cmTarget: Fix buildsystem property empty value set and append operations
| * | Tests: Cover set_property for buildsystem target propertiesBrad King2015-09-0316-7/+41
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the RunCMake.set_property test with cases covering buildsystem target properties: * COMPILE_DEFINITIONS * COMPILE_FEATURES * COMPILE_OPTIONS * INCLUDE_DIRECTORIES * LINK_LIBRARIES * SOURCES Also test a non-buildsystem property to document the current difference in behavior. Refactor the existing LINK_LIBRARIES case to the same more-extensive test as the rest. Use the output generated by CMake 3.3 as the expected output for each test case.
* | Merge topic 'find_program-NAMES_PER_DIR'Brad King2015-09-0816-0/+43
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | find_program: Optionally consider all names in each directoryBrad King2015-09-023-0/+8
| | | | | | | | | | | | | | | | | | | | | When more than one value is given to the NAMES option this command by default will consider one name at a time and search every directory for it. Add a NAMES_PER_DIR option to tell this command to consider one directory at a time and search for all names in it.
| * | Tests: Add explicit testing for find_programBrad King2015-09-0214-0/+35
| | | | | | | | | | | | | | | | | | 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 'update-kwsys'Brad King2015-09-081-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | d2b8229d Tests: Fix Plugin test on Watcom compiler 89958fd0 bootstrap: Remove unused KWSys configuration c5cc3441 Merge branch 'upstream-kwsys' into update-kwsys 1b79433a KWSys 2015-08-28 (dc3fdd7f)
| * | Tests: Fix Plugin test on Watcom compilerBrad King2015-09-031-1/+1
| |/ | | | | | | | | | | The Watcom compiler does not have stream operators for std::string. Since KWSys no longer provides the operators for us, just use c_str() to avoid the problem and allow the test to compile on Watcom.
* | Merge topic 'add-link-search-static-properties-defaults'Brad King2015-09-036-2/+8
|\ \ | |/ |/| | | | | 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-026-2/+8
| | | | | | | | | | | | | | | | | | | | 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.
* | Merge topic 'swift2-compatibility'Brad King2015-09-022-3/+3
|\ \ | | | | | | | | | | | | 61b6d52a Swift: Use dump instead of println
| * | Swift: Use dump instead of printlnGregor Jasny2015-09-012-3/+3
| | | | | | | | | | | | | | | With Swift 2.0 in Xcode7 the println function was renamed into print. Use dump function instead which adds newlines like println.
* | | Merge topic 'modules-no-soname'Brad King2015-09-023-3/+3
|\ \ \ | | | | | | | | | | | | | | | | 21d99aa3 Tests: Use a less strict regular expression to look for "SONAME"
| * | | Tests: Use a less strict regular expression to look for "SONAME"Raphael Kubo da Costa2015-09-013-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 899458ab (Tests: Cover NO_SONAME property for SHARED libraries, 2015-08-20) introduced a few new ExportImport tests, and the check_lib_{no}soname.cmake scripts that parse readelf(1)'s output. Make the regular expression matching the SONAME line output by readelf less strict, as the output format varies across implementations: GNU binutils' readelf is the only one to write each ELF header within parentheses (which the previous regular expression expected). The new tests were thus failing when either Fedora's elfutils (eu-readelf) or elftoolchain's readelf (present on recent FreeBSD versions) were being used, as they both list the headers without parentheses. The same issue also affected Tests/Plugin's check_mod_soname.cmake, so fix that one as well -- the only reason the test was not failing is that it tested that the regular expression did not match, which was always the case with a non-binutils readelf.
* | | | Merge topic 'drop-cmsys-std-layer'Brad King2015-09-011-10/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 76fa8596 Tests: Remove use of include <kwsys/{ios,stl}> and kwsys_{ios,stl}::
| * | | | Tests: Remove use of include <kwsys/{ios,stl}> and kwsys_{ios,stl}::Brad King2015-08-311-10/+10
| | |/ / | |/| | | | | | | | | | We no longer need this compatibility layer for the compilers we support.
* | | | Merge topic 'fix-ios-install'Brad King2015-09-016-2/+29
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | ad262917 Xcode: Add unit test for iOS project install (#12506) 48fe617e Fix installation of iOS targets (#12506) d2c2319d Replace CMAKE_XCODE_EFFECTIVE_PLATFORMS with call to PlatformIsAppleIos
| * | | Xcode: Add unit test for iOS project install (#12506)Gregor Jasny2015-08-264-0/+29
| | | |
| * | | Replace CMAKE_XCODE_EFFECTIVE_PLATFORMS with call to PlatformIsAppleIosGregor Jasny2015-08-252-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the CMAKE_XCODE_EFFECTIVE_PLATFORMS property acts only as a kind of toggle switch to enable iOS project layout features. But instead of relying on this undocumented property, better detect the presence of an iOS SDK directly.
* | | | Merge topic 'cpack-config-generation-test'Brad King2015-08-316-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 674dc0b3 CPack generator independent tests
| * | | | CPack generator independent testsRoman Donchenko2015-08-286-0/+21
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | GenerateExportHeader: Use dllexport/dllimport on CygwinTony Kelman2015-08-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Cygwin sits on top of Windows and so can use explicit symbol export and import markup too. Co-Author: Yaakov Selkowitz <yselkowitz@cygwin.com>
* | | | Merge topic 'apple-tbd-stubs'Brad King2015-08-274-0/+27
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 67f60958 Darwin: Add support for tbd library stub files
| * | | | Darwin: Add support for tbd library stub filesGregor Jasny2015-08-244-0/+27
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting with Xcode 7 the OSX and iOS SDKs contain only stub files for dynamic system libraries. These stub files contain some meta data and a list of exported sysbols in plain text. They are handled by the toolchain like regular dylibs.
* | | | Merge topic 'java-updates'Brad King2015-08-275-0/+84
|\ \ \ \ | |/ / / |/| | | | | | | | | | | 4476feac UseJava: Add support for javah tool
| * | | UseJava: Add support for javah toolMarc Chevrier2015-08-215-0/+84
| | | | | | | | | | | | | | | | Add a `create_javah` API.
* | | | Merge topic 'drop-cmsys-std-layer'Brad King2015-08-242-32/+32
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 04e708d8 Remove use of include <cmsys/IOStream.hxx> from KWSys e8585f45 Remove use of include <cmsys/stl/*> and cmsys_stl::* 6db713c0 Remove use of include <cmsys/ios/*> and cmsys_ios::*
| * | | | Remove use of include <cmsys/ios/*> and cmsys_ios::*Brad King2015-08-202-32/+32
| | | | | | | | | | | | | | | | | | | | We no longer need this compatibility layer for the compilers we support.
* | | | | Merge topic 'ios-app-bundle-layout'Brad King2015-08-243-0/+81
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 744e6c49 Fix iOS Bundle layouts (#15669)
| * | | | | Fix iOS Bundle layouts (#15669)Gregor Jasny2015-08-243-0/+81
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In contrast to Mac OS X App bundle layout the iOS one lacks the Contents/MacOSX structure. See also the Bundle Structures documentation in Mac Developer Library: https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html For now detect iOS targets by checking the SDK name/path.
* | | | | include_directories: Fix regression in BEFORE option (#15693)Brad King2015-08-213-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit 6ed9c7e0 (cmState: Host buildsystem properties for directories, 2015-07-18) broke include_directories(BEFORE). Fix it and add a test case.
* | | | | Merge topic 'modules-no-soname'Brad King2015-08-218-31/+82
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | f799ffb5 Do not set SONAME for MODULE library targets (#15705) 899458ab Tests: Cover NO_SONAME property for SHARED libraries
| * | | | Do not set SONAME for MODULE library targets (#15705)Felix Geyer2015-08-203-31/+12
| | | | | | | | | | | | | | | | | | | | | | | | | The SONAME field is only useful for shared libraries that application link against.
| * | | | Tests: Cover NO_SONAME property for SHARED librariesBrad King2015-08-205-0/+70
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property was added by commit v2.8.9~204^2~2 (Support building shared libraries or modules without soname, 2012-04-22). A test for using the property on MODULE libraries was added by commit v2.8.9~204^2~1 (Test NO_SONAME property, 2012-04-23). Add such a test for SHARED libraries too.
* | | | Merge topic 'OUTPUT_NAME-genex-no-recursion'Brad King2015-08-215-0/+10
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | 3c37d264 cmGeneratorTarget: Avoid recursion in GetOutputName method
| * | | cmGeneratorTarget: Avoid recursion in GetOutputName methodRobert Goulet2015-08-205-0/+10
| |/ / | | | | | | | | | | | | | | | Since support for generator expressions was added to OUTPUT_NAME it is possible for project code to cause recursion in this method by using a $<TARGET_FILE> genex. Detect and reject such cases.