zeek/testing/scripts/diff-clean-doctest
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

11 lines
393 B
Bash
Executable File

#! /usr/bin/env bash
#
# doctest's console reports contain several aspects that change over time:
# - The total number of tests, which we replace with "XX"
# - The version number, which becomes "x.y.z"
# - Spacing in the report, which we normalize to single spaces
sed -E -e 's/[0-9]+ skipped/XX skipped/g' |
sed -E -e 's/"[0-9]+\.[0-9]+\.[0-9]+"/"x.y.z"/g' |
sed -E -e 's/ {2,}/ /g'