1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh Xvfb :4242 & PID=$! export DISPLAY=:4242 if ninja -C build meson-test; then kill $PID return 0 else kill $PID return 1 fi