Skip to content

Commit

Permalink
Reinstate testing farm tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Faria <[email protected]>
  • Loading branch information
albertofaria committed Apr 23, 2024
1 parent 8c4e505 commit 2ac6418
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
10 changes: 10 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-aarch64
- fedora-all-x86_64
identifier: test
tmt_plan: /plans/test
44 changes: 44 additions & 0 deletions plans/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
provision:
hardware:
virtualization:
is-supported: true

prepare:
- name: Install dependencies
how: install
missing: skip
package:
- bash
- cargo
- clippy
- coreutils
- crun
- crun-krun
- 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: |
[[ -e /dev/kvm ]] &&
PATH=$PATH:/root/.cargo/bin LIBGUESTFS_BACKEND=direct make test

0 comments on commit 2ac6418

Please sign in to comment.