mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-06 19: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:
parent
a79c943d36
commit
3e03cef652
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue