#! /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