Valgrind scripts for linux added leak-logfile output in build directory
10 lines
222 B
Bash
Executable File
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"
|