scripts/test now outputs a valgrind log

This commit is contained in:
Emile Clark-Boman 2025-09-11 22:18:35 +10:00
parent 15650ef26c
commit 8451df7c92

View file

@ -20,7 +20,7 @@ fi
if [[ "$MODE_ARG" =~ .*valgrind ]]; then
MODE="$MODE_ARG"
VALGRIND=true
PROXY='valgrind -s --leak-check=full --show-leak-kinds=all'
PROXY='valgrind -s --log-file=logs/valgrind.log --leak-check=full --show-leak-kinds=all'
TARGET=debug
fi
@ -40,4 +40,5 @@ if [[ ! -x "$PROGRAM" ]]; then
exit 1
fi
mkdir -p logs
LD_LIBRARY_PATH=./lib $PROXY "$PROGRAM" $@