2026-04-07 17:51:32 -04:00
|
|
|
#!/bin/bash
|
2026-04-08 01:17:49 -04:00
|
|
|
set -eux
|
|
|
|
|
|
|
|
|
|
echo DESTINATION_IS_WRITABLE > /opt/hl/testfile
|
2026-04-07 17:51:32 -04:00
|
|
|
|
|
|
|
|
XDG_RUNTIME_DIR=/tmp weston \
|
|
|
|
|
--backend=headless \
|
|
|
|
|
--renderer=gl \
|
|
|
|
|
--width=1280 \
|
|
|
|
|
--height=800 \
|
|
|
|
|
--socket=wayland-headless &
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
pushd /build/xash3d-fwgs
|
2026-04-08 01:17:49 -04:00
|
|
|
./waf configure -T release -8 \
|
|
|
|
|
build \
|
|
|
|
|
install --destdir=/opt/hl
|
2026-04-07 17:51:32 -04:00
|
|
|
popd
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rendertest() {
|
|
|
|
|
pushd /build/HLRTest/render
|
2026-04-09 15:24:54 -04:00
|
|
|
WAYLAND_DISPLAY=/tmp/wayland-headless ./rendertest.py \
|
|
|
|
|
--xash-dir /opt/hl \
|
|
|
|
|
--xash-revision "${XASH3D_REVISION}" \
|
|
|
|
|
--pbr-revision "${PBR_REVISION}" \
|
|
|
|
|
--tests-revision "${HLRTEST_REVISION}" \
|
|
|
|
|
run
|
2026-04-07 17:51:32 -04:00
|
|
|
popd
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
time build
|
|
|
|
|
time rendertest
|