mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00

- A new helper script to btest-diff a bunch of files simulatiously. - Fixes to btest.cfg. - A few further script updates.
27 lines
405 B
Bash
Executable file
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
|