tests: add support for SCL-ized LLVM 13 (llvm-toolset-13.0)
This commit is contained in:
parent
b2afe71ad6
commit
34cd7bb93d
@ -1,3 +1,15 @@
|
|||||||
|
#
|
||||||
|
# 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)
|
||||||
|
#
|
||||||
|
|
||||||
summary: compiler-rt tests for build/PR gating
|
summary: compiler-rt tests for build/PR gating
|
||||||
adjust:
|
adjust:
|
||||||
- because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR."
|
- because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR."
|
||||||
@ -6,16 +18,18 @@ adjust:
|
|||||||
and trigger != commit
|
and trigger != commit
|
||||||
and trigger != build
|
and trigger != build
|
||||||
enabled: false
|
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"
|
||||||
|
|
||||||
discover:
|
discover:
|
||||||
- name: python-lit-tests
|
- name: python-lit-tests
|
||||||
how: fmf
|
how: fmf
|
||||||
filter: "tag:-spoils-installation"
|
filter: "tag:-spoils-installation"
|
||||||
execute:
|
execute:
|
||||||
how: tmt
|
how: tmt
|
||||||
prepare:
|
|
||||||
- name: packages
|
|
||||||
how: install
|
|
||||||
package: python3-lit
|
|
||||||
provision:
|
provision:
|
||||||
hardware:
|
hardware:
|
||||||
memory: ">= 4 GiB"
|
memory: ">= 4 GiB"
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
summary: Trivial sanity test
|
summary: Trivial sanity test
|
||||||
test: lit --version
|
test: "$WITH_SCL ./test.sh"
|
||||||
require:
|
require: []
|
||||||
|
adjust:
|
||||||
|
# Common requirements when LLVM is not SCL-ized
|
||||||
|
- require+:
|
||||||
- python3-lit
|
- python3-lit
|
||||||
|
when: "collection is not defined"
|
||||||
|
|
||||||
|
# Requirements for SCL-ized LLVM
|
||||||
|
- require+:
|
||||||
|
- llvm-toolset-13.0-python3-lit
|
||||||
|
when: "collection == llvm-toolset-13.0"
|
||||||
|
3
tests/sanity/test.sh
Executable file
3
tests/sanity/test.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/sh -eux
|
||||||
|
|
||||||
|
lit --version
|
Loading…
Reference in New Issue
Block a user