mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
25 lines
472 B
Bash
25 lines
472 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# 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='simple_xy_wr simple_xy_rd sfc_pres_temp_wr '\
|
||
|
'sfc_pres_temp_rd pres_temp_4D_wr pres_temp_4D_rd '
|
||
|
|
||
|
for tst in $list; do
|
||
|
echo ""
|
||
|
cmd1="valgrind -q --error-exitcode=2 --leak-check=full ./$tst"
|
||
|
echo "$cmd1:"
|
||
|
$cmd1
|
||
|
done
|
||
|
|
||
|
echo "SUCCESS!!!"
|
||
|
|
||
|
exit 0
|