xinit-piglit-session.sh revision 1b5d61b8
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# Write the piglit.conf we'll use for our testing. Don't use the 28# default piglit.conf name because that may overwrite a local 29# piglit.conf. 30PIGLITCONF=piglit-xserver-test.conf 31cat <<EOF > $PIGLITCONF 32[xts] 33path=$XTEST_DIR 34EOF 35 36# Skip some tests that are failing at the time of importing the script. 37# "REPORT: min_bounds, rbearing was 0, expecting 2" 38PIGLIT_ARGS="$PIGLIT_ARGS -x xlistfontswithinfo@3" 39PIGLIT_ARGS="$PIGLIT_ARGS -x xlistfontswithinfo@4" 40PIGLIT_ARGS="$PIGLIT_ARGS -x xloadqueryfont@1" 41PIGLIT_ARGS="$PIGLIT_ARGS -x xqueryfont@1" 42PIGLIT_ARGS="$PIGLIT_ARGS -x xqueryfont@2" 43 44exec ./piglit-run.py xts-render -f $PIGLITCONF $PIGLIT_ARGS $PIGLIT_RESULTS_DIR 45