Bump to 1.14.1
[platform/upstream/augeas.git] / tests / test-get.sh
1 #!/bin/sh
2
3 # Check that reading the files in tests/root/ with augtool does not lead to
4 # any errors
5
6 TOPDIR=$(cd $(dirname $0)/.. && pwd)
7 [ -n "$abs_top_srcdir" ] || abs_top_srcdir=$TOPDIR
8
9 export AUGEAS_LENS_LIB=$abs_top_srcdir/lenses
10 export AUGEAS_ROOT=$abs_top_srcdir/tests/root
11
12 errors=$(augtool --nostdinc match '/augeas//error/descendant-or-self::*')
13
14 if [ "x$errors" != "x  (no matches)" ] ; then
15     printf "get /augeas//error reported errors:\n%s\n" "$errors"
16     exit 1
17 fi