From 2e330f78ab9a304d1cf107da5ce27166f374af4c 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 runs any tests with podman 4.6.1 or higher, but with earlier versions it just does nothing and exits 0, so that's fine. 4.6.1 is in F39 and Rawhide already, will land for F37 and F38 shortly. 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