mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
10 lines
328 B
Bash
Executable file
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
|