Bump to 1.14.1
[platform/upstream/augeas.git] / tests / test-augtool-modify-root.sh
1 #!/bin/sh
2
3 # Make sure changing the value of root works
4
5 exp="/ = root"
6
7 act=$(augtool --noautoload 2>&1 <<EOF
8 set / root
9 get /
10 quit
11 EOF
12 )
13 result=$?
14
15 if [ $result -ne 0 ]; then
16     echo "augtool failed"
17     exit 1
18 fi
19
20 if [ "$act" != "$exp" ]; then
21     echo "augtool produced unexpected output:"
22     echo "Expected:"
23     echo "$exp"
24     echo "Actual:"
25     echo "$act"
26     exit 1
27 fi