ci: add smoke test

Add a very basic smoke test which uses VKMS to fire up the DRM
backend.
This commit is contained in:
Simon Ser 2021-08-05 18:54:37 +02:00 committed by Kenny Levinsen
parent 033c9cab74
commit 88f65db87f

View File

@ -31,3 +31,13 @@ tasks:
- clang: | - clang: |
cd wlroots/build-clang cd wlroots/build-clang
ninja ninja
- smoke-test: |
cd wlroots/tinywl
sudo modprobe vkms
sudo seatd -u "$USER" &
while ! [ -e /run/seatd.sock ]; do sleep 0.1; done
export WLR_BACKENDS=drm
export WLR_RENDERER=pixman
export WLR_DRM_DEVICES=/dev/dri/by-path/platform-vkms-card
sudo chmod ugo+rw /dev/dri/by-path/platform-vkms-card
./tinywl -s 'kill $PPID' || [ $? = 143 ]