mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-25 00:29:45 -05:00
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.
11 lines
261 B
Bash
Executable File
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
|