2010-12-02 02:21:47 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
|
|
|
|
2010-12-02 02:21:47 +08:00
|
|
|
# This shell runs the tests with valgrind.
|
|
|
|
|
|
|
|
# $Id: run_valgrind_tests.sh,v 1.9 2010/01/26 20:24:18 ed Exp $
|
|
|
|
|
|
|
|
set -e
|
|
|
|
echo ""
|
|
|
|
echo "Testing programs with valgrind..."
|
|
|
|
|
|
|
|
# These are my test programs.
|
|
|
|
list='nctest tst_rename'
|
|
|
|
|
|
|
|
# These don't work yet: tst_fills tst_xplatform2 tst_interops6 tst_strings
|
|
|
|
|
|
|
|
for tst in $list; do
|
|
|
|
echo ""
|
|
|
|
cmd1="valgrind -q --error-exitcode=2 --leak-check=full ./$tst"
|
|
|
|
echo "$cmd1:"
|
|
|
|
$cmd1
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "SUCCESS!!!"
|
|
|
|
|
|
|
|
exit 0
|