pikapython/port/linux/valgrind.sh

10 lines
345 B
Bash
Raw Normal View History

2022-05-02 17:56:38 +08:00
sh only_make.sh
2022-05-02 15:34:32 +08:00
if [ $# == 0 ] ; then
2022-07-21 21:58:54 +08:00
valgrind -s --track-origins=yes --leak-check=full --show-leak-kinds=all --exit-on-first-error=yes --error-exitcode=1 build/test/pikascript_test
2022-05-02 15:34:32 +08:00
fi
if [ $# == 1 ] ; then
filter=$1
valgrind --track-origins=yes --leak-check=full --show-leak-kinds=all build/test/pikascript_test --gtest_filter=$filter
fi