Reorganize test metadata and add s390x support for libomp

This commit is contained in:
Jesus Checa Hidalgo 2024-03-07 12:29:34 +01:00
commit 57464fffd4
2 changed files with 62 additions and 38 deletions

62
tests/main.fmf Normal file
View file

@ -0,0 +1,62 @@
# Common configuration for all the tests in this repo
# All the tmt tests under this directory inherit the settings from this file
component:
- llvm-toolset
- libomp
# Default QA contact. If more are relevant use 'contact+:' in each test metadata.
contact:
- Jesus Checa Hidalgo <jcheca@redhat.com>
# All tests are shell by default. If a specific test uses another framework
# such as beakerlib, define "framework: beakerlib" in the test's main.fmf
framework: shell
# Always define "test" key and override in adjust or in each specific test
# metadata if needed.
test: ./test.sh
# Commonly used keys are initialized to empty.
require: []
link: []
tag: []
adjust+:
- 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
# Common requirements when LLVM is not SCL-ized
- require+:
- clang
- clang-libs
- libomp
- libomp-devel
when: collection is not defined
# Requirements for SCL-ized LLVM
# We need to override the test key to do the proper scl call
- test: scl enable llvm-toolset-13.0 -- ./test.sh
require+:
- llvm-toolset-13.0-clang
- llvm-toolset-13.0-clang-libs
- llvm-toolset-13.0-libomp
- llvm-toolset-13.0-libomp-devel
when: collection == llvm-toolset-13.0
- test: scl enable llvm-toolset-14.0 -- ./test.sh
require+:
- llvm-toolset-14.0-clang
- llvm-toolset-14.0-clang-libs
- llvm-toolset-14.0-libomp
- llvm-toolset-14.0-libomp-devel
when: collection == llvm-toolset-14.0
- test: scl enable llvm-toolset-15.0 -- ./test.sh
require+:
- llvm-toolset-15.0-clang
- llvm-toolset-15.0-clang-libs
- llvm-toolset-15.0-libomp
- llvm-toolset-15.0-libomp-devel
when: collection == llvm-toolset-15.0

View file

@ -1,43 +1,5 @@
summary: libomp sanity test
test: "$WITH_SCL ./test.sh"
framework: shell
tier: 1
component:
- llvm-toolset
- libomp
extra-summary: /tools/libomp/sanity
extra-task: /tools/libomp/sanity
extra-nitrate: TC#0614255
adjust:
- because: "libomp is not supported in s390x"
when: arch == s390x
enabled: false
# Common requirements when LLVM is not SCL-ized
- require:
- clang
- clang-libs
- libomp
- libomp-devel
when: "collection is not defined"
# Requirements for SCL-ized LLVM
- require:
- llvm-toolset-13.0-clang
- llvm-toolset-13.0-clang-libs
- llvm-toolset-13.0-libomp
- llvm-toolset-13.0-libomp-devel
when: "collection == llvm-toolset-13.0"
- require:
- llvm-toolset-14.0-clang
- llvm-toolset-14.0-clang-libs
- llvm-toolset-14.0-libomp
- llvm-toolset-14.0-libomp-devel
when: "collection == llvm-toolset-14.0"
- require:
- llvm-toolset-15.0-clang
- llvm-toolset-15.0-clang-libs
- llvm-toolset-15.0-libomp
- llvm-toolset-15.0-libomp-devel
when: "collection == llvm-toolset-15.0"