zeek/testing/external/scripts/perftools-adapt-paths
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

11 lines
328 B
Bash
Executable File

#! /usr/bin/env bash
#
# Adapts relative paths in perftools stderr output to work
# directly from the top-level test directory.
#
# Returns an exit code > 0 if there's a leak.
cat $1 | sed "s#zeek *\"\./#../../../build/src/zeek \".tmp/$TEST_NAME/#g" | sed 's/ *--gv//g' >$1.tmp && mv $1.tmp $1
grep -qv "detected leaks of" $1