Files
Sourcetrail/script/valgrind_debug.sh
T
Andreas Stallinger 6afd52a3d2 Setup: Valgrind Setup
Valgrind scripts for linux added
leak-logfile output in build directory
2014-04-02 17:58:13 +02:00

10 lines
222 B
Bash
Executable File

#!/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"