Adding missing script.

This commit is contained in:
Robin Sommer 2011-12-07 10:28:56 -08:00
parent 3c2fa085d4
commit f1e132cd1a

View file

@ -0,0 +1,10 @@
#! /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#bro *\"\./#../../../build/src/bro \".tmp/$TEST_NAME/#g" | sed 's/ *--gv//g' >$1.tmp && mv $1.tmp $1
grep -q "No leaks found" $1