Add more commands to run unit tests under valgrind.

This commit is contained in:
Taylor Hornby 2016-07-28 14:43:36 -06:00
parent 6dfc9e7a7c
commit 88325d8abb
1 changed files with 19 additions and 0 deletions

View File

@ -153,6 +153,25 @@ case "$1" in
zcashd_valgrind_stop
rm -f valgrind.out
;;
valgrind-tests)
case "$2" in
gtest)
rm -f valgrind.out
valgrind --leak-check=yes -v --error-limit=no --log-file="valgrind.out" ./src/zcash-gtest
cat valgrind.out
rm -f valgrind.out
;;
test_bitcoin)
rm -f valgrind.out
valgrind --leak-check=yes -v --error-limit=no --log-file="valgrind.out" ./src/test/test_bitcoin
cat valgrind.out
rm -f valgrind.out
;;
*)
echo "Bad arguments."
exit 1
esac
;;
*)
echo "Bad arguments."
exit 1