Add TMT test infrastructure for conmon

Add .fmf/, plans/, and tests/ directories to enable automated
tier0 testing in the RHEL-on-GitLab MR pipeline. Port TMT
configuration from rhel-9.8.0 branch, updated to reference
c10s branch of the test repository.

Also add tier0 gating rule to gating.yaml.

Resolves: RHEL-180349
This commit is contained in:
Jindrich Novy 2026-05-29 12:31:41 +02:00
parent fafd0b1bef
commit 37f945cce1
5 changed files with 43 additions and 2 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -21,7 +21,7 @@ Epoch: 2
%endif
Version: 2.2.1
License: Apache-2.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: OCI container runtime monitor
URL: https://github.com/containers/%{name}
# Tarball fetched from upstream
@ -70,6 +70,10 @@ sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile
%endif
%changelog
* Fri May 29 2026 Jindrich Novy <jnovy@redhat.com> - 2:2.2.1-4
- Add TMT test infrastructure for tier0 gating
- Resolves: RHEL-180349
* Fri Feb 27 2026 Jindrich Novy <jnovy@redhat.com> - 2:2.2.1-3
- pass %%{optflags} and %%{build_ldflags} to enable stack protector
and FORTIFY_SOURCE hardening flags

View File

@ -3,4 +3,5 @@
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules: []
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

27
plans/conmon.fmf Normal file
View File

@ -0,0 +1,27 @@
---
summary: Run conmon tests
description: Test plan for conmon
contact: jnovy@redhat.com
discover:
how: fmf
provision:
how: artemis
prepare:
- how: install
package:
- crun
- podman
- podman-tests
- git
- how: shell
script: |
BATS_VERSION=1.11.0
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v$BATS_VERSION.tar.gz | tar zx
cd bats-core-$BATS_VERSION
./install.sh /usr
execute:
how: tmt

8
tests/main.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Run basic podman tests to verify conmon
test: cd /usr/share/podman/test/system && bats 030-run.bats 075-exec.bats
require:
- podman
- conmon
duration: 15m
tag:
- gate