From fa794c5a97214d13091a1ce68f88f6ed9ce598a6 Mon Sep 17 00:00:00 2001 From: Alberto Faria Date: Tue, 23 Apr 2024 14:38:10 +0100 Subject: [PATCH] Reinstate testing farm tests Signed-off-by: Alberto Faria --- .fmf/version | 1 + .packit.yaml | 10 ++++++++++ plans/main.fmf | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/main.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml index c110485..cdbc85b 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -38,3 +38,13 @@ jobs: owner: rhcontainerbot project: podman-next enable_net: true + + # Tests + - job: tests + trigger: pull_request + skip_build: true + targets: + - fedora-all-x86_64 + - fedora-all-aarch64 + identifier: test + tmt_plan: /plans/test diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..eef5257 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,40 @@ +provision: + hardware: + virtualization: + is-supported: true + +prepare: + - name: Install dependencies + how: install + missing: skip + package: + - bash + - cargo + - coreutils + - crun + - crun-krun + - genisoimage + - grep + - guestfs-tools + - libselinux-devel + - passt + - podman + - qemu-img + - qemu-system-aarch64-core + - qemu-system-x86_64-core + - ssh + - util-linux + - virsh + - virtiofsd + - virtlogd + - virtqemud +# - name: Set up libvirt +# how: shell +# script: +# - systemctl start virtqemud + +/test: + summary: Test + execute: + how: tmt + script: PATH=$PATH:/root/.cargo/bin make test