Blob Blame History Raw
From c9b56988eeee3da0b987adce79536ae4a4f2b6d0 Mon Sep 17 00:00:00 2001
From: Eric Garver <eric@garver.life>
Date: Tue, 10 Dec 2019 10:15:13 -0500
Subject: [PATCH 10/37] test: check-container: add support for fedora rawhide

(cherry picked from commit 8168904f2dd1ecdec17638854e7630f2ccc90860)
(cherry picked from commit 25f35e1c400f68f33773d162d84f9a7af8aa9938)
---
 src/tests/Makefile.am | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index 4939fb818459..cef17b6eba4b 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -58,7 +58,25 @@ check-container-debian-sid:
 	make && \
 	make -C src/tests check-local TESTSUITEFLAGS=\"$(TESTSUITEFLAGS)\" "
 
+check-container-fedora-rawhide:
+	(cd $(abs_top_srcdir) && tar -c . ) | \
+	$(PODMAN) run -i --rm --privileged fedora:rawhide bash -c \
+	"mkdir -p /tmp/firewalld && cd /tmp/firewalld && tar -x && \
+	dnf -y makecache && \
+	dnf -y install autoconf automake conntrack-tools desktop-file-utils \
+	               docbook-style-xsl file gettext glib2-devel intltool ipset \
+	               iptables iptables-nft libtool libxml2 libxslt make nftables \
+	               python3-nftables python3-slip-dbus python3-gobject-base \
+	               diffutils procps-ng iproute which dbus-daemon && \
+	alternatives --set ebtables /usr/sbin/ebtables-nft && \
+	./autogen.sh && \
+	./configure PYTHON=/usr/bin/python3 && \
+	make && \
+	make -C src/tests check-local TESTSUITEFLAGS=\"$(TESTSUITEFLAGS)\" "
+
 check-container: check-container-debian-sid
+check-container: check-container-fedora-rawhide
 
 .PHONY: check-container
 .PHONY: check-container-debian-sid
+.PHONY: check-container-fedora-rawhide
-- 
2.23.0