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 24, 2024
1 parent 2e44524 commit 89662ee
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 1 deletion.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
11 changes: 11 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ 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
enable_net: true
59 changes: 59 additions & 0 deletions plans/test.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
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

summary: Test
execute:
how: tmt
script: |
set -ex
export PATH=$PATH:/root/.cargo/bin LIBGUESTFS_BACKEND=direct
tests/env.sh build
tests/env.sh start
tests/env.sh run "$ENGINE" all

/docker:
summary: Run all tests under Docker
environment:
ENGINE: docker

/podman:
summary: Run all tests under Podman
environment:
ENGINE: podman

/rootful-podman:
summary: Run all tests under Rootful Podman
environment:
ENGINE: rootful-podman
2 changes: 1 addition & 1 deletion tests/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ build)
--name "$container_name-build" \
--runtime "$runtime" \
--memory 8g \
--rm -dit \
--rm -it \
--rootfs "$temp_dir" \
--persistent

Expand Down

0 comments on commit 89662ee

Please sign in to comment.