Bump to 1.14.1
[platform/upstream/augeas.git] / tests / test-valgrind.sh
1 #!/bin/sh
2
3 # Run the tests in lenses/tests through valgrind and report which ones leak
4 set -e
5
6 TOPDIR=$(cd $(dirname $0)/.. && pwd)
7 [ -n "$top_builddir" ] || top_builddir=$TOPDIR
8 [ -n "$top_srcdir" ] || top_srcdir=$TOPDIR
9
10
11 AUGPARSE="libtool --mode=execute valgrind -q --leak-check=full ${top_builddir}/src/augparse"
12 LENS_DIR=${top_srcdir}/lenses
13 TESTS=$LENS_DIR/tests/test_*.aug
14
15 for t in $TESTS
16 do
17   echo Run $(basename $t .aug)
18   set +e
19   ${AUGPARSE} --nostdinc -I $LENS_DIR $t
20 done