1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 04:50:22 +00:00

Install Xvfb on Linux build agent

Xvfb is being used to give us an X server implementation on the Linux
build agents. A running X server is necessary for graphics to function
(which we have so far avoided testing).
This commit is contained in:
Matthew Kilgore 2022-11-23 02:19:02 -05:00
parent a79c943d36
commit 3e03cef652

View file

@ -32,6 +32,12 @@ show_incorrect_result()
# This is either win, lnx, or osx
OS=$CI_OS
# On Linux, we make use of xvfb-run to provide each test with a framebuffer
# based X server, which allows graphics to work.
if [ "$OS" == "lnx" ]; then
LNX_PREFIX=xvfb-run
fi
# Each .bas file represents a separate test.
while IFS= read -r test
do
@ -107,7 +113,7 @@ do
pushd . > /dev/null
cd "./tests/compile_tests/$category"
testResult=$("../../../$EXE" "../../../$RESULTS_DIR" "$category-$testName" 2>&1)
testResult=$($LNX_PREFIX "../../../$EXE" "../../../$RESULTS_DIR" "$category-$testName" 2>&1)
ERR=$?
popd > /dev/null