mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge branch 'master' into topic/jsiwek/faf-updates
Conflicts: magic
This commit is contained in:
commit
ac6b12b5d4
21 changed files with 158 additions and 32 deletions
|
@ -2,10 +2,17 @@
|
|||
#
|
||||
# Default canonifier used with the trace-based tests in testing/external/*.
|
||||
|
||||
addl="cat"
|
||||
|
||||
if [ "$1" == "capture_loss.log" ]; then
|
||||
addl="`dirname $0`/diff-remove-fractions"
|
||||
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-canon-notice-policy \
|
||||
| `dirname $0`/diff-sort
|
||||
| `dirname $0`/diff-sort \
|
||||
| eval $addl
|
||||
|
||||
|
|
6
testing/scripts/diff-remove-fractions
Executable file
6
testing/scripts/diff-remove-fractions
Executable file
|
@ -0,0 +1,6 @@
|
|||
#! /usr/bin/env bash
|
||||
#
|
||||
# Replace fractions of double value (i.e., 3.14 -> 3.x).
|
||||
|
||||
sed 's/\.[0-9]\{1,\}/.X/g'
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue