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

- The absolute path canonifier was overzealously canonifying relevant log fields, so it's no longer generally applied to diffing all baselines. I don't think there's any logs that require local filesystem path names that aren't already tested by a unit test, but if any show up in the future, they can be canonified on a case-by-case basis. - Removed some logs from being diff'd in the diff-all script because they're either already covered by a unit test (load_scripts.log) or because of difficulty/maintainenance tradeoff (prof.log). Baselines for the external bro-testing repo still need updating.
29 lines
510 B
Bash
Executable file
29 lines
510 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 [[ "$i" != "loaded_scripts.log" && "$i" != "prof.log" ]]; then
|
|
if ! btest-diff $i; then
|
|
echo "" >>$diag
|
|
echo "#### btest-diff $i" >>$diag
|
|
echo "" >>$diag
|
|
cat $diag.tmp >>$diag
|
|
rc=1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
exit $rc
|