Skip to content

Commit

Permalink
tests: Use "make STOP=1 check" to stop on first failure
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Feb 19, 2011
1 parent 4be9e9e commit e54ea1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/run-suites
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ if [ -z "$SUITES" ]; then
done
fi

[ -z "$STOP" ] && STOP=0

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

Expand Down
3 changes: 3 additions & 0 deletions test/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ suite_log=$logdir/$suite_name


[ -z "$VERBOSE" ] && VERBOSE=0
[ -z "$STOP" ] && STOP=0

. $scriptdir/valgrind.sh

Expand Down Expand Up @@ -47,6 +48,8 @@ for test_path in $suite_srcdir/*; do
else
echo -n "F"
fi

[ $STOP -eq 1 ] && break
fi
done

Expand Down

0 comments on commit e54ea1f

Please sign in to comment.