summaryrefslogtreecommitdiff
path: root/scripts/valgrind.sh
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-06-08 14:57:46 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-06-09 19:56:35 +0300
commit8bbb7216367890b9a8d0e5bc7899d180e3af1e87 (patch)
treed887e2658b0769918cb641c734189a6402102170 /scripts/valgrind.sh
parentfd8753748267de7c7a729c53e714ba6f55fa06b4 (diff)
downloadqtlocation-mapboxgl-8bbb7216367890b9a8d0e5bc7899d180e3af1e87.tar.gz
[Qt][build] Updated valgrind supression and make it a target for Qt
Diffstat (limited to 'scripts/valgrind.sh')
-rwxr-xr-xscripts/valgrind.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/valgrind.sh b/scripts/valgrind.sh
new file mode 100755
index 0000000000..009e18c432
--- /dev/null
+++ b/scripts/valgrind.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+set -e
+set -o pipefail
+
+PARAMS="\
+ --leak-check=full \
+ --show-leak-kinds=definite \
+ --errors-for-leak-kinds=definite \
+ --error-exitcode=1 \
+ --gen-suppressions=all \
+ --suppressions=scripts/valgrind.sup"
+
+export VALGRIND_LIB=$(.mason/mason prefix valgrind latest)/lib/valgrind
+
+$(.mason/mason prefix valgrind latest)/bin/valgrind $PARAMS $@