File: test-immutable.sh

package info (click to toggle)
gnulib 20250303-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 188,756 kB
  • sloc: ansic: 378,600; sh: 30,630; python: 8,358; cpp: 2,811; yacc: 1,846; perl: 920; makefile: 577; lisp: 328; sed: 11; java: 5
file content (12 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download | duplicates (5)
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