Skip to content

[v5.4-rhel] Enable system tests on RHEL envs with TMT #26183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: v5.4-rhel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions .packit.sh

This file was deleted.

50 changes: 50 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/

jobs:
- job: tests
trigger: pull_request
skip_build: true
use_internal_tf: true
notifications: &packit_failure_notification
failure_comment:
message: "Packit jobs failed. @containers/packit-build please check."
targets: &test_targets
epel-10-x86_64:
distros: [RHEL-10.0-Nightly]
epel-10-aarch64:
distros: [RHEL-10.0-Nightly]
epel-9-x86_64:
distros: [RHEL-9.6.0-Nightly]
epel-9-aarch64:
distros: [RHEL-9.6.0-Nightly]
tmt_plan: "/plans/system/root-local"
identifier: "sys-local-root"

- job: tests
trigger: pull_request
skip_build: true
use_internal_tf: true
notifications: *packit_failure_notification
targets: *test_targets
tmt_plan: "/plans/system/rootless-local"
identifier: "sys-local-rootless"

- job: tests
trigger: pull_request
skip_build: true
use_internal_tf: true
notifications: *packit_failure_notification
targets: *test_targets
tmt_plan: "/plans/system/root-remote"
identifier: "sys-remote-root"

- job: tests
trigger: pull_request
skip_build: true
use_internal_tf: true
notifications: *packit_failure_notification
targets: *test_targets
tmt_plan: "/plans/system/rootless-remote"
identifier: "sys-remote-rootless"
37 changes: 0 additions & 37 deletions plans/cockpit-podman.fmf

This file was deleted.

73 changes: 73 additions & 0 deletions plans/system.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
discover:
how: fmf

execute:
how: tmt

prepare:
- name: build and test dependencies
how: install
package:
- bzip2
- go-md2man
- golang
- gpgme-devel
- libseccomp-devel
- netavark
- podman-catatonit
# podman-tests used only to fetch test dependencies
- podman-tests
- slirp4netns
- systemd-devel
order: 5
- how: shell
script: modprobe null_blk nr_devices=1
order: 5
- how: shell
script: |
# Install bats
# https://bats-core.readthedocs.io/en/stable/installation.html
BATS_VERSION=1.12.0
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v"$BATS_VERSION".tar.gz | tar -xz
pushd bats-core-"$BATS_VERSION"
./install.sh /usr
popd
rm -rf bats-core-"$BATS_VERSION"
# Install parallel
# https://cgit.git.savannah.gnu.org/cgit/parallel.git/tree/README
wget https://ftpmirror.gnu.org/parallel/parallel-20250522.tar.bz2
bzip2 -dc parallel-20250522.tar.bz2 | tar xvf -
pushd parallel-20250522
./configure && make && make install
popd
order: 10

provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"

/root-local:
summary: Local root system tests
discover+:
test: /test/tmt/sys-root-local

/rootless-local:
summary: Local rootless system tests
discover+:
test: /test/tmt/sys-rootless-local

/root-remote:
summary: Remote root system tests
discover+:
test: /test/tmt/sys-root-remote

/rootless-remote:
summary: Remote rootless system tests
discover+:
test: /test/tmt/sys-rootless-remote
12 changes: 0 additions & 12 deletions rpm/Makefile

This file was deleted.

Loading