mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Fixed some test canonifier scripts to read from stdin instead of from a filename specified as a cmd-line argument. This is needed in order to be able to reliably use them in a pipeline with other test canonifiers. Also removed some unused test canonifier scripts.
23 lines
545 B
Bash
Executable file
23 lines
545 B
Bash
Executable file
#! /usr/bin/env bash
|
|
#
|
|
# Default canonifier used with the trace-based tests in testing/external/*.
|
|
|
|
filename=`basename $1`
|
|
|
|
addl="cat"
|
|
|
|
if [ "$filename" == "capture_loss.log" ]; then
|
|
addl="`dirname $0`/diff-remove-fractions"
|
|
fi
|
|
|
|
if [ "$filename" == "ssh.log" ]; then
|
|
addl="`dirname $0`/diff-remove-fields remote_location"
|
|
fi
|
|
|
|
`dirname $0`/diff-remove-timestamps \
|
|
| `dirname $0`/diff-remove-uids \
|
|
| `dirname $0`/diff-remove-file-ids \
|
|
| `dirname $0`/diff-remove-x509-names \
|
|
| `dirname $0`/diff-sort \
|
|
| eval $addl
|
|
|