#!/bin/bash set -x check_return_value () { if [ $1 != 0 ] ; then exit $1 fi } cd $1 export DISPLAY=:1 Xvfb $DISPLAY -screen 0 1024x768x16 & ./configure --prefix=/usr check_return_value $? make check && rc=0 || rc=1; cat tests/run_tests.log; cat tests/test-suite.log exit $rc