diff --git a/systemd.changes b/systemd.changes index b7b37a2..9b7eaed 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 116862d..3ed0109 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