add initial hermetic container build-and-test support

This commit is contained in:
Ivan Avdeev
2026-04-07 17:51:32 -04:00
parent 4a1a79f206
commit eecca09544
4 changed files with 137 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
#set -eux
set -ux
XDG_RUNTIME_DIR=/tmp weston \
--backend=headless \
--renderer=gl \
--width=1280 \
--height=800 \
--socket=wayland-headless &
build() {
pushd /build/xash3d-fwgs
./waf configure -T release -o /build/obj -8
./waf install --destdir=/build/out
popd
}
rendertest() {
pushd /build/HLRTest/render
WAYLAND_DISPLAY=/tmp/wayland-headless ./rendertest.py --xash-dir /build/out run
popd
}
time build
time rendertest