libomp/plans/build-gating.fmf
Jesus Checa Hidalgo 8a313fcb40 build-gating plan update
Relocate plan to subdirectory.
Remove unneeded adjustments, now are provided by the test metadata
Add relevant tests from clang and llvm tests to the plan
2024-03-07 14:33:35 +01:00

62 lines
1.6 KiB
Text

#
# Build/PR gating tests for libomp
#
# Compatible with various LLVM distributions:
#
# * Fedora (ursine packages)
# * Centos 9 stream (ursine packages)
# * RHEL-9 (ursine packages)
# * RHEL-8 (Red Hat module)
# * RHEL-7 (software collection)
#
summary: libomp 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: "libomp is not supported in s390x (llvm < 18)"
when: >
arch == s390x and distro < rhel-9, rhel-9.5, fedora-40, centos-stream-9
enabled: false
- because: "On RHEL-8+, CRB must be enabled to provide rarer packages"
prepare+:
- name: Enable CRB
how: shell
script: dnf config-manager --set-enabled *-CRB
when: >-
distro == rhel and distro >= rhel-8
- because: "On CentOS, CRB must be enabled to provide rarer packages"
prepare+:
- name: Enable CRB
how: shell
script: dnf install -y 'dnf-command(config-manager)' && dnf config-manager --set-enabled crb
when: >-
distro == centos
discover:
- name: libomp-tests
how: fmf
- name: clang-tests
how: fmf
url: https://src.fedoraproject.org/tests/clang.git
ref: main
test:
- libomp
- openmp-rpm
- name: upstream-llvm-integration-testsuite
how: fmf
url: https://src.fedoraproject.org/tests/llvm.git
ref: main
test: integration-test-suite
execute:
how: tmt
provision:
hardware:
memory: ">= 4 GiB"