add initial hermetic container build-and-test support
This commit is contained in:
Executable
+26
@@ -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
|
||||
Reference in New Issue
Block a user