Files
astronomy/generate/vgtest
Don Cross 80780637e6 Added vgtest script, for running ctest through valgrind.
The vgtest script allows checking for memory errors in
Astronomy Engine using valgrind. This helped me find
a bug where I was using uninitialized memory.
2020-08-22 14:34:25 -04:00

11 lines
261 B
Bash
Executable File

#!/bin/bash
if [[ -z "$1" ]]; then
echo ERROR: Must specify command parameter for ctest.
exit 1
fi
./build || exit $?
./generate source || exit $?
./ctbuild debug || exit $?
valgrind --leak-check=full --track-origins=yes ./ctest -v $1 || exit $?
exit 0