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
This commit is contained in:
Franck Bui 2024-05-16 14:23:48 +00:00 committed by Git OBS Bridge
parent 7b1278ac37
commit d09e66c09e
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 16 10:01:20 UTC 2024 - Radoslav Kolev <radoslav.kolev@suse.com>
- systemd.spec: enable tests during build
-------------------------------------------------------------------
Thu May 16 08:27:27 UTC 2024 - Franck Bui <fbui@suse.com>

View File

@ -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