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 Oct 3, 2023
1 parent 1a74da5 commit 91a8507
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 47 deletions.
18 changes: 11 additions & 7 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@ jobs:
enable_net: true

# 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
notifications:
failure_comment:
message: "podman e2e tests failed. @containers/packit-build please check."
targets: *pr_copr_targets
identifier: podman_e2e_test
tmt_plan: "/plans/podman_e2e_test"

- job: tests
trigger: pull_request
# arch assumed to be x86_64 by default.
notifications:
failure_comment:
message: "podman system tests failed. @containers/packit-build please check."
targets: *pr_copr_targets
identifier: podman_system_test
tmt_plan: "/plans/podman_system_test"
Expand Down
17 changes: 0 additions & 17 deletions plans/common_setup.sh

This file was deleted.

24 changes: 22 additions & 2 deletions plans/main.fmf
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
prepare:
name: Install packages
how: install
copr: rhcontainerbot/podman-next
package:
- bats
- golang
- podman
- podman-tests

/podman_e2e_test:
summary: Run SELinux specific Podman e2e tests
execute:
how: tmt
script: bash plans/podman_e2e_test.sh
script: |
dnf --disablerepo=* --enablerepo=copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next download --source podman
rpm2cpio podman*.src.rpm | cpio -di
tar zxf podman-*-dev.tar.gz
cd podman-*-dev/test/e2e
PODMAN_BINARY=/usr/bin/podman go test -v config.go config_amd64.go common_test.go libpod_suite_test.go run_selinux_test.go
provision:
how: artemis
hardware:
disk:
- size: 100 GB

/podman_system_test:
summary: Run SELinux specific Podman system tests
execute:
how: tmt
script: bash plans/podman_system_test.sh
script: bats /usr/bin/podman /usr/share/podman/test/system/410-selinux.bats
14 changes: 0 additions & 14 deletions plans/podman_e2e_test.sh

This file was deleted.

7 changes: 0 additions & 7 deletions plans/podman_system_test.sh

This file was deleted.

0 comments on commit 91a8507

Please sign in to comment.