Skip to content

Commit

Permalink
Packit: enable podman e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed May 22, 2023
1 parent 1890e10 commit ea467db
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
11 changes: 5 additions & 6 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ jobs:
- centos-stream+epel-next-9-x86_64

# All tests specified in the `/plans/` subdir
# FIXME: uncomment e2e tests after disk space issues resolved on testing farm
#- job: tests
# trigger: pull_request
# targets: *test_targets
# identifier: podman_e2e_test
# tmt_plan: "/plans/podman_e2e_test"
- job: tests
trigger: pull_request
targets: *pr_copr_targets
identifier: podman_e2e_test
tmt_plan: "/plans/podman_e2e_test"

- job: tests
trigger: pull_request
Expand Down
4 changes: 2 additions & 2 deletions plans/common_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ dnf -y copr disable rhcontainerbot/packit-builds

# Fetch podman and other dependencies from rhcontainerbot/podman-next.
. /etc/os-release
if [ $(NAME) == "CentOS Stream" ]; then
dnf -y copr enable rhcontainerbot/podman-next centos-stream+epel-next-$(VERSION)
if [[ $NAME == "CentOS Stream" ]]; then
dnf -y copr enable rhcontainerbot/podman-next centos-stream+epel-next
else
dnf -y copr enable rhcontainerbot/podman-next
fi
Expand Down
5 changes: 5 additions & 0 deletions plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
execute:
how: tmt
script: bash plans/podman_e2e_test.sh
provision:
how: artemis
hardware:
disk:
- size: 100 GB

/podman_system_test:
summary: Run SELinux specific Podman system tests
Expand Down
2 changes: 1 addition & 1 deletion plans/podman_e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
dnf --disablerepo=* --enablerepo=copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next download --source podman
rpm2cpio podman*.src.rpm | cpio -di
tar zxf podman*.tar.gz
cd podman/test/e2e
cd podman-*~dev/test/e2e

# Run SELinux specific Podman e2e tests
PODMAN_BINARY=/usr/bin/podman go test -v config.go config_amd64.go common_test.go libpod_suite_test.go run_selinux_test.go

0 comments on commit ea467db

Please sign in to comment.