From 861dec8e0be4c287945d50d5b68defac05303407 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 30 Sep 2010 21:48:16 +0000 Subject: [PATCH] added scrupt for brute force callof valgrind over serialiser tests git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3576 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/tests/serialiser/valgrind_all.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 libretroshare/src/tests/serialiser/valgrind_all.sh 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