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