[packages/bubblewrap] Run test suite

arekm arekm at pld-linux.org
Thu Jul 30 23:15:30 CEST 2026


commit f28132562536c4d4f3468ef0138317e7d665d932
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jul 30 23:15:07 2026 +0200

    Run test suite

 bubblewrap.spec | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/bubblewrap.spec b/bubblewrap.spec
index d313b70..bf8126c 100644
--- a/bubblewrap.spec
+++ b/bubblewrap.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	tests		# test suite
+#
 Summary:	bubblewrap - container setup utility
 Summary(pl.UTF-8):	bubblewrap - narzędzie do tworzenia kontenerów
 Name:		bubblewrap
@@ -16,6 +20,9 @@ BuildRequires:	libxslt-progs
 BuildRequires:	meson >= 0.49.0
 BuildRequires:	ninja >= 1.5
 BuildRequires:	pkgconfig
+%if %{with tests}
+BuildRequires:	python3-seccomp
+%endif
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 2.042
 BuildRequires:	tar >= 1:1.22
@@ -78,10 +85,15 @@ Dopełnianie parametrów polecenia bwrap dla ZSH.
 	-Dbash_completion_dir=%{bash_compdir} \
 	-Dman=enabled \
 	-Dselinux=enabled \
+	-Dtests=%{__true_false tests} \
 	-Dzsh_completion_dir=%{zsh_compdir}
 
 %meson_build
 
+%if %{with tests}
+%meson_test
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bubblewrap.git/commitdiff/f28132562536c4d4f3468ef0138317e7d665d932



More information about the pld-cvs-commit mailing list