From 87c4c8c4e0b3e07d495d3ef7fceb4c6c637fc793 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 15 Jun 2026 07:43:39 +0900 Subject: [PATCH] systemd/systemd: introduce systemd-tests subpackage Then, we can run unit tests and integration tests on postmarketOS systems. Part-of: --- extra-repos/systemd/systemd/APKBUILD | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extra-repos/systemd/systemd/APKBUILD b/extra-repos/systemd/systemd/APKBUILD index 4c105e464..f03a91813 100644 --- a/extra-repos/systemd/systemd/APKBUILD +++ b/extra-repos/systemd/systemd/APKBUILD @@ -156,6 +156,7 @@ subpackages=" $pkgname-dbg $pkgname-dev $pkgname-doc + $pkgname-tests $pkgname-x11 $pkgname-udevd @@ -245,6 +246,7 @@ build() { -Dpamlibdir=/usr/lib/security \ -Dpamconfdir=/usr/lib/pam.d \ -Dinstall-sysconfdir=false \ + -Dinstall-tests=true \ \ -Dsysupdate=enabled \ -Dsysupdated=enabled \ @@ -497,6 +499,12 @@ journald_zcomp() { _default_zshcomp _journalctl } +tests() { + depends="$pkgname=$pkgver-r$pkgrel" + + amove usr/lib/systemd/tests +} + x11() { pkgdesc="systemd x11" install_if="$pkgname=$pkgver-r$pkgrel xorg-server-common"