zeek/testing/external/scripts/perftools-adapt-paths
2019-05-16 02:27:54 -05:00

10 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