mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 02:34:52 +00:00
14d74717e3
With the merge of all the packages into llvm now we need to test all those with llvm, but the tests are still scattered across different test repos. This commit adds discover steps to gather all the tests.
91 lines
2.8 KiB
Text
91 lines
2.8 KiB
Text
#
|
|
# Build/PR gating tests for *LLVM 19*
|
|
#
|
|
# Compatible with various LLVM 19 distributions:
|
|
#
|
|
# * Fedora (ursine packages)
|
|
# * CentOS 10 stream (ursine packages)
|
|
# * Centos 9 stream (ursine packages)
|
|
# * RHEL-10 (ursine packages)
|
|
# * RHEL-9 (ursine packages)
|
|
# * RHEL-8 (Red Hat module)
|
|
#
|
|
|
|
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
|
|
|
|
- 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"
|
|
- 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"
|
|
|
|
# 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
|
|
|
|
# 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: >-
|
|
distro == rhel-9
|
|
or distro == rhel-8
|
|
|
|
discover:
|
|
- name: llvm-tests
|
|
how: fmf
|
|
url: https://src.fedoraproject.org/tests/llvm.git
|
|
ref: main
|
|
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"
|
|
execute:
|
|
how: tmt
|
|
provision:
|
|
hardware:
|
|
memory: ">= 4 GiB"
|