From 4b9b3cc73a6fe5717c900dd8aab71d98fed5182c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 16 Aug 2023 16:53:20 -0700 Subject: [PATCH] podman: also run the upstream integration test suite Per https://github.com/containers/podman/pull/19302 and https://github.com/containers/podman/issues/19299 , upstream have kindly set things up so we can easily run relevant parts of the upstream test suite as an integration test in openQA. This should help us catch if changes in other components break key features of podman. This only works with podman 4.6.1 or higher. 4.6.1 is already stable for F39 and Rawhide; I will mark the F37 and F38 updates as workarounds in the scheduler until they're stable. Signed-off-by: Adam Williamson --- tests/podman.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/podman.pm b/tests/podman.pm index d85c86e1..3a9a98d2 100644 --- a/tests/podman.pm +++ b/tests/podman.pm @@ -13,6 +13,12 @@ sub run { assert_script_run "dnf -y install podman", 240 unless (get_var("CANNED")); # check podman is installed assert_script_run "rpm -q podman"; + my $relnum = get_release_number; + unless (get_var("CANNED")) { + # run the upstream integration tests + assert_script_run "dnf -y install podman podman-tests bats", 300; + assert_script_run "bats --filter-tags distro-integration /usr/share/podman/test/system", 300; + } # check to see if you can pull an image from the registry assert_script_run "podman pull registry.fedoraproject.org/fedora:latest", 300; # run hello-world to test