1#!/bin/sh
2
3# .xinitrc replacement to run piglit and exit.
4#
5# Note that piglit will run many processes against the server, so
6# running the server with -noreset is recommended to improve runtime.
7
8set -e
9
10if test "x$PIGLIT_DIR" = "x"; then
11    echo "PIGLIT_DIR must be set to the directory of the piglit repository."
12    exit 1
13fi
14
15if test "x$PIGLIT_RESULTS_DIR" = "x"; then
16    echo "PIGLIT_RESULTS_DIR must be defined"
17    exit 1
18fi
19
20if test "x$XTEST_DIR" = "x"; then
21    echo "XTEST_DIR must be set to the root of the built xtest tree."
22    exit 1
23fi
24
25cd $PIGLIT_DIR
26
27# Skip some tests that are failing at the time of importing the script.
28#    "REPORT: min_bounds, rbearing was 0, expecting 2"
29PIGLIT_ARGS="$PIGLIT_ARGS -x xlistfontswithinfo@3"
30PIGLIT_ARGS="$PIGLIT_ARGS -x xlistfontswithinfo@4"
31PIGLIT_ARGS="$PIGLIT_ARGS -x xloadqueryfont@1"
32PIGLIT_ARGS="$PIGLIT_ARGS -x xqueryfont@1"
33PIGLIT_ARGS="$PIGLIT_ARGS -x xqueryfont@2"
34# Run as meson unit tests.
35PIGLIT_ARGS="$PIGLIT_ARGS -x rendercheck"
36
37exec ./piglit run xts-render $PIGLIT_ARGS $PIGLIT_RESULTS_DIR
38