aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Scardovi <marco@scardovi.com>2021-06-28 19:39:43 +0200
committerMarco Scardovi <marco@scardovi.com>2021-06-28 19:40:01 +0200
commitbb974100889989e9d5b408a92dd9f256c492d986 (patch)
tree6814556433f4ffb1438f9c393d01655d1cb5455c /sys-boot
parentx11-misc/squeekboard: added missing package (diff)
downloadguru-bb974100889989e9d5b408a92dd9f256c492d986.tar.gz
guru-bb974100889989e9d5b408a92dd9f256c492d986.tar.bz2
guru-bb974100889989e9d5b408a92dd9f256c492d986.zip
sys-boot/osk-sdl: add test
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco@scardovi.com>
Diffstat (limited to 'sys-boot')
-rw-r--r--sys-boot/osk-sdl/osk-sdl-0.64-r1.ebuild (renamed from sys-boot/osk-sdl/osk-sdl-0.64.ebuild)15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys-boot/osk-sdl/osk-sdl-0.64.ebuild b/sys-boot/osk-sdl/osk-sdl-0.64-r1.ebuild
index 4fc97688f..d7af7ff79 100644
--- a/sys-boot/osk-sdl/osk-sdl-0.64.ebuild
+++ b/sys-boot/osk-sdl/osk-sdl-0.64-r1.ebuild
@@ -14,7 +14,8 @@ SRC_URI="https://gitlab.com/postmarketOS/osk-sdl/-/archive/${COMMIT}.tar.gz -> $
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
-RESTRICT="test"
+IUSE="test"
+RESTRICT="!test? ( test )"
RDEPEND="
app-portage/gentoolkit
@@ -28,7 +29,13 @@ RDEPEND="
sys-kernel/dracut
"
-BDEPEND="app-text/scdoc"
+BDEPEND="
+ app-text/scdoc
+ test? (
+ x11-misc/xdotool
+ x11-misc/xvfb-run
+ )
+"
S="${WORKDIR}/${PN}-${COMMIT}"
@@ -37,6 +44,10 @@ src_prepare() {
sed -e s/ttf-dejavu/dejavu/ -i osk.conf || die "Failed to sed"
}
+src_test() {
+ meson_src_test
+}
+
src_install() {
meson_src_install
insinto /etc