tests: Use "make STOP=1 check" to stop on first failure

This commit is contained in:
Petri Lehtinen 2011-02-19 12:15:16 +02:00
parent 4be9e9e7fe
commit e54ea1f7c9
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,8 @@ if [ -z "$SUITES" ]; then
done done
fi fi
[ -z "$STOP" ] && STOP=0
export suites_srcdir=$top_srcdir/test/suites export suites_srcdir=$top_srcdir/test/suites
export suites_builddir=suites export suites_builddir=suites
export scriptdir=$top_srcdir/test/scripts export scriptdir=$top_srcdir/test/scripts
@ -34,6 +36,7 @@ for suite in $SUITES; do
passed=$(($passed+1)) passed=$(($passed+1))
else else
failed=$(($failed+1)) failed=$(($failed+1))
[ $STOP -eq 1 ] && break
fi fi
done done

View File

@ -12,6 +12,7 @@ suite_log=$logdir/$suite_name
[ -z "$VERBOSE" ] && VERBOSE=0 [ -z "$VERBOSE" ] && VERBOSE=0
[ -z "$STOP" ] && STOP=0
. $scriptdir/valgrind.sh . $scriptdir/valgrind.sh
@ -47,6 +48,8 @@ for test_path in $suite_srcdir/*; do
else else
echo -n "F" echo -n "F"
fi fi
[ $STOP -eq 1 ] && break
fi fi
done done