zeek/testing/external/scripts/diff-all
Robin Sommer 7a989c476d Test infrastructure fixes.
- A new helper script to btest-diff a bunch of files simulatiously.

- Fixes to btest.cfg.

- A few further script updates.
2011-09-08 18:50:51 -07:00

27 lines
405 B
Bash
Executable file

#! /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