Setup: Valgrind Setup

Valgrind scripts for linux added
leak-logfile output in build directory
This commit is contained in:
Andreas Stallinger
2014-04-02 17:58:13 +02:00
parent 195e7bb574
commit 6afd52a3d2
4 changed files with 29 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Determine path to script
MY_PATH=`dirname "$0"`
cd $MY_PATH/..
# Build and run target
make -C build/Debug "$1" && valgrind --tool=memcheck --leak-check=yes --log-file=build/Debug/"$1".leaklog bin/Debug/"$1"
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Determine path to script
MY_PATH=`dirname "$0"`
cd $MY_PATH/..
# Build and run target
make -C build/Release "$1" && valgrind --tool=memcheck --leak-check=yes --log-file=build/Release/"$1".leaklog bin/Release/"$1"