dncurrency/ci/tests/run-qt-tests.sh
2024-02-13 14:37:43 +01:00

19 lines
No EOL
308 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
# Alpine doesn't offer an xvfb
xvfb_run_()
{
INIT_DELAY_SEC=3
Xvfb :2 -screen 0 1024x768x24 &
xvfb_pid=$!
sleep ${INIT_DELAY_SEC}
DISPLAY=:2 $@
res=${?}
kill ${xvfb_pid}
return ${res}
}
xvfb_run_ $(dirname "$BASH_SOURCE")/run-tests.sh qt_test