Test infrastructure fixes.

- A new helper script to btest-diff a bunch of files simulatiously.

- Fixes to btest.cfg.

- A few further script updates.
This commit is contained in:
Robin Sommer 2011-09-08 15:17:05 -07:00
parent 07dd8eb952
commit 7a989c476d
6 changed files with 36 additions and 10 deletions

27
testing/external/scripts/diff-all vendored Executable file
View file

@ -0,0 +1,27 @@
#! /usr/bin/env bash
#
# Runs btest-diff on $@ and fails if any fails.
diag=$TEST_DIAGNOSTICS
export TEST_DIAGNOSTICS=$diag.tmp
if [ "$diag" = "" ]; then
diag=/dev/stdout
else
rm -f $diag
fi
rc=0;
for i in $@; do
if ! btest-diff $i; then
echo "" >>$diag
echo "#### btest-diff $i" >>$diag
echo "" >>$diag
cat $diag.tmp >>$diag
rc=1
fi
done
exit $rc