tests: add support for SCL-ized LLVM 13 (llvm-toolset-13.0)
This commit is contained in:
parent
8f9f5acc96
commit
1487aa93c2
@ -1,5 +1,15 @@
|
|||||||
summary: Test lld with clang
|
summary: Test lld with clang
|
||||||
test: ./test.sh
|
test: "$WITH_SCL ./test.sh"
|
||||||
require:
|
require: []
|
||||||
- lld
|
adjust:
|
||||||
|
# Common requirements when LLVM is not SCL-ized
|
||||||
|
- require+:
|
||||||
- clang
|
- clang
|
||||||
|
- lld
|
||||||
|
when: "collection is not defined"
|
||||||
|
|
||||||
|
# Requirements for SCL-ized LLVM
|
||||||
|
- require+:
|
||||||
|
- llvm-toolset-13.0-clang
|
||||||
|
- llvm-toolset-13.0-lld
|
||||||
|
when: "collection == llvm-toolset-13.0"
|
||||||
|
@ -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: LLD tests for build/PR gating, testing alternatives and spoiling the installation
|
summary: LLD tests for build/PR gating, testing alternatives and spoiling the installation
|
||||||
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"
|
||||||
|
when: "collection == llvm-toolset-13.0"
|
||||||
|
|
||||||
discover:
|
discover:
|
||||||
- name: lld-tests
|
- name: lld-tests
|
||||||
how: fmf
|
how: fmf
|
||||||
test: ld-alternative
|
test: ld-alternative
|
||||||
execute:
|
execute:
|
||||||
how: tmt
|
how: tmt
|
||||||
prepare:
|
|
||||||
- name: packages
|
|
||||||
how: install
|
|
||||||
package: lld
|
|
||||||
provision:
|
provision:
|
||||||
hardware:
|
hardware:
|
||||||
memory: ">= 4 GiB"
|
memory: ">= 4 GiB"
|
||||||
|
@ -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: LLD tests for build/PR gating
|
summary: LLD 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,6 +18,12 @@ 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"
|
||||||
|
when: "collection == llvm-toolset-13.0"
|
||||||
|
|
||||||
discover:
|
discover:
|
||||||
- name: lld-tests
|
- name: lld-tests
|
||||||
how: fmf
|
how: fmf
|
||||||
@ -17,10 +35,6 @@ discover:
|
|||||||
test: integration-test-suite
|
test: integration-test-suite
|
||||||
execute:
|
execute:
|
||||||
how: tmt
|
how: tmt
|
||||||
prepare:
|
|
||||||
- name: packages
|
|
||||||
how: install
|
|
||||||
package: lld
|
|
||||||
provision:
|
provision:
|
||||||
hardware:
|
hardware:
|
||||||
memory: ">= 4 GiB"
|
memory: ">= 4 GiB"
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
summary: Test lld with gcc
|
summary: Test lld with gcc
|
||||||
test: ./test.sh
|
test: "$WITH_SCL ./test.sh"
|
||||||
require:
|
require:
|
||||||
- lld
|
|
||||||
- gcc
|
- gcc
|
||||||
|
adjust:
|
||||||
|
# Common requirements when LLVM is not SCL-ized
|
||||||
|
- require+:
|
||||||
|
- lld
|
||||||
|
when: "collection is not defined"
|
||||||
|
|
||||||
|
# Requirements for SCL-ized LLVM
|
||||||
|
- require+:
|
||||||
|
- llvm-toolset-13.0-lld
|
||||||
|
when: "collection == llvm-toolset-13.0"
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
summary: Test linker switching with alternatives
|
summary: Test linker switching with alternatives
|
||||||
test: ./test.sh
|
test: "$WITH_SCL ./test.sh"
|
||||||
# This test spoils the installation by removing lld, therefore it should be marked as such.
|
# This test spoils the installation by removing lld, therefore it should be marked as such.
|
||||||
tag:
|
tag:
|
||||||
- spoils-installation
|
- spoils-installation
|
||||||
require:
|
require:
|
||||||
- lld
|
|
||||||
- binutils
|
- binutils
|
||||||
|
adjust:
|
||||||
|
# Common requirements when LLVM is not SCL-ized
|
||||||
|
- require+:
|
||||||
|
- lld
|
||||||
|
when: "collection is not defined"
|
||||||
|
|
||||||
|
# Requirements for SCL-ized LLVM
|
||||||
|
- require+:
|
||||||
|
- llvm-toolset-13.0-lld
|
||||||
|
when: "collection == llvm-toolset-13.0"
|
||||||
|
@ -1,6 +1,16 @@
|
|||||||
summary: Run lld testsuite
|
summary: Run lld testsuite
|
||||||
test: ./test.sh
|
test: "$WITH_SCL ./test.sh"
|
||||||
duration: 30m
|
duration: 30m
|
||||||
require:
|
require: []
|
||||||
|
adjust:
|
||||||
|
# Common requirements when LLVM is not SCL-ized
|
||||||
|
- require+:
|
||||||
- lld
|
- lld
|
||||||
- lld-test
|
- lld-test
|
||||||
|
when: "collection is not defined"
|
||||||
|
|
||||||
|
# Requirements for SCL-ized LLVM
|
||||||
|
- require+:
|
||||||
|
- llvm-toolset-13.0-lld
|
||||||
|
- llvm-toolset-13.0-lld-test
|
||||||
|
when: "collection == llvm-toolset-13.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user