summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Simplify CMakeOnly.AllFindModules policy settingsBrad King2017-04-211-5/+1
|
* Tests: Fix FindModulesExecuteAll when KDE4 is installedBrad King2017-04-211-1/+1
| | | | | | | Set `CMP0017` to `NEW` so that when FindKDE4 sets `CMAKE_MODULE_PATH` it does not break internal dependencies of other find modules. Fixes: #16823
* Merge branch 'server-mode-test-no-pyc' into releaseBrad King2017-04-031-0/+1
|\
| * Tests: Avoid generating .pyc files during Server testBrad King2017-04-031-0/+1
| | | | | | | | | | | | Avoid writing any files to the source tree during testing. Fixes: #16770
* | Merge branch 'mac-implicit-link-no-lto-flag' into releaseBrad King2017-04-031-0/+6
|\ \
| * | CMakeParseImplicitLinkInfo: Ignore ld -lto_library flagBrad King2017-04-031-0/+6
| |/ | | | | | | | | | | | | The `ld` tool in Xcode 8.3 now has a `-lto_library <path>` flag. Ignore the flag instead of accidentally parsing it as `-l` with `to_library`. Fixes: #16766
* | Tests: Fix spurious CTestTestParallel failuresBrad King2017-03-311-2/+2
|/ | | | | | | If `CTestTestParallel` was run at the same time as `CTestTestChecksum` (e.g. during parallel testing) then the former fails due to the latter stepping on its directory. Fix the directory used for the latter to avoid the conflict.
* Merge branch '16742-swift-3.0' into releaseBrad King2017-03-292-7/+3
|\
| * Swift: Simplify mixed test case to make it version agnosticGregor Jasny2017-03-292-20/+3
| | | | | | | | Issue: #16742
| * Swift: Default to Swift 3.0 with Xcode 8.3 and laterGregor Jasny2017-03-282-1/+14
| | | | | | | | | | | | | | Xcode 8.3 has dropped support for Swift 2.3 so that compiler and feature detection failed. Closes #16742
* | CPack/RPM tests: handle build-id linksDomen Vrankar2017-03-273-5/+11
|/ | | | | | | | | Build id links generation was introduced in rpm 4.13.0.1 so files related to them should be ignored as they are not relevant for the tests. Fixes #16710
* Merge branch 'implicit-dir-symlinks' into releaseBrad King2017-03-029-0/+74
|\
| * Tests: Add case for RPATH exclusion of symlinks to implicit directoriesBrad King2017-03-029-0/+74
| | | | | | | | Issue: #16682
* | Merge branch 'csproj_add_free_source_tags' into releaseBrad King2017-03-024-0/+38
|\ \
| * | VS: add test for VS_CSHARP_* source file propertyMichael Stürmer2017-03-014-0/+38
| |/
* | Merge branch 'find-libarch-not-symlink' into releaseBrad King2017-02-283-0/+29
|\ \
| * | find_library: Skip 'lib => lib<arch>' searches if one symlinks the otherBrad King2017-02-283-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `FIND_LIBRARY_USE_LIB<arch>_PATHS` global properties ask `find_library` to look in `lib<arch>` directories automatically before corresponding `lib` directories. However, if `lib<arch>` is just a symlink to `lib` (or vice-versa) then we should skip adding the `lib<arch>` path. Such symlinks typically only exist to satisfy software that expects the `lib<arch>` path to be available. Fixes: #16687
| * | Merge branch '16449-revert-xcode-system-includes' into releaseBrad King2016-11-282-14/+5
| |\ \
| * | | Android: Add CMAKE_<LANG>_ANDROID_TOOLCHAIN_MACHINEBrad King2016-11-181-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose the binutils' machine name (typically used as a prefix on the tool names) publicly. This is expected to match the `gcc -dumpmachine` value. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
| * | | Android: Add CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG variableBrad King2016-11-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NDK provides prebuilt toolchain files in directories named for the host architecture. The NDK build system calls this `HOST_TAG`. Expose the value publicly for use by clients that need to pass it to external tools. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
| * | | Android: Always set CMAKE_ANDROID_NDK_TOOLCHAIN_VERSIONBrad King2016-11-181-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this variable is not set by the user or toolchain file, set it to the default selected. This will be useful for client code that needs to pass the value to an external tool that needs to find the same toolchain in the NDK. Leave it empty for a standalone toolchain. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
* | | | Merge branch 'object-library-compile-pdb' into releaseBrad King2017-02-241-0/+1
|\ \ \ \
| * | | | Fix COMPILE_PDB_NAME when used on an OBJECT libraryBrad King2017-02-241-0/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | When `COMPILE_PDB_NAME` is used without `COMPILE_PDB_OUTPUT_DIRECTORY` we cannot fall back on the link `PDB_OUTPUT_DIRECTORY` for an object library because it has no link step. Fixes: #16674
* | | | Merge branch 'clang-format-attrs' into releaseBrad King2017-02-224-0/+8
|\ \ \ \
| * | | | clang-format.bash: Use Git attributes to mark files for formattingBrad King2017-02-224-0/+8
| | | | |
* | | | | CUDA: Fix test cases to not override CUDA flagsBrad King2017-02-155-5/+5
| | | | | | | | | | | | | | | | | | | | Append to `CMAKE_CUDA_FLAGS` instead of overwriting it.
* | | | | CUDA: Link to standard system libraries when linking as CUDABrad King2017-02-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows with MSVC-like host compilers we must honor the standard libraries chosen by the `Platform/Windows-MSVC` module. Otherwise C code linked into the CUDA binary that expects to have these libraries available may not link.
* | | | | Tests: Add case for CUDA with C but not C++Brad King2017-02-144-0/+35
|/ / / / | | | | | | | | | | | | An executable using CUDA and C should link as CUDA.
* | | | Tests: Run clang-format on CUDA codeBrad King2017-02-1416-86/+59
| | | |
* | | | clang-format.bash: Format CUDA source files tooBrad King2017-02-142-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | Add `.clang-format` configuration files for Cuda test directories that use `Standard: Cpp11`. Otherwise clang-format splits the triple angle brackets used for CUDA kernels.
* | | | CUDA: Detect the toolkit include directoriesRobert Maynard2017-02-104-0/+31
|/ / / | | | | | | | | | | | | The `nvcc -v` output provides what include directories need to be added to use the CUDA toolkit from other languages ( C/C++ ).
* | | AndroidTestUtilities: do not require ExternalData unconditionallyZack Galbreath2017-02-043-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempting to use AndroidTestUtilities to simply install some local files on device can result in the following error: Neither ExternalData_URL_TEMPLATES nor ExternalData_OBJECT_STORES is set We no longer require these ExternalData-specific variables to be set if no such remote data files are requested. Fixes: #16529
* | | Tests/Module/WCDH: only use -Werror=undef compiler flag if actually supportedRolf Eike Beer2017-02-021-1/+5
| | |
* | | Tests/Module/WCDH: write multi_file_compiler_detection.h before using itRolf Eike Beer2017-02-021-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | This was broken in commit 98e6d1e5e426c491e04faa746c11746002e6a69d (Tests/Module/WCDH: make it work with only C features defined) when all C tests were made accessible even if no C++ features are available, but the header was only created if C++ features are available. Fix it by creating the header unconditionally before any checks on the available features.
* | | Merge topic 'WCDH_allow_unsupported'Brad King2017-02-012-60/+86
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1679fecb CompileFeatures Test: make sure the target "CompileFeatures" is always defined 98e6d1e5 Tests/Module/WCDH: make it work with only C features defined c8703e9d WCDH: optionally omit error code for unknown compilers or compiler versions 0de9c398 WCDH: add macro to write simple replacement defines
| * | | CompileFeatures Test: make sure the target "CompileFeatures" is always definedRolf Eike Beer2017-01-301-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | Everything in there guards against unsupported compilers already, so no need to skip the whole file if no features are defined. This in turn allows to have a simpler fallback in case there is no C++ auto_type feature available.
| * | | Tests/Module/WCDH: make it work with only C features definedRolf Eike Beer2017-01-301-51/+51
| | | |
| * | | WCDH: optionally omit error code for unknown compilers or compiler versionsRolf Eike Beer2017-01-301-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | This allows one to generate a header that will basically always work. In case an unknown compiler or compiler version is encountered it simply falls back to the unsupported case.
* | | | Merge topic 'topic-reproducible-build'Brad King2017-01-312-0/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 5181f1f8 Tests: make tests pass with SOURCE_DATE_EPOCH set
| * | | | Tests: make tests pass with SOURCE_DATE_EPOCH setBernhard M. Wiedemann2017-01-302-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix tests to account for commit 243aed52 (cmTimestamp: Support SOURCE_DATE_EPOCH to override current time, 2017-01-25). In openSUSE we are running the test-suite as part of the build and that failed in these two places when building everything with `SOURCE_DATE_EPOCH` set.
* | | | | Merge topic '16432-static-frameworks'Brad King2017-01-318-71/+109
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 071f8e78 Apple: Add support for static frameworks d525754e Xcode: Refactor RunCMake.Framework test to prepare for static frameworks 45405f00 Xcode: Ignore Xcode project warning until issue is fixed 50e1c105 Makefile: For static libraries remove only the "real" lib before creating 8643ca75 Makefile: Re-order list of files to clean
| * | | | Apple: Add support for static frameworksGregor Jasny2017-01-316-41/+94
| | | | | | | | | | | | | | | | | | | | Closes: #16432
| * | | | Xcode: Refactor RunCMake.Framework test to prepare for static frameworksGregor Jasny2017-01-262-33/+18
| | | | |
| * | | | Xcode: Ignore Xcode project warning until issue is fixedGregor Jasny2017-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | Issue: #15272
* | | | | Merge topic 'FeatureSummary_enhancement'Brad King2017-01-3042-8/+518
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 560574b0 FeatureSummary: Update release notes 3cfde818 FeatureSummary: Refactor to use global properties for package types f0165eb6 FeatureSummary: Allow lists of dependencies in ADD_FEATURE_INFO 9da7bf08 FeatureSummary: Add QUIET_ON_EMPTY option to feature_summary 4cf4aceb FeatureSummary: Add unit tests 614a97a5 FeatureSummary: Do not force OPTIONAL type in SET_PACKAGE_PROPERTIES 65a0bfd8 FeatureSummary: Add deprecation warnings to deprecated commands 4da3cae9 FeatureSummary: Clean printed output
| * | | | | FeatureSummary: Refactor to use global properties for package typesDaniele E. Domenichelli2017-01-2618-0/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These new global properties were added: * FeatureSummary_PKG_TYPES: Package types accepted by FeatureSummary (default REQUIRED RECOMMENDED OPTIONAL RUNTIME). * FeatureSummary_REQUIRED_PKG_TYPES: Package types that will cause FeatureSummary to abort when called with FATAL_ON_MISSING_REQUIRED_PACKAGES and a package in these categories is missing (default REQUIRED). * FeatureSummary_DEFAULT_PKG_TYPE: Default package type assigned when not explicitly assigned by the user (default OPTIONAL). This allows to add and remove new package types that can be printed selectively using the "WHAT" argument.
| * | | | | FeatureSummary: Allow lists of dependencies in ADD_FEATURE_INFODaniele E. Domenichelli2017-01-263-0/+23
| | | | | |
| * | | | | FeatureSummary: Add QUIET_ON_EMPTY option to feature_summaryDaniele E. Domenichelli2017-01-263-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option suppresses the output when the list of packages that belong to the selected category is empty.
| * | | | | FeatureSummary: Add unit testsDaniele E. Domenichelli2017-01-2616-0/+259
| | | | | |
| * | | | | FeatureSummary: Clean printed outputDaniele E. Domenichelli2017-01-265-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove space before commas * Do not add an empty line before the first type of packages Also fix a typo in unit test.