TMT: initial enablement

Fetch tests maintained upstream.

Resolves: RHEL-69441

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar
2024-12-30 15:43:06 +05:30
parent f6671a8174
commit 0f8e961f0c
5 changed files with 44 additions and 45 deletions
+43
View File
@@ -0,0 +1,43 @@
prepare:
- name: packages
how: install
package: [bats, podman-tests]
adjust:
- when: "initiator == packit"
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
prepare+:
how: shell
script: |
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
dnf -y upgrade --allowerasing
# FIXME: Use epel10 once bats is available there
- when: distro == centos-stream-10 or distro == rhel-10
because: "bats isn't yet available on epel10"
prepare+:
how: install
copr: rhcontainerbot/bats-el10
package: bats
- when: distro == centos-stream-9 or distro == rhel-9
because: "bats is present on EPEL on rhel9 / c9s"
prepare+:
how: feature
epel: enabled
discover:
how: fmf
url: https://github.com/lsm5/podman
ref: "tmt-fedora-centos"
execute:
how: tmt
/system/local/root:
summary: Run podman system rootful tests
discover+:
filter: 'tag:local & tag:root'
/system/local/rootless:
summary: Run podman system rootless tests
discover+:
filter: 'tag:local & tag:rootless'