containers-common-1-131.el9

- fetch TMT podman revdep tests from podman dist-git
- needs at least podman 5.4.0-8.el9
- Related: RHEL-80816

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2025-06-08 12:18:26 -04:00
parent eebff64177
commit e1c80bdf2c
No known key found for this signature in database
GPG Key ID: 1C1EDD7CC7C3A0DD
4 changed files with 60 additions and 42 deletions

View File

@ -12,7 +12,7 @@
Epoch: 2
Name: containers-common
Version: 1
Release: 130%{?dist}
Release: 131%{?dist}
Summary: Common configuration and documentation for containers
License: ASL 2.0
ExclusiveArch: %{go_arches}
@ -158,6 +158,9 @@ docker:
sigstore: https://registry.redhat.io/containers/sigstore
EOF
# Placeholder check to silence rpmlint
%check
%files
%dir %{_sysconfdir}/containers
%dir %{_sysconfdir}/containers/certs.d
@ -191,6 +194,11 @@ EOF
%files extra
%changelog
* Sun Jun 08 2025 Lokesh Mandvekar <lsm5@redhat.com> - 2:1-131
- fetch TMT podman revdep tests from podman dist-git
- needs at least podman 5.4.0-8.el9
- Related: RHEL-80816
* Mon Mar 03 2025 Jindrich Novy <jnovy@redhat.com> - 2:1-130
- rebuild to preserve upgrade path
- Related: RHEL-80816

View File

@ -1,27 +0,0 @@
---
summary: Run containers-common tests
description: Test plan for containers-common
contact: Yuhui Jiang <yujiang@redhat.com>
provision:
how: container
prepare:
- name: Install packages
how: install
package: [crun, podman, podman-tests, git]
- name: Prepare bats
how: shell
script:
- rm -rf /tmp/bats-core-1.11.0
- curl -s -L https://github.com/bats-core/bats-core/archive/refs/tags/v1.11.0.tar.gz | tar xvz -C /tmp
- /tmp/bats-core-1.11.0/install.sh /usr
discover:
how: fmf
filter: 'tag: gate'
url: https://gitlab.com/yujiang1/containers-common.git
ref: c9s
execute:
how: tmt

51
plans/system.fmf Normal file
View File

@ -0,0 +1,51 @@
discover:
how: fmf
url: https://gitlab.com/redhat/centos-stream/rpms/podman
ref: "c9s"
execute:
how: tmt
prepare:
- how: shell
script: modprobe null_blk nr_devices=1
order: 5
- how: shell
script: |
BATS_VERSION=1.12.0
curl --fail -L https://github.com/bats-core/bats-core/archive/refs/tags/v"$BATS_VERSION".tar.gz | tar -xz
cd bats-core-"$BATS_VERSION"
./install.sh /usr
# FIXME: Delete below dnf install once 5.4.0-8 is available in the env
dnf -y install https://kojihub.stream.centos.org/kojifiles/packages/podman/5.4.0/8.el9/$(arch)/podman-5.4.0-8.el9.$(arch).rpm https://kojihub.stream.centos.org/kojifiles/packages/podman/5.4.0/8.el9/$(arch)/podman-remote-5.4.0-8.el9.$(arch).rpm https://kojihub.stream.centos.org/kojifiles/packages/podman/5.4.0/8.el9/$(arch)/podman-tests-5.4.0-8.el9.$(arch).rpm
order: 10
provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"
/local-root:
summary: Local rootful tests
discover+:
filter: 'tag:local & tag:root'
/local-rootless:
summary: Local rootless tests
discover+:
filter: 'tag:local & tag:rootless'
/remote-root:
summary: Remote rootful tests
discover+:
filter: 'tag:remote & tag:root'
/remote-rootless:
summary: Remote rootless tests
discover+:
filter: 'tag:remote & tag:rootless'

View File

@ -1,14 +0,0 @@
---
summary: containers-common tests
description: Using podman system tests to test containers-common
contact: Yuhui Jiang <yujiang@redhat.com>
framework: shell
require: [podman,containers-common]
tag: 'gate'
test: |
/usr/bin/bats -t /usr/share/podman/test/system/030-run.bats
/usr/bin/bats -t /usr/share/podman/test/system/075-exec.bats
duration: 15m