27251993ba
Change the CI scripts to use xvfb-run instead of running Xvfb directly. That avoids a potential race condition, where a test could fail because Xvfb hasn't started listening for connections yet. xvfb-run will wait for Xvfb to be ready before it runs any other programs. That also simplifies error handling, because the CI scripts can just use "set -e" instead of having to store the exit code, kill Xvfb, and then check for an error.
15 lines
375 B
Bash
15 lines
375 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
# Running a unity build (sometimes called a jumbo build) is both a useful thing
|
|
# to test and reduces compile time.
|
|
#
|
|
# Enable all auto-features to ensure that we're proprely testing all optional
|
|
# dependencies.
|
|
meson build --unity=on --auto-features=enabled $CONFIGURE_OPTIONS
|
|
ninja -C build
|
|
|
|
xvfb-run --auto-servernum ninja -C build test
|