2010-06-03 21:24:43 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# This shell runs the tests with valgrind.
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# $Id: run_valgrind_tests.sh,v 1.9 2010/01/26 20:24:18 ed Exp $
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
set -e
|
|
|
|
echo ""
|
|
|
|
echo "Testing programs with valgrind..."
|
|
|
|
|
|
|
|
# These are my test programs.
|
2011-03-15 18:19:08 +08:00
|
|
|
list="t_type tst_camrun tst_vl tst_v2 tst_vars2 \
|
|
|
|
tst_atts2 tst_files tst_atts"
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
for tst in $list; do
|
|
|
|
echo ""
|
|
|
|
echo "Memory testing with $tst:"
|
|
|
|
valgrind -q --error-exitcode=2 --leak-check=full ./$tst
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "SUCCESS!!!"
|
|
|
|
|
|
|
|
exit 0
|