summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Add test for OSX/iOS Framework directory structure (#15833)Gregor Jasny2015-11-139-0/+131
|
* Alias: Fix access at generate-time (#15832)Stephen Kelly2015-11-083-1/+13
| | | | | | | | | | | | Commit c389f8bb (cmLocalGenerator: Port Find method away from GetGeneratorTarget, 2015-10-25) ported the implementation of FindGeneratorTargetToUse away from the FindTargetToUse method, but neglected to handle alias targets. The latter method has a parameter to determine whether to include alias targets in the search, but as that is only needed at configure time, this generate-time equivalent does not need the condition.
* Merge topic 'cpack-deb-config-file-source-field'Brad King2015-11-063-0/+109
|\ | | | | | | | | | | e5b70ed0 CPackDEB: added config file optional Source field f2d98e2d CPackDEB: minor documentation and debug logging fixes
| * CPackDEB: added config file optional Source fieldRaffi Enficiaud2015-11-043-0/+109
| |
* | CPackDeb: ctest tests for compression scheme leakRaffi Enficiaud2015-11-034-2/+72
|/ | | | | | Test that changing compression of debian package content does not affect DEBIAN/ files which must be gzipped
* Merge topic 'fix-find_program-regression'Brad King2015-11-024-0/+14
|\ | | | | | | | | 31e6571c find_program: Fix regression in finding an already-known path
| * find_program: Fix regression in finding an already-known pathBrad King2015-10-304-0/+14
| | | | | | | | | | | | | | | | Changes in commit v3.4.0-rc1~124^2~1 (cmFindProgramCommand: Re-implement search using more flexible approach, 2015-09-01) did not preserve the behavior of looking for the given name with no search path at all. Fix this and add a test case covering finding an absolute path with no search directories.
* | FindPkgConfig: return actual error when a package is not found (#15810)Benjamin Chrétien2015-10-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases, CMake returned the following error: -- Checking for module 'foo' -- Package 'foo' not found When the actual error returned by pkg-config was: Package 'bar', required by 'foo', not found Now, the actual error is forwarded to the user. -- Checking for module 'foo' -- Package 'bar', required by 'foo', not found For the standard case (i.e. the package was indeed not found), the CMake error was: -- Checking for module 'foo' -- Package 'foo' not found But it now prints: -- Checking for module 'foo' -- No package 'foo' found The associated test was also updated. ${last} refers to the last CLI argument.
* | Tests: Disable parallel test execution while running ctest_testStephen Kelly2015-10-271-0/+1
| |
* | Tests: Don't overwrite RunCMake_TEST_FAILED variableStephen Kelly2015-10-271-5/+5
| |
* | Merge topic 'xcode-watch-and-tvos'Brad King2015-10-262-6/+56
|\ \ | | | | | | | | | | | | a91eebeb Xcode: Recognise Watch and TV OS as embedded platforms
| * | Xcode: Recognise Watch and TV OS as embedded platformsGregor Jasny2015-10-232-6/+56
| | |
* | | Merge topic 'xcode-optimization-flags'Brad King2015-10-267-0/+63
|\ \ \ | | | | | | | | | | | | | | | | 601e6e1a Xcode: Use regular expression to extract all optimisation flags (#15794)
| * | | Xcode: Use regular expression to extract all optimisation flags (#15794)Gregor Jasny2015-10-237-0/+63
| |/ /
* | | Merge topic 'fix-test-RUN_SERIAL-failure-regression'Brad King2015-10-264-0/+27
|\ \ \ | | | | | | | | | | | | | | | | e61973e1 CTest: Fix regression in handling of a RUN_SERIAL test that fails
| * | | CTest: Fix regression in handling of a RUN_SERIAL test that failsBrad King2015-10-234-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit v3.4.0-rc1~390^2~1 (cmCTestMultiProcessHandler: Refactor RUN_SERIAL implementation, 2015-06-01) forgot to update a code path for cleaning up after a failed RUN_SERIAL test. This causes an infinite loop after a RUN_SERIAL test fails. Fix it and add a test.
* | | | Merge topic 'cmLocalGenerator-generator-target-storage'Brad King2015-10-218-52/+74
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a4bbdc5e cmLocalGenerator: Remove cmGeneratorTargetsType from setter API. 04b6bb16 cmLocalGenerator: Simplify semantic of adding generator targets. 400e3d19 cmLocalGenerator: Don't store imported generator targets 726e461b CMP0063: Split unit test by target type.
| * | | | CMP0063: Split unit test by target type.Stephen Kelly2015-10-208-52/+74
| | | | | | | | | | | | | | | | | | | | Don't rely on the order of warnings for targets being deterministic.
* | | | | Merge topic 'fix-CMP0054-elseif-warning'Brad King2015-10-214-0/+29
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | d6a03b47 cmIfCommand: Issue CMP0054 warning with appropriate context. (#15802)
| * | | cmIfCommand: Issue CMP0054 warning with appropriate context. (#15802)Stephen Kelly2015-10-204-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit v3.4.0-rc1~494^2~4 (cmMakefile: Add API for elseif to create backtrace., 2015-05-29) removed the use of cmMakefileCall to push/pop execution context in favor of a new way to create backtraces. However, a call to cmMakefile::GetExecutionContext is still invoked to issue a contextual CMP0054 warning through cmConditionEvaluator. As the elseif is not part of the call stack, this resulted in trying to access an empty vector. Avoid the attempt at getting execution context when evaluating elseif by constructing a context and backtrace on behalf of the cmConditionEvaluator in all cases.
| * | | Merge branch 'revert-compiler-features-solaris' into releaseBrad King2015-10-121-2/+1
| |\ \ \
* | | | | Tests: Fix DelphiCoverage test file selectionJoseph Snyder2015-10-202-2/+3
| |_|/ / |/| | | | | | | | | | | | | | | | | | | The HTML file for the Delphi Code coverage was being found by the Dashboard coverage run of CMake itself. Switch it to be a configured file to eliminate this extra reading.
* | | | Subdirs: Initialize from parent before configuring.Stephen Kelly2015-10-132-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new API for the subdirs command to cmState. This fixes a regression introduced in commit f716460e (cmMakefile: Move invokation to initialize snapshot., 2015-10-06).
* | | | Merge topic 'revert-compiler-features-solaris'Brad King2015-10-121-2/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | 340d0897 Revert topic 'compiler-features-solaris'
| * | | Revert topic 'compiler-features-solaris'Brad King2015-10-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit v3.4.0-rc1~10^2~2 (Features: Disable support for Oracle SolarisStudio on non-Linux, 2015-09-29) and two follow-up commits. The support of compile features and language standards on Orcale SolarisStudio needs more investigation so for CMake 3.4 we should just act as 3.3 did.
* | | | Merge topic 'cmake-script-mode-directory-vars'Brad King2015-10-082-0/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 8bb908b1 Document and test CMAKE_[CURRENT_](BINARY|SOURCE)_DIR in script mode
| * | | | Document and test CMAKE_[CURRENT_](BINARY|SOURCE)_DIR in script modeTamas Kenez2015-10-062-0/+15
| | |/ / | |/| |
* | | | Tests: Add a nightly Linux 64-bit binaryBrad King2015-10-061-0/+2
| | | |
* | | | Tests: Rename Linux nightly release binary test to Linux32Brad King2015-10-061-1/+1
| | | | | | | | | | | | | | | | Distinguish the name from a future 64-bit nightly binary.
* | | | Tests: Rename OS X nightly release binary testBrad King2015-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | The "Mac64" build is now the primary and only OS X build, so just name it "OSX".
* | | | Tests: Drop nightly OS X ppc/i386 binaryBrad King2015-10-051-2/+0
|/ / / | | | | | | | | | | | | Users with OS X 10.5 or below can build from source or use an older CMake version.
* | | Merge topic 'vs-win10-store'Brad King2015-10-054-3/+59
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2402bb8c Help: Document Windows 10 Universal Applications in cmake-toolchains(7) 1be2f12c VS: Add support for Windows 10 Universal (Store) Applications 2798dbda VS: Refactor indentation of LinkLibraryDependencies 8c426183 MSVC: Add system libs for WindowsStore on VS 2015 d1b87d72 VS: Select Windows 10 Store SDK and toolset for VS 2015
| * | | VS: Add support for Windows 10 Universal (Store) ApplicationsGilles Khouzam2015-10-054-3/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the VS 2015 generator to support WindowsStore 10.0 applications. Add target properties to customize them: * VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION: Specifies the minimum version of the OS that the project can target. * VS_DESKTOP_EXTENSIONS_VERSION, VS_MOBILE_EXTENSIONS_VERSIONS, VS_IOT_EXTENSIONS_VERSION: Add a reference to the version of the SDK specified to the target allowing to target the extended functionality in a universal project. * VS_IOT_STARTUP_TASK: Specifies that the target should be built as an IOT continuous background task.
* | | | Merge topic 'compiler-features-solaris'Brad King2015-10-021-1/+2
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | 5fdf7594 Tests: Suppress WriteCompilerDetectionHeader failure on SunPro c824b23d Features: Fix C++98 flags on Oracle SolarisStudio 12.4 on Linux 61bc0f73 Features: Disable support for Oracle SolarisStudio on non-Linux
| * | | Tests: Suppress WriteCompilerDetectionHeader failure on SunProBrad King2015-09-301-1/+2
| |/ / | | | | | | | | | | | | | | | We do support SunPro 5.13 compiler features, but only on Linux. Suppress the portion of the test that fails on Solaris until the larger problem can be addressed.
* | | Merge topic 'test-FindPackageModeMakefileTest-flags'Brad King2015-10-021-2/+3
|\ \ \ | | | | | | | | | | | | | | | | 85d7a610 Tests: Use consistent C++ flags FindPackageModeMakefileTest
| * | | Tests: Use consistent C++ flags FindPackageModeMakefileTestBrad King2015-10-011-2/+3
| |/ / | | | | | | | | | | | | | | | | | | Rather than using the CXXFLAGS environment variable in the make-only build, copy the CMAKE_CXX_FLAGS used to build the files on the CMake side. This will account for any changes made by CompileFlags.cmake or cache-provided flags.
* | | 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)