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..5a108ae 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -14,18 +14,18 @@ jobs: trigger: pull_request notifications: failure_comment: - message: "Ephemeral COPR build failed. @containers/packit-build please check." + message: Ephemeral COPR build failed. @containers/packit-build please check. targets: fedora-all-x86_64: {} fedora-all-aarch64: {} fedora-eln-x86_64: additional_repos: - - "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/" + - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/ fedora-eln-aarch64: additional_repos: - - "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/" + - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/ additional_repos: - - "copr://rhcontainerbot/podman-next" + - copr://rhcontainerbot/podman-next enable_net: true # Run on commit to main branch @@ -33,8 +33,19 @@ jobs: trigger: commit notifications: failure_comment: - message: "podman-next COPR build failed. @containers/packit-build please check." + message: podman-next COPR build failed. @containers/packit-build please check. branch: main owner: rhcontainerbot project: podman-next enable_net: true + + # Tests + - job: tests + trigger: pull_request + skip_build: true + targets: + - fedora-all-aarch64 + - fedora-all-x86_64 + identifier: test + tmt_plan: /plans/test + use_internal_tf: true diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..51730d1 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,36 @@ +prepare: + - name: Install dependencies + how: install + missing: skip + package: + - bash + - cargo + - clippy + - coreutils + - crun + - genisoimage + - grep + - guestfs-tools + - libselinux-devel + - libvirt-client + - libvirt-daemon-driver-qemu + - libvirt-daemon-log + - make + - openssh-clients + - podman + - qemu-img + - qemu-system-x86-core + - rustfmt + - shadow-utils + - util-linux + - virtiofsd + - name: Set up libvirt + how: shell + script: + - systemctl start virtqemud + +/test: + summary: Test + execute: + how: tmt + script: PATH=$PATH:/root/.cargo/bin make test