mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
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:
parent
07dd8eb952
commit
7a989c476d
6 changed files with 36 additions and 10 deletions
27
testing/external/scripts/diff-all
vendored
Executable file
27
testing/external/scripts/diff-all
vendored
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue