From d09e66c09eb82d6f5313c9f144785c34c22d285d5ad39f37bee5557be608fc66 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Thu, 16 May 2024 14:23:48 +0000 Subject: [PATCH] Accepting request 1174450 from home:radolin:branches:Base:System - systemd.spec: enable tests during build OBS-URL: https://build.opensuse.org/request/show/1174450 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1522 --- systemd.changes | 5 +++++ systemd.spec | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/systemd.changes b/systemd.changes index b7b37a22..9b7eaed4 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 16 10:01:20 UTC 2024 - Radoslav Kolev + +- systemd.spec: enable tests during build + ------------------------------------------------------------------- Thu May 16 08:27:27 UTC 2024 - Franck Bui diff --git a/systemd.spec b/systemd.spec index 116862d1..3ed01092 100644 --- a/systemd.spec +++ b/systemd.spec @@ -139,6 +139,11 @@ BuildRequires: pam-devel BuildRequires: python3-Jinja2 BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(blkid) >= 2.26 +#The following packages are only required by the tests during %check +BuildRequires: acl +BuildRequires: distribution-release +BuildRequires: python3-pefile +BuildRequires: timezone %if %{with bootstrap} #!BuildIgnore: dbus-1 @@ -1089,6 +1094,10 @@ rm -fr %{buildroot}%{_docdir}/systemd %systemd_pre systemd-journald-audit.socket %systemd_pre systemd-userdbd.service +#Execute the tests +%check +%meson_test + %post if [ $1 -eq 1 ]; then # Make /etc/machine-id an empty file during package installation. On the