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..fd1c646 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,42 @@ +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: | + [ -e /dev/kvm ] && + PATH=$PATH:/root/.cargo/bin LIBGUESTFS_BACKEND=direct make test