tests: test fixes for SCL-ized llvm-toolset-13 in RHEL-7
This commit is contained in:
parent
9e607ef75e
commit
8d94b3d903
@ -6,6 +6,10 @@ adjust:
|
||||
and trigger != commit
|
||||
and trigger != build
|
||||
enabled: false
|
||||
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
|
||||
environment+:
|
||||
WITH_SCL: "scl enable llvm-toolset-13.0"
|
||||
when: "collection == llvm-toolset-13.0"
|
||||
discover:
|
||||
how: fmf
|
||||
test: libomp
|
||||
@ -17,7 +21,7 @@ prepare:
|
||||
- name: Drop libomp
|
||||
how: shell
|
||||
script: |
|
||||
dnf erase -y libomp libomp-devel clang clang-libs
|
||||
yum erase -y libomp libomp-devel clang clang-libs
|
||||
provision:
|
||||
hardware:
|
||||
memory: ">= 4 GiB"
|
||||
|
@ -21,7 +21,7 @@ adjust:
|
||||
|
||||
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
|
||||
environment+:
|
||||
WITH_SCL: "scl enable llvm-toolset-13.0 rust-toolset-1.58"
|
||||
WITH_SCL: "scl enable llvm-toolset-13.0"
|
||||
when: "collection == llvm-toolset-13.0"
|
||||
|
||||
# Unfortunately, TMT does not support more declarative approach, we need to run commands on our own.
|
||||
@ -46,10 +46,10 @@ adjust:
|
||||
when: distro == rhel-7
|
||||
|
||||
discover:
|
||||
- name: Local tests
|
||||
- name: clang-tests
|
||||
how: fmf
|
||||
filter: "tag:-not-in-default"
|
||||
- name: "Upstream LLVM integration test suite"
|
||||
- name: upstream-llvm-integration-testsuite
|
||||
how: fmf
|
||||
url: https://src.fedoraproject.org/rpms/llvm.git
|
||||
ref: rawhide
|
||||
|
@ -3,6 +3,7 @@ summary: ""
|
||||
test: "$WITH_SCL ./test.sh"
|
||||
require:
|
||||
- glibc-static
|
||||
- yum-utils
|
||||
adjust:
|
||||
# Common requirements when LLVM is not SCL-ized
|
||||
- require+:
|
||||
|
@ -57,7 +57,8 @@ test_toolchain() {
|
||||
}
|
||||
|
||||
clang --version
|
||||
dnf info installed clang | grep ^Source
|
||||
# Repoquery is needed instead yum info for compatibility with RHEL-7
|
||||
repoquery -i --installed $(rpm -qf $(which clang)) | grep ^Source
|
||||
echo ""
|
||||
|
||||
for compiler in clang clang++; do
|
||||
|
Loading…
Reference in New Issue
Block a user