mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Adding missing script.
This commit is contained in:
parent
3c2fa085d4
commit
f1e132cd1a
1 changed files with 10 additions and 0 deletions
10
testing/external/scripts/perftools-adapt-paths
vendored
Executable file
10
testing/external/scripts/perftools-adapt-paths
vendored
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue