|
|
8072fb |
From 4c90b4a07d2b3f935f5ea8b4607a77f12b66d855 Mon Sep 17 00:00:00 2001
|
|
|
8072fb |
From: Eric Garver <eric@garver.life>
|
|
|
8072fb |
Date: Tue, 10 Dec 2019 10:34:16 -0500
|
|
|
8072fb |
Subject: [PATCH 27/45] test(check-container): add support for centos8 stream
|
|
|
8072fb |
|
|
|
8072fb |
(cherry picked from commit 47be9c516344243750b68d570c69e7a5c4022805)
|
|
|
8072fb |
(cherry picked from commit fdf7eb8c8d7b82e68c6488e4755568fd0a5442a1)
|
|
|
8072fb |
---
|
|
|
8072fb |
src/tests/Makefile.am | 21 +++++++++++++++++++--
|
|
|
8072fb |
1 file changed, 19 insertions(+), 2 deletions(-)
|
|
|
8072fb |
|
|
|
8072fb |
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
|
|
|
8072fb |
index 6be678146b99..b7556b30ecc8 100644
|
|
|
8072fb |
--- a/src/tests/Makefile.am
|
|
|
8072fb |
+++ b/src/tests/Makefile.am
|
|
|
8072fb |
@@ -48,7 +48,7 @@ $(TESTSUITE) $(TESTSUITE_INTEGRATION): $(TESTSUITE_FILES) $(srcdir)/package.m4
|
|
|
8072fb |
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
|
|
8072fb |
mv $@.tmp $@
|
|
|
8072fb |
|
|
|
8072fb |
-CONTAINER_TARGETS = check-container-debian-sid check-container-fedora-rawhide
|
|
|
8072fb |
+CONTAINER_TARGETS = check-container-debian-sid check-container-fedora-rawhide check-container-centos8-stream
|
|
|
8072fb |
|
|
|
8072fb |
check-container-debian-sid-image: check-container-%-image:
|
|
|
8072fb |
(cd $(abs_top_srcdir) && { \
|
|
|
8072fb |
@@ -76,11 +76,28 @@ check-container-fedora-rawhide-image: check-container-%-image:
|
|
|
8072fb |
echo "COPY . /tmp/firewalld"; \
|
|
|
8072fb |
} | $(PODMAN) build -t firewalld-testsuite-$* -f - . )
|
|
|
8072fb |
|
|
|
8072fb |
+check-container-centos8-stream-image: check-container-%-image:
|
|
|
8072fb |
+ (cd $(abs_top_srcdir) && { \
|
|
|
8072fb |
+ echo "FROM centos:8" && \
|
|
|
8072fb |
+ echo "RUN dnf -y makecache" && \
|
|
|
8072fb |
+ echo "RUN dnf -y install centos-release-stream" && \
|
|
|
8072fb |
+ echo "RUN dnf -y install autoconf automake conntrack-tools desktop-file-utils \
|
|
|
8072fb |
+ docbook-style-xsl file gettext glib2-devel intltool ipset \
|
|
|
8072fb |
+ iptables iptables-ebtables nftables libtool libxml2 \
|
|
|
8072fb |
+ libxslt make nftables python3-nftables python3-slip-dbus \
|
|
|
8072fb |
+ python3-gobject-base diffutils procps-ng iproute which dbus-daemon \
|
|
|
8072fb |
+ NetworkManager" && \
|
|
|
8072fb |
+ echo "COPY . /tmp/firewalld"; \
|
|
|
8072fb |
+ } | $(PODMAN) build -t firewalld-testsuite-$* -f - . )
|
|
|
8072fb |
+
|
|
|
8072fb |
+check-container-debian-sid: PYTHON=/usr/bin/python3
|
|
|
8072fb |
+check-container-fedora-rawhide: PYTHON=/usr/bin/python3
|
|
|
8072fb |
+check-container-centos8-stream: PYTHON=/usr/libexec/platform-python
|
|
|
8072fb |
$(CONTAINER_TARGETS): check-container-%: check-container-%-image
|
|
|
8072fb |
$(PODMAN) run -i --rm --privileged firewalld-testsuite-$* bash -c " \
|
|
|
8072fb |
cd /tmp/firewalld && \
|
|
|
8072fb |
./autogen.sh && \
|
|
|
8072fb |
- ./configure PYTHON=/usr/bin/python3 && \
|
|
|
8072fb |
+ ./configure PYTHON=\"${PYTHON}\" && \
|
|
|
8072fb |
make && \
|
|
|
8072fb |
{ make -C src/tests check-local TESTSUITEFLAGS=\"$(TESTSUITEFLAGS)\" || \
|
|
|
8072fb |
make -C src/tests check-local TESTSUITEFLAGS=\"--recheck --errexit --verbose\" ; } && \
|
|
|
8072fb |
--
|
|
|
8072fb |
2.27.0
|
|
|
8072fb |
|