summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* VS: Add Visual Studio 17 2022 generatorBrad King2021-06-251-1/+7
| | | | Fixes: #22339
* Merge topic 'test-xcode-13' into release-3.21Brad King2021-06-211-1/+1
|\ | | | | | | | | | | | | 1dd0eae4fc Tests: Fix xcode version detection for Xcode 13 on ARM Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6248
| * Tests: Fix xcode version detection for Xcode 13 on ARMBrad King2021-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | Running `xcode -version` on an ARM box prints content to stderr: objc[...]: Class ... is implemented in both... One of the two will be used. Which one is undefined. Capture and parse only stdout. Otherwise we might configure test behavior for the wrong version of Xcode.
* | Tests: recognize Xcode 13 linker warningGregor Jasny2021-06-101-1/+1
| | | | | | | | | | | | | | | | | | The linker shipped with Xcode 13 changed the architecture mismatch linker warning into: ``` ld: warning: ignoring file libfoo.a, building for macOS-x86_64 but attempting to link with file built for macOS-i386 ```
* | Merge topic 'add_hip_language'Brad King2021-06-091-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8514ee9b31 HIP: analyze output of `hipcc` to determine default GPU architecture 20d086f1a2 HIP: All HIP tests now run on CMake's current AMD hardware 2e86e50c2f HIP: Add HIP to all the Check* modules 947dbed0aa HIP: Automatically inject the `hip::device` runtime target b50bfc8913 HIP: Add language to CMake ff0d2858e1 HIP: Extract clang compiler details from hipcc bd844387df ROCMClang: Add the ROCm toolkit derived clang compiler to CMake 590553f322 Compilers: protect use of __has_include ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Acked-by: Axel Huebl <axel.huebl@plasma.ninja> Merge-request: !6121
| * | HIP: Add language to CMakeRobert Maynard2021-06-071-0/+4
| | |
* | | Merge topic 'install-with-runtime-dependencies'Brad King2021-06-081-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d898cb3e1 FileAPI: Add integration for runtime dependency installers 72f2448e82 Help: Add documentation for runtime dependency installation 0c3c6acaff Tests: Add tests for new options 4910132d8c install: Add RUNTIME_DEPENDENCY_SET mode bc8a4a06a4 install(IMPORTED_RUNTIME_ARTIFACTS): Add RUNTIME_DEPENDENCY_SET option 3e7d3c252a install(TARGETS): Add RUNTIME_DEPENDENCY_SET argument ed3633d88c install(TARGETS): Add RUNTIME_DEPENDENCIES option f2617cf8e6 Source: Add cmInstallRuntimeDependencySet ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6186
| * | | Tests: Add tests for new optionsKyle Edwards2021-06-041-0/+1
| |/ /
* | | Tests: Add cases verifying flag ordering rulesBrad King2021-06-071-0/+5
|/ /
* | Merge topic 'test_driver_tap13_support'Brad King2021-04-291-4/+32
|\ \ | | | | | | | | | | | | | | | | | | | | | 3f6ff4b5db create_test_sourcelist: add test driver option to run all tests a3aa5596a1 Tests: Isolate TestDriver build directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3661
| * | create_test_sourcelist: add test driver option to run all testsSergey Bronnikov2021-04-281-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New option `-A` passed to test binary allows to run all testcases at once and prints a report in a standard format - TestAnythingProtocol v.13 [1]. Execution of test whose names will be passed after an option will be skipped. Sample of output: TAP version 13 1..6 ok 1 TestCryptoHash # 0.030000 ok 2 TestCryptoRand # 0.008000 not ok 3 TestCryptoCipher # 0.005000 ok 4 TestCryptoProtectData # 0.000000 cbPlainText: 21 cbCipherText: 32 PlainText: MySecretPassword123! (cbPlainText = 21, cbCipherText = 32) Decrypted CipherText: MySecretPassword123! ok 5 TestCryptoProtectMemory # 0.014000 ok 6 TestCryptoCertEnumCertificatesInStore # 0.000000 1. https://testanything.org/ Fixes: #19367
| * | Tests: Isolate TestDriver build directoriesBrad King2021-04-281-4/+6
| | |
* | | MSYS: Add support for running under MSYS runtime environmentOrgad Shaneh2021-04-261-1/+1
|/ / | | | | | | Detect MSYS as CYGWIN, with the required adaptations.
* | Tests: set CMAKE_PREFIX_PATH to the installation prefixBen Boeckel2021-03-191-1/+1
| | | | | | | | As it is documented to be.
* | FindDevIL: add imported targets and testsAlex2021-03-181-0/+1
| | | | | | | | Fixes: #21900
* | Tests: Enable Framework test case with spaces everywhere possibleBrad King2021-03-101-0/+1
| |
* | Tests: Update LibName to cover spaces in shared library nameBrad King2021-03-081-0/+2
| |
* | Tests: Enable MAKE_SUPPORTS_SPACES tests with Ninja generatorsBrad King2021-03-081-1/+1
| |
* | Merge topic 'test-macos-arm64'Brad King2021-02-231-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | 1c15eb39d2 Tests: Suppress failures on macOS arm64 due to separate Xcode signing phase 92418ac0ef Tests: Fix CTestTestCrash expected output on macOS arm64 8b22d9b3c3 Tests: Remove explicit no-signing marks from BundleTest 483db3de56 Tests: Clarify internal project name in RunCMake.GoogleTest cases Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5846
| * Tests: Fix CTestTestCrash expected output on macOS arm64Brad King2021-02-221-1/+1
| |
* | Tests: Fake home directory even if not setRaul Tambre2021-02-151-2/+2
|/ | | | | | | | In some cases ENV{HOME} might not be set, e.g. when run through a systemd service without User set. We should still to fake HOME in such cases as some tests (e.g. FindPackageTest) rely on it. We need only avoid setting ENV{CTEST_REAL_HOME} in such cases. Its possible absence seems to already be handled by tests.
* Tests: Disable MFC test for IntelLLVM due to #18311William R. Dieter2021-01-281-1/+8
| | | | | | | | | clang-cl cannot deal with implicit dependencies in UTF16 files (see #18311). IntelLLVM inherits this behavior from Clang. The MFC test uses `rc` in the way described in #18311 and gets the same error described in #18311. Disable the test until #18311 is fixed. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* Tests: Skip VSGNUFortran test for ifx.William R. Dieter2021-01-281-0/+4
| | | | DLLEXPORT is not implemented in ifx yet, and required by this test.
* Tests: Skip old PrecompiledHeader test on IntelLLVMBrad King2021-01-281-1/+1
| | | | | This test uses hard-coded flags for a fixed set of compilers. We have first-class PCH support implemented for IntelLLVM.
* CPackDeb: dpkg-shlibdeps now supports searching for private shared libsDeniz Bahadir2021-01-221-0/+20
| | | | | | | | | The new CPack variable `CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS` can be set to a list of directories. If `CPACK_DEBIAN_PACKAGE_SHLIBDEPS` or `CPACK_DEBIAN_<component>_PACKAGE_SHLIBDEPS` are set to `ON` these directories will be searched by `dpkg-shlibdeps` in order to find private shared library dependencies of the libraries/executables that shall be packed.
* Tests: Remove outdated CMakeTestMultipleConfigures testBrad King2021-01-151-15/+0
| | | | | | | | In practice this test has not helped us find any problems AFAIK. Tests like RunCMake.BuildDepends and other RunCMake tests cover much of what this test was meant to do. Since CMakeTestMultipleConfigures takes a long time to run on some generator/platform combinations, it is not worth what it covers. Remove the test.
* UseJava: enable exportation of native headers targetMarc Chevrier2020-12-291-0/+3
|
* Merge topic 'apple-silicon-host-arch'Brad King2020-12-111-0/+16
|\ | | | | | | | | | | | | | | b7f0327dcd Tests: Cover macOS host architecture selection on Apple Silicon hosts 5f882f6ce5 macOS: Offer control over host architecture on Apple Silicon hosts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5589
| * Tests: Cover macOS host architecture selection on Apple Silicon hostsBrad King2020-12-101-0/+16
| | | | | | | | | | | | | | | | | | | | Add test cases verifying that `CMAKE_APPLE_SILICON_PROCESSOR` set as either a cache or environment variable causes that to be selected as the host architecture. Also verify that sources compile using whatever is selected as the host architecture, even when the explicit setting is not used. Issue: #21554
* | Merge topic 'test-macos-version'Brad King2020-12-101-17/+17
|\ \ | |/ | | | | | | | | | | | | | | 55193c8013 ci: Hard-code XCTest deployment target to 10.15 40877903ac Tests: Remove outdated exclusion of tests on OS X 10.3 c404d7f221 Tests: Add cache entry to control XCTest deployment target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5593
| * Tests: Remove outdated exclusion of tests on OS X 10.3Brad King2020-12-091-12/+1
| |
| * Tests: Add cache entry to control XCTest deployment targetBrad King2020-12-091-5/+16
| |
* | Merge topic 'test-vs-windows-hosts'Brad King2020-12-041-1/+1
|\ \ | |/ | | | | | | | | | | dca8800cb5 Tests: Look for Visual Studio only on Windows hosts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5569
| * Tests: Look for Visual Studio only on Windows hostsBrad King2020-12-031-1/+1
| | | | | | | | | | | | | | | | | | Update logic added by commit 6051a49c78 (Visual Studio: Add Android support, 2020-06-12, v3.19.0-rc1~619^2) to only look for VS installations using `cmake_host_system_information` on Windows hosts. Otherwise the `VS_*_DIR` keys are not available. Fixes: #21547
* | Merge topic 'test-java-default'Brad King2020-11-251-3/+11
|\ \ | |/ | | | | | | | | | | 1af2d1d0ea Tests: Add CMake_TEST_Java option to control Java tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5532
| * Tests: Add CMake_TEST_Java option to control Java testsBrad King2020-11-241-3/+11
| |
* | server: remove deprecated 'cmake -E server' modeBrad King2020-10-141-9/+0
| | | | | | | | | | | | The server mode has been deprecated since commit 996e1885c4 (server: deprecate in favor of the file-api, 2019-04-19, v3.15.0-rc1~198^2). Clients should now be using the file-api. Remove the server mode.
* | FindIntl: Add imported targetSibi Siddharthan2020-10-131-0/+1
|/ | | | | Fixes: #21271 Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
* Tests: Add some basic tests for CMake GUIKyle Edwards2020-09-231-0/+4
|
* Utilities/Release: Drop now-unused scriptsBrad King2020-09-171-17/+0
| | | | | | | | | | | | | | Since these commits: * commit ab2276e6b9 (Utilities/Release: remove old macOS release script, 2020-09-16) * commit 7670ba8b0a (Utilities/Release: Drop win{32,64} scripts in favor of docker build, 2020-05-05, v3.18.0-rc1~203^2) * commit 689fdbfc61 (Utilities/Release: Drop linux64 script in favor of docker build, 2019-08-27, v3.16.0-rc1~184^2) several scripts we once used for producing release binaries for distribution on `cmake.org` are no longer needed.
* Utilities/Release: remove old macOS release scriptBen Boeckel2020-09-161-4/+0
| | | | macOS releases are now made by GitLab-CI.
* Help: Add Importing and Exporting GuideBetsy McPhail2020-09-111-1/+39
|
* Merge topic 'ispc_lang_support'Brad King2020-09-011-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | 5ece12b7e4 gitlab-ci: add ISPC to the Fedora CI image 8976817d6d ISPC: Update help documentation to include ISPC 2368f46ba4 ISPC: Support building with the MSVC toolchain e783bf8aa6 ISPC: Support ISPC header generation byproducts and parallel builds 34cc6acc81 Add ISPC compiler support to CMake 419d70d490 Refactor some swift only logic to be re-used by other languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5065
| * Add ISPC compiler support to CMakeRobert Maynard2020-08-281-0/+4
| |
* | WIN32_EXECUTABLE: Add support for generator expressionsKyle Edwards2020-08-211-0/+4
| |
* | Bootstrap: Add support for NinjaKyle Edwards2020-08-101-0/+1
|/
* CTest: Prefer normative terms to express subprocess failuresRobert Maynard2020-07-271-1/+1
| | | | Issue: #21004
* cmake: Remove broken '--warn-unused-vars' optionBrad King2020-06-291-30/+0
| | | | | | | | | | | | | This option has been broken since commit b9f9915516 (cmMakefile: Remove VarUsageStack., 2015-05-17, v3.3.0-rc1~52^2). That commit removed the check that an initialized variable has actually been used and caused the option to warn on every variable ever set. This was not caught by the test suite because the test for the feature only checked that warnings appear when needed and not that they do not appear when not needed. The option was never very practical to use. Remove it to avoid the runtime cost of usage tracking and checks for every variable (which we were doing even when the option was not used).
* Merge topic 'visual-studio-android'Brad King2020-06-261-16/+45
|\ | | | | | | | | | | | | | | | | | | 6051a49c78 Visual Studio: Add Android support bbcaf9689e Refactor: Add IsAndroidGuiExecutable() method to cmTarget 14456923bd cmGlobalVisualStudio10Generator: Move variable initialization to header d5b5c19278 cmGlobalGenerator: FindMakeProgram() before CMakeDetermineSystem Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4898
| * Visual Studio: Add Android supportKyle Edwards2020-06-241-16/+45
| |