xref: /OK3568_Linux_fs/external/xserver/test/scripts/xephyr-glamor-piglit.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3# this times out on Travis, because the tests take too long.
4if test "x$TRAVIS_BUILD_DIR" != "x"; then
5    exit 77
6fi
7
8# Start a Xephyr server using glamor.  Since the test environment is
9# headless, we start an Xvfb first to host the Xephyr.
10export PIGLIT_RESULTS_DIR=$XSERVER_BUILDDIR/test/piglit-results/xephyr-glamor
11
12export SERVER_COMMAND="$XSERVER_BUILDDIR/hw/kdrive/ephyr/Xephyr \
13        -glamor \
14        -glamor-skip-present \
15        -noreset \
16        -schedMax 2000 \
17        -screen 1280x1024"
18
19$XSERVER_BUILDDIR/test/simple-xinit \
20        $XSERVER_DIR/test/scripts/run-piglit.sh \
21        -- \
22        $XSERVER_BUILDDIR/hw/vfb/Xvfb \
23        -screen scrn 1280x1024x24
24