use suppression file for old ubuntu

This commit is contained in:
Enno Rehling 2015-08-05 18:19:17 +02:00
parent 487aaede16
commit 47ff4ca9dd
1 changed files with 3 additions and 1 deletions

View File

@ -16,13 +16,15 @@ while [ ! -d $ROOT/.git ]; do
ROOT=`dirname $ROOT`
done
set -e
cd $ROOT/tests
setup
cleanup
VALGRIND=`which valgrind`
SERVER=../Debug/eressea/eressea
if [ -n "$VALGRIND" ]; then
SERVER="$VALGRIND $SERVER"
SUPP=../share/ubuntu-12_04.supp
SERVER="$VALGRIND --suppressions=$SUPP --error-exitcode=1 --leak-check=no $SERVER"
fi
echo "running $SERVER"
$SERVER -t 184 ../scripts/reports.lua