summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests/Cuda: Return a non-zero code if errors occurredPierre Moreau2017-02-102-6/+8
|
* Tests/Cuda: Use memory allocated on the GPU in the kernelsPierre Moreau2017-02-102-10/+45
|
* Tests/Cuda: Add missing separable compilation propertyPierre Moreau2017-02-101-0/+2
| | | | | | | This resulted in `mixed_kernel()` returning an "invalid device function" at runtime for `file1_func()`. Suggested-by: Robert Maynard
* Tests/Cuda: Fix missing CUDA static library at runtime on macOSPierre Moreau2017-02-101-0/+6
| | | | Suggested-by: Robert Maynard
* Tests/Cuda: Output error messages to std::cerr instead of std::coutPierre Moreau2017-02-101-2/+2
|
* Tests/Cuda: Print asynchronous error messages, if anyPierre Moreau2017-02-103-0/+20
| | | | | | | | | | As kernel launches are asynchronous, a `cudaGetLastError()` right after the kernel launch might be executed while the kernel is still running. Synchronizing the device will ensure that all the work is completed before progressing further on, and allows to catch errors that were previously missed. The `cudaGetLastError()` after the `cudaDeviceSynchronize()` is there to reset the error variable to `cudaSuccess`.
* Tests/Cuda: Print error message if mixed_kernel failedPierre Moreau2017-02-101-0/+7
|
* Tests/Cuda: Add identifiers to error messagesPierre Moreau2017-02-102-2/+4
|
* Tests/Cuda: Print error message if an error occurredPierre Moreau2017-02-102-2/+2
| | | | Fixes c59811a2 "CUDA: Tests now state why they are failing when no CUDA card is found."
* Merge topic 'vs-nasm'Brad King2017-02-105-1/+35
|\ | | | | | | | | 5ba2c9e5 VS: Add support for ASM_NASM language
| * VS: Add support for ASM_NASM languageEvgeny Fimochkin2017-02-075-1/+35
| | | | | | | | Fixes: #16469
* | Tests: Fix `file://` URLs given to curlBrad King2017-02-106-6/+24
| | | | | | | | | | | | | | Since upstream curl commit curl-7_52_0~131 (URL-parser: for file://[host]/ URLs, the [host] must be localhost, 2016-11-11) we can no longer use URLs of the form `file://c:/...` on Windows. These worked only accidentally before. Use `file:///c:/...` instead.
* | Merge topic 'determine_id_without_user_specified_flags'Brad King2017-02-071-2/+2
|\ \ | | | | | | | | | | | | 72ed051b CMakeDetermineCompilerId: check with and without user-specified flags
| * | CMakeDetermineCompilerId: check with and without user-specified flagsMichael Maltese2017-02-061-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | Clang may raise an error when passed a `-march=` option that doesn't correspond to the current target triple. CMake cannot pass the target triple when determining the compiler id because it doesn't know how yet, but it does pass along user-specified flags. This breaks when those user-specified flags include `-march=`. Fix this use case by also trying to find the compiler id without the user-specified flags. Fixes: #16587
* | FeatureSummary: Add FeatureSummary_<TYPE>_DESCRIPTION global propertiesDaniele E. Domenichelli2017-02-063-0/+250
| | | | | | | | | | | | The global property FeatureSummary_<TYPE>_DESCRIPTION can be defined for each type to replace the type name with the specified string whenever the package type is used in an output string.
* | FeatureSummary: Add DEFAULT_DESCRIPTION option to feature_summaryDaniele E. Domenichelli2017-02-063-0/+129
|/ | | | | If enabled and only one package type is selected, it will print the default title for the selected package type.
* 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.
* | | | Merge topic 'timestamp-percent'Brad King2017-01-302-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 6c54f7b3 string: Teach TIMESTAMP to treat %% as %
| * | | | string: Teach TIMESTAMP to treat %% as %Bernhard M. Wiedemann2017-01-272-2/+2
| | |_|/ | |/| | | | | | | | | | This encoding is documented by `strptime`.
* | | | Merge topic 'test-preprocess-configs'Brad King2017-01-301-4/+10
|\ \ \ \ | |/ / / |/| | | | | | | | | | | f01045ea Tests: Make Preprocess test work in RelWithDebInfo and MinSizeRel
| * | | Tests: Make Preprocess test work in RelWithDebInfo and MinSizeRelGilles Khouzam2017-01-271-4/+10
| | |/ | |/|
* | | Merge topic 'genex-if'Brad King2017-01-276-0/+31
|\ \ \ | | | | | | | | | | | | | | | | 895f7f16 Genex: Add `IF` generator expression
| * | | Genex: Add `IF` generator expressionColby Pike2017-01-266-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows a single condition to be used to choose between two alternatives. Without this the condition must be duplicated with one surrounded by `NOT`. Closes: #15585
* | | | Merge topic 'topic-reproducible-build'Brad King2017-01-2713-0/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 243aed52 cmTimestamp: Support SOURCE_DATE_EPOCH to override current time
| * | | | cmTimestamp: Support SOURCE_DATE_EPOCH to override current timeBernhard M. Wiedemann2017-01-2613-0/+25
| | |_|/ | |/| | | | | | | | | | | | | | | | | | See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable.
* | | | Merge topic 'test-GeneratorExpression-update'Brad King2017-01-272-17/+15
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | c3a22518 Tests: Extend GeneratorExpression to work with more configurations d4911724 Tests: Teach GeneratorExpression to cover spaces in include dirs 1a2a9b0d Tests: Simplify GeneratorExpression imported include directory check
| * | | Tests: Extend GeneratorExpression to work with more configurationsBrad King2017-01-262-1/+5
| | | | | | | | | | | | | | | | Add missing pieces for RelWithDebInfo and MinSizeRel.
| * | | Tests: Teach GeneratorExpression to cover spaces in include dirsBrad King2017-01-262-3/+3
| | | | | | | | | | | | | | | | | | | | Add a space to the imported include directories used for the test. This works around funny quoted-`;` interpretation by Visual Studio.
| * | | Tests: Simplify GeneratorExpression imported include directory checkBrad King2017-01-262-15/+9
| | | | | | | | | | | | | | | | Do not duplicate the list of include directories 4 times.
* | | | Merge topic 'tests_auto_type'Brad King2017-01-262-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | ef47272b Tests: use cxx_auto_type only if actually available
| * | | | Tests: use cxx_auto_type only if actually availableRolf Eike Beer2017-01-252-1/+4
| |/ / / | | | | | | | | | | | | | | | | The presence of CMAKE_CXX_COMPILE_FEATURES doesn't mean cxx_auto_type is always available.
* | | | Merge topic 'FindGTK2_RunTwice'Brad King2017-01-264-0/+32
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | 4bc2c16b FindGTK2: Add unit test to check variables when run twice 9702b3ee FindGTK2: Fix GTK2_LIBRARIES and GTK2_TARGETS when called twice