2021-12-13 12:37:36 +00:00
|
|
|
#
|
|
|
|
# Build/PR gating tests for *LLVM 13*
|
|
|
|
#
|
|
|
|
# Compatible with various LLVM 13 distributions:
|
|
|
|
#
|
|
|
|
# * Fedora (ursine packages)
|
|
|
|
# * Centos 9 stream (ursine packages)
|
|
|
|
# * RHEL-9 (ursine packages)
|
|
|
|
# * RHEL-8 (Red Hat module)
|
|
|
|
# * RHEL-7 (software collection)
|
|
|
|
#
|
|
|
|
|
2021-12-01 15:35:03 +00:00
|
|
|
summary: Clang tests for build/PR gating
|
|
|
|
adjust:
|
|
|
|
- because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR."
|
|
|
|
when: >-
|
|
|
|
trigger is defined
|
|
|
|
and trigger != commit
|
|
|
|
and trigger != build
|
|
|
|
enabled: false
|
2021-12-13 12:37:36 +00:00
|
|
|
|
|
|
|
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
|
|
|
|
environment+:
|
2022-01-26 09:52:41 +00:00
|
|
|
WITH_SCL: "scl enable llvm-toolset-13.0"
|
2021-12-13 12:37:36 +00:00
|
|
|
when: "collection == llvm-toolset-13.0"
|
2022-04-22 10:52:04 +00:00
|
|
|
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
|
|
|
|
environment+:
|
|
|
|
WITH_SCL: "scl enable llvm-toolset-14.0"
|
|
|
|
when: "collection == llvm-toolset-14.0"
|
2021-12-13 12:37:36 +00:00
|
|
|
|
2022-01-21 10:50:38 +00:00
|
|
|
# Unfortunately, TMT does not support more declarative approach, we need to run commands on our own.
|
|
|
|
- because: "On RHEL, CRB must be enabled to provide rarer packages"
|
|
|
|
prepare+:
|
|
|
|
- name: Enable CRB
|
|
|
|
how: shell
|
|
|
|
script: dnf config-manager --set-enabled rhel-CRB
|
|
|
|
when: >-
|
2022-05-05 14:14:33 +00:00
|
|
|
distro == rhel-9
|
2022-01-21 10:50:38 +00:00
|
|
|
or distro == rhel-8
|
|
|
|
|
2022-05-05 14:14:33 +00:00
|
|
|
# Unfortunately, TMT does not support more declarative approach, we need to run commands on our own.
|
|
|
|
- because: "On CentOS, CRB must be enabled to provide rarer packages"
|
2022-01-21 10:50:38 +00:00
|
|
|
prepare+:
|
2022-05-05 14:14:33 +00:00
|
|
|
- name: Enable CRB
|
2022-01-21 10:50:38 +00:00
|
|
|
how: shell
|
2022-05-05 14:14:33 +00:00
|
|
|
script: dnf config-manager --set-enabled crb
|
|
|
|
when: >-
|
|
|
|
distro == centos
|
2022-01-21 10:50:38 +00:00
|
|
|
|
2021-10-18 14:01:51 +00:00
|
|
|
discover:
|
2022-01-26 09:52:41 +00:00
|
|
|
- name: clang-tests
|
2021-10-18 14:01:51 +00:00
|
|
|
how: fmf
|
|
|
|
filter: "tag:-not-in-default"
|
2022-01-26 09:52:41 +00:00
|
|
|
- name: upstream-llvm-integration-testsuite
|
2021-10-18 14:01:51 +00:00
|
|
|
how: fmf
|
|
|
|
url: https://src.fedoraproject.org/rpms/llvm.git
|
|
|
|
ref: rawhide
|
|
|
|
test: integration-test-suite
|
|
|
|
execute:
|
|
|
|
how: tmt
|
|
|
|
provision:
|
|
|
|
hardware:
|
|
|
|
memory: ">= 4 GiB"
|