forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: Add infrastructure to make it easier to run valgrind (envoypro…
…xy#3227) Signed-off-by: Joshua Marantz <[email protected]>
- Loading branch information
1 parent
c02bc5b
commit ef40929
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# | ||
# Helper script to run tests under valgrind. Usage: | ||
# bazel test --run_under=`pwd`/tools/run-valgrind.sh ... | ||
# | ||
|
||
dir=$(dirname "$0") | ||
|
||
# In order to add suppressions, it's helpful to run the tool in a mode | ||
# where it uses the suppressions file we have so far, but also | ||
# generates possible new suppressions in the test output, so you can | ||
# paste them into the suppressions file. | ||
#yes | exec valgrind --gen-suppressions=yes --suppressions="$dir/valgrind-suppressions.txt" "$@" | ||
|
||
# Ordinarily, we run with cleaner output. | ||
exec valgrind --gen-suppressions=yes --suppressions="$dir/valgrind-suppressions.txt" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
eliminate new/free mismatch warnings altogether, as something in the current toolchain generates this scenario. | ||
Memcheck:Free | ||
fun:free | ||
... | ||
} |