summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Add sample XCOFF binariesBrad King2021-02-032-0/+0
| | | | | | | | | | | Generate the binaries as follows: $ cat main.c int main(void) { return 0; } $ xlc -q64 -o xcoff64.bin -Wl,-blibpath:/sample/rpath:/usr/lib:/lib main.c $ strip -X 64 xcoff64.bin $ xlc -q32 -o xcoff32.bin -Wl,-blibpath:/sample/rpath:/usr/lib:/lib main.c $ strip -X 32 xcoff32.bin
* Tests: Convert CMake.ELF to RunCMake.file-RPATH ELF caseBrad King2021-02-039-15/+19
|
* Merge topic 'pch-reuse-from-obj-msvc'Brad King2021-02-032-0/+132
|\ | | | | | | | | | | | | c450d66daa PCH: Remove restrictions for REUSE_FROM signature for MSVC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5765
| * PCH: Remove restrictions for REUSE_FROM signature for MSVCCristian Adam2021-02-022-0/+132
| | | | | | | | Fixes: #20201
| * Revert "PCH: Remove restrictions for REUSE_FROM signature for MSVC"Brad King2021-02-022-132/+0
| | | | | | | | | | This reverts commit 9f060971411aca979807f70307d8b9fe1b43ff24. It was merged accidentally.
| * Merge topic 'pch-reuse-from-obj-msvc'Brad King2021-02-022-0/+132
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 9f06097141 PCH: Remove restrictions for REUSE_FROM signature for MSVC Acked-by: Kitware Robot <kwrobot@kitware.com> Rejected-by: Cristian Adam <cristian.adam@gmail.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !5728
| | * PCH: Remove restrictions for REUSE_FROM signature for MSVCCristian Adam2021-02-022-0/+132
| | | | | | | | | | | | Fixes: #20201
* | | file(CONFIGURE): Use text mode for default OUTPUT contentCristian Adam2021-02-021-1/+5
|/ / | | | | | | | | | | This affects only Windows where \n will be translated as \r\n Fixes: #21769
* | Merge topic 'issue-19198'Brad King2021-02-0211-0/+141
|\ \ | | | | | | | | | | | | | | | | | | | | | 255df8622b file(GENERATE): Support new line style Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !5649
| * | file(GENERATE): Support new line styleAsit Dhal2021-02-0111-0/+141
| | | | | | | | | | | | Fixes: #19198
* | | Merge topic 'fix21727_for_FindOpenSSL'Brad King2021-02-026-0/+86
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bc00cf9300 FindOpenSSL: Add support for version-range Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5750
| * | | FindOpenSSL: Add support for version-rangeDeniz Bahadir2021-02-016-0/+86
| |/ /
* | | Merge topic 'shlibdeps-fixup'Brad King2021-02-021-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 1aefa86c31 Tests: Accept line breaks in more places in dpkg-shlibdeps error message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5751
| * | | Tests: Accept line breaks in more places in dpkg-shlibdeps error messagewilliam.r.dieter2021-02-011-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | The RunCPackVerifyResult-shlibdeps-with-private-lib-failure test failed intermittently due to sometimes breaking lines in its output in different places. This change accepts line breaks in more places in the command output. Signed-off-by: william.r.dieter <william.r.dieter@intel.com>
* | | Merge topic 'tests-setgid'Brad King2021-02-021-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8213390a3e Added `SETUID` and `SETGID` to the list of accepted file permissions f41d0e0c77 Tests: Explicitly set permissions in CPack tests to avoid perimssions errors Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5754
| * | | Tests: Explicitly set permissions in CPack tests to avoid perimssions errorswilliam.r.dieter2021-01-291-0/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user has the setgid bit is set on the parent directory of the build directory, the setgid bit will be propagated throughout the build tree. Most tests do not care about permissions as long as they can read and write the files the need. The CPack tests, however, validate that permissions match an expected set, and fail with the setgid bit set. Explicitly set permissions on directories created in the CPackTestHelpers to clear the setgid bit. Signed-off-by: william.r.dieter <william.r.dieter@intel.com>
* | | Merge topic 'bad-dns-no_proxy'Brad King2021-02-022-0/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | c0b1f5f30c Tests: Add host to ENV{no_proxy} when DNS lookup failure is expected Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5752
| * | | Tests: Add host to ENV{no_proxy} when DNS lookup failure is expectedwilliam.r.dieter2021-01-292-0/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DNS lookup of an invalid host name fails with a different error in a proxy environment than it does in an environment without proxy. Many tools, including curl, use the `no_proxy` environment variable to provid a list of hosts for which proxy should not be used. To make lookup failure consistent, add invalid host names to the `no_proxy` environment variable in tests that attempt to look up invalid host names. This way the lookup will fail consistently regardless of whether proxy is generally used or not. Signed-off-by: william.r.dieter <william.r.dieter@intel.com>
* | | Merge topic 'file-configure-newline'Brad King2021-02-011-1/+6
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 6e225efd8c file(CONFIGURE): Fix newlines in CONTENT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5747
| * | file(CONFIGURE): Fix newlines in CONTENTCristian Adam2021-01-291-1/+6
| | | | | | | | | | | | Fixes: #21749
* | | Merge topic 'cmake_path-stabilization'Craig Scott2021-01-2911-24/+24
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 76cea3dfe2 cmake_path: rename 'GET ... RELATIVE_PATH' to 'GET ... RELATIVE_PART' Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5743
| * | | cmake_path: rename 'GET ... RELATIVE_PATH' to 'GET ... RELATIVE_PART'Marc Chevrier2021-01-2811-24/+24
| | |/ | |/| | | | | | | | | | | | | | | | For consistency, subcommand 'HAS_RELATIVE_PATH' is also renamed to 'HAS_RELATIVE_PART'. Fixes: #21385
* | | Merge topic 'externalproject-update-refactor'Brad King2021-01-295-1/+96
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ac6a4d4884 ExternalProject: Improve robustness of update step 17c4c8b92b Tests: Prevent the noisy CMP0114 warnings in ExternalProjectUpdate test 1cb65e680d ExternalProject: Prevent the noisy detached head messages on checkout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5389
| * | | ExternalProject: Improve robustness of update stepCraig Scott2021-01-284-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the update logic to make it easier to follow. The following fixes/improvements are some consequences of this change: * Absorb a confusing git checkout failure message when the failure is allowed and we act on that failure appropriately. * Fix an unnecessary fetch in some scenarios when checking out a git hash we already have locally. * Stash and restore any local changes even when not rebasing. * Avoid unsafe rebasing where we are not on a branch that is already tracking the requested branch. * When fetching, use --tags --force to ensure we get all the tags and commits leading up to them regardless of whether the tags are on branches or not. Also update our local tags if they move on the remote. Fixes: #20677
| * | | Tests: Prevent the noisy CMP0114 warnings in ExternalProjectUpdate testCraig Scott2021-01-281-0/+5
| | |/ | |/|
* | | 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 per file PDBs in PDBDirectoryAndName for IntelLLVMWilliam R. Dieter2021-01-281-2/+3
| | | | | | | | | | | | | | | | | | The IntelLLVM C compiler do not yet support PDBs per file with the /Fd option. Disable the parts of PDBDirectoryAndName that tries to generate them so that the test will pass.
* | | Tests: Update RunCMake.GenerateExportHeader for IntelLLVMBrad King2021-01-281-1/+1
| | | | | | | | | | | | On Windows, the expected results are like Clang's.
* | | 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.
* | | Tests: Update CompileFeatures test for IntelLLVMBrad King2021-01-281-2/+2
| | | | | | | | | | | | We do not have granular features for this compiler.
* | | Tests: Update Module.WriteCompilerDetectionHeader for IntelLLVMBrad King2021-01-281-2/+2
| | |
* | | Tests: Update RunCMake.FileAPI for IntelLLVMBrad King2021-01-281-1/+1
| | |
* | | Tests: Update MSVCRuntimeLibrary.Fortran test for IntelLLVMWilliam R. Dieter2021-01-281-2/+3
| | | | | | | | | | | | | | | | | | `ifx` needs the same command line arguments as `ifort`. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Update Preprocess test for IntelLLVMWilliam R. Dieter2021-01-281-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Work around an icx bug in command line handling of preprocessor macros. A `\\\"` string in a macro passed to icx on the command line is not properly parsed in compiler versions 2021.1.0 and earlier. This problem is expected to be fixed, though a target release has no been set yet. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Update CPack DEBUGINFO tests for IntelLLVMWilliam R. Dieter2021-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | By default icx and icpx do not add build IDs when linking, so enable the build ID to make the test pass. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Update Assembler test for IntelLLVMBrad King2021-01-281-1/+1
| | | | | | | | | | | | Enable parts of the test the same way we do for `Intel`.
* | | Tests: Update Fortran tests for IntelLLVMWilliam R. Dieter2021-01-282-3/+3
| | | | | | | | | | | | | | | | | | Update checks for the `Intel` compiler id to match `IntelLLVM` too. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Cleanup CPack message when files are expected and none are foundWilliam R. Dieter2021-01-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, when looking for exactly one file and the number of files was not one, the test printed out an error message saying that too many files were found, then printing the list of files. However, 0 is not 1 and also not too many files. To reduce confusion, this commit adds a different message when 0 files are found and 1 is expected. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Update RunCMake.DependencyGraph to canonicalize paths when comparingWilliam R. Dieter2021-01-281-1/+2
| | | | | | | | | | | | | | | | | | | | | A symbolic link in the path was causing false path mismatches. Resolving the symlinks makes both paths identical. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Make GCOV test more robust to symbolic links in pathsWilliam R. Dieter2021-01-281-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | Symbolic links in the path to the cmake build directory caused some paths to have '..' directories in the path, which are equivalent, but not a string match for the expected path. As a result, some tests fail. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Fix Fortran test C function prototypesWilliam R. Dieter2021-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Several extern functions were declared without return type, which results in warnings. The functions are for calling Fortran subroutines, so there should not be a return value. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Use the CVS :local: access method for local directoriesWilliam R. Dieter2021-01-282-17/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows absolute paths start with a drive letter, followed by the path. Without an explicit access method specification, CVS treats the drive letter as a host name. This changes explicitly adds `:local:` to local directory repository paths used in tests to avoid this confusion. See the CVS Manual [1] for more information. [1] https://www.gnu.org/software/trans-coord/manual/cvs/cvs.html#Repository Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | Tests: Fix CMP0115 warnings in CompileFeatures testBrad King2021-01-281-1/+4
|/ / | | | | | | Pass source file extensions explicitly.
* | Tests: Update tests for NVHPC compilerTin Huynh2021-01-275-8/+8
|/ | | | Treat it just like PGI.
* Merge topic 'clang-tidy-fixes'Brad King2021-01-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef935b17ab clang-tidy: fix `readability-use-anyofallof` warnings 9ac8dbbb94 clang-tidy: fix `readability-simplify-boolean-expr` warnings ca505718f4 clang-tidy: fix `readability-redundant-string-init` warnings b3b6ede6a1 clang-tidy: fix `readability-redundant-access-specifiers` warnings cdfc4e3195 clang-tidy: fix `readability-qualified-auto` warnings 808b17b120 clang-tidy: fix `readability-make-member-function-const` warnings 4470eb5179 clang-tidy: fix `performance-trivially-destructible` warnings 4f396e6528 clang-tidy: fix `performance-no-automatic-move` warnings ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5731
| * clang-tidy: fix `readability-make-member-function-const` warningsBen Boeckel2021-01-271-1/+1
| |
* | Merge topic 'update-bison-parser'Brad King2021-01-276-8/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7c6192472b LexerParser: Suppress -Wused-but-marked-unused warning in cmExprParser 6f64300a01 LexerParser: Clean up includes following include-what-you-use 699d50e376 LexerParser: Regenerate parser files with GNU Bison 3.7.4 c95442b9b1 LexerParser: Manual removing code from Bison is no longer needed 5a8a61a798 LexerParser: Do not use GNU Bison's yacc mode, we use Bison extensions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5730
| * | LexerParser: Regenerate parser files with GNU Bison 3.7.4Christoph GrĂ¼ninger2021-01-256-8/+8
| | | | | | | | | | | | Adjust expected test output.
* | | Merge topic 'outdir-target-genex'Brad King2021-01-277-0/+81
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 64c3857780 OUTPUT_DIRECTORY: Support tgt genex in output artifact vars Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5690