aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-26 06:39:45 +0900
committerOphestra <cat@gensokyo.uk>2026-01-26 06:39:45 +0900
commit122cfbf63a858825538e17f9c90fac5826e5359b (patch)
tree00e8b851f56db8fd8e55c0414697cdb1e135b706
parent504f5d28fe96f481b13049b1aaaba2f87e8b0d86 (diff)
internal/rosa: run wayland tests
Broken test is disabled for now. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/wayland.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/rosa/wayland.go b/internal/rosa/wayland.go
index a9e4ada5..a888df3c 100644
--- a/internal/rosa/wayland.go
+++ b/internal/rosa/wayland.go
@@ -18,6 +18,10 @@ func (t Toolchain) newWayland() pkg.Artifact {
t.Load(Libexpat),
t.Load(Libxml2),
}, nil, nil, `
+cd /usr/src/wayland
+chmod +w tests tests/sanity-test.c
+echo 'int main(){}' > tests/sanity-test.c
+
cd "$(mktemp -d)"
meson setup \
--reconfigure \
@@ -25,11 +29,13 @@ meson setup \
--prefix=/system \
--prefer-static \
-Ddocumentation=false \
+ -Dtests=true \
. /usr/src/wayland
meson compile
+meson test
meson install \
--destdir=/work
-`, pkg.Path(AbsUsrSrc.Append("wayland"), false, pkg.NewHTTPGetTar(
+`, pkg.Path(AbsUsrSrc.Append("wayland"), true, pkg.NewHTTPGetTar(
nil, "https://gitlab.freedesktop.org/wayland/wayland/"+
"-/archive/"+version+"/wayland-"+version+".tar.bz2",
mustDecode(checksum),