2021-12-06 08:34:51 +00:00
|
|
|
#
|
2024-10-22 09:14:45 +00:00
|
|
|
# Build/PR gating tests for *LLVM 19*
|
2021-12-06 08:34:51 +00:00
|
|
|
#
|
2024-10-22 09:14:45 +00:00
|
|
|
# Compatible with various LLVM 19 distributions:
|
2021-12-06 08:34:51 +00:00
|
|
|
#
|
|
|
|
# * Fedora (ursine packages)
|
2024-10-22 09:14:45 +00:00
|
|
|
# * CentOS 10 stream (ursine packages)
|
2021-12-06 08:34:51 +00:00
|
|
|
# * Centos 9 stream (ursine packages)
|
2024-10-22 09:14:45 +00:00
|
|
|
# * RHEL-10 (ursine packages)
|
2021-12-06 08:34:51 +00:00
|
|
|
# * RHEL-9 (ursine packages)
|
|
|
|
# * RHEL-8 (Red Hat module)
|
|
|
|
#
|
|
|
|
|
2021-11-12 12:52:36 +00:00
|
|
|
summary: LLVM 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-06 08:34:51 +00:00
|
|
|
|
|
|
|
- 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"
|
|
|
|
when: "collection == llvm-toolset-13.0"
|
2022-04-22 11:04:50 +00:00
|
|
|
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
|
|
|
|
environment+:
|
|
|
|
WITH_SCL: "scl enable llvm-toolset-14.0 rust-toolset-1.62"
|
|
|
|
when: "collection == llvm-toolset-14.0"
|
2021-12-06 08:34:51 +00:00
|
|
|
|
2022-02-03 11:39:48 +00:00
|
|
|
# Unfortunatelly, 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"
|
|
|
|
prepare+:
|
|
|
|
- name: Enable CRB
|
|
|
|
how: shell
|
|
|
|
script: dnf config-manager --set-enabled crb
|
|
|
|
when: >-
|
|
|
|
distro == centos
|
|
|
|
|
2022-05-04 13:50:08 +00:00
|
|
|
# Unfortunately, TMT does not support more declarative approach, we need to run commands on our own.
|
2021-12-15 12:03:43 +00:00
|
|
|
- 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-02-03 11:39:48 +00:00
|
|
|
distro == rhel-9
|
2021-12-15 12:03:43 +00:00
|
|
|
or distro == rhel-8
|
|
|
|
|
2021-11-12 12:52:36 +00:00
|
|
|
discover:
|
2022-09-12 11:18:15 +00:00
|
|
|
- name: llvm-tests
|
2021-11-12 12:52:36 +00:00
|
|
|
how: fmf
|
2022-09-12 11:18:15 +00:00
|
|
|
url: https://src.fedoraproject.org/tests/llvm.git
|
|
|
|
ref: main
|
2024-10-22 09:14:45 +00:00
|
|
|
filter: "tag:-spoils-installation & tag:-not-in-default"
|
|
|
|
- name: clang-tests
|
|
|
|
how: fmf
|
|
|
|
url: https://src.fedoraproject.org/tests/clang.git
|
|
|
|
ref: main
|
|
|
|
filter: "tag:-spoils-installation & tag:-not-in-default"
|
|
|
|
- name: compiler-rt-tests
|
|
|
|
how: fmf
|
|
|
|
url: https://src.fedoraproject.org/tests/compiler-rt.git
|
|
|
|
ref: main
|
|
|
|
filter: "tag:-spoils-installation & tag:-not-in-default"
|
|
|
|
- name: libomp-tests
|
|
|
|
how: fmf
|
|
|
|
url: https://src.fedoraproject.org/tests/libomp.git
|
|
|
|
ref: main
|
|
|
|
filter: "tag:-spoils-installation & tag:-not-in-default"
|
|
|
|
- name: python-lit
|
|
|
|
how: fmf
|
|
|
|
url: https://src.fedoraproject.org/tests/python-lit.git
|
|
|
|
ref: main
|
|
|
|
filter: "tag:-spoils-installation & tag:-not-in-default"
|
|
|
|
- name: lld-tests
|
|
|
|
how: fmf
|
|
|
|
url: https://src.fedoraproject.org/tests/lld.git
|
|
|
|
ref: main
|
|
|
|
filter: "tag:-spoils-installation & tag:-not-in-default"
|
|
|
|
- name: lldb-tests
|
|
|
|
how: fmf
|
|
|
|
url: https://src.fedoraproject.org/tests/lldb.git
|
|
|
|
ref: main
|
|
|
|
filter: "tag:-spoils-installation & tag:-not-in-default"
|
2021-11-12 12:52:36 +00:00
|
|
|
execute:
|
|
|
|
how: tmt
|
|
|
|
provision:
|
|
|
|
hardware:
|
|
|
|
memory: ">= 4 GiB"
|