summaryrefslogtreecommitdiff
path: root/tests/test-immutable.sh
blob: 5b8d8d01332f2f5e7e595a5202e6f01cc1342d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Print "Skipping test" if immutability cannot be enforced.
./test-immutable${EXEEXT} 0
if test $? = 77; then exit 77; fi

st=0
for i in 1 2 3 4 ; do
  ${CHECKER} ./test-immutable${EXEEXT} $i \
    || { echo test-immutable.sh: test case $i failed >&2; st=1; }
done
exit $st