From 1b9b77bca090a5fd673398dc0ea71d8bf9b9004d Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Fri, 2 Sep 2022 11:22:25 +0200 Subject: [PATCH] tests: pull tests from https://src.fedoraproject.org/tests/python-lit Related: rhbz#2118319 --- tests/build-gating.fmf | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/tests/build-gating.fmf b/tests/build-gating.fmf index 52aeefe..14393eb 100644 --- a/tests/build-gating.fmf +++ b/tests/build-gating.fmf @@ -18,17 +18,35 @@ adjust: 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" + # 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" + when: >- + distro == rhel-9 + or distro == rhel-8 + prepare+: + - name: Enable CRB + how: shell + script: dnf config-manager --set-enabled rhel-CRB + + - because: "On CentOS, CRB must be enabled to provide rarer packages" + when: >- + distro == centos + prepare+: + - name: Enable CRB + how: shell + script: dnf config-manager --set-enabled crb discover: - - name: "Upstream python-lit tests for build/PR gating" + - name: python-lit-upstream-tests how: fmf - url: https://src.fedoraproject.org/rpms/python-lit.git - ref: rawhide + url: https://src.fedoraproject.org/tests/python-lit.git + ref: main + - name: upstream-llvm-integration-testsuite + how: fmf + url: https://src.fedoraproject.org/tests/llvm.git + ref: main + test: integration-test-suite execute: how: tmt