diff --git a/libretroshare/src/tests/serialiser/valgrind_all.sh b/libretroshare/src/tests/serialiser/valgrind_all.sh new file mode 100755 index 000000000..d69bd2679 --- /dev/null +++ b/libretroshare/src/tests/serialiser/valgrind_all.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +echo This script will call valgrind on all executables of the current directory and launch a debugger in case it finds an error. If the script terminate with non error, then the test passes. Press enter when ready... +read tmp + +for i in `find . -executable -type f | grep -v valgrind`; do + echo testing $i + valgrind --tool=memcheck --db-attach=yes ./$i +done