3 # This is a wrapper script to run tools-posix.test.
5 # If any of the tests fails, here is how to debug it: go to
6 # the directory with problematic filesystem mounted on it,
7 # and do /path/to/test run /path/to/test tools-posix.test, e.g.
9 # /usr/src/tools/regression/acltools/run /usr/src/tools/regression/acltools/tools-posix.test
11 # Output should be obvious.
18 if [ `whoami` != "root" ]; then
19 echo "not ok 1 - you need to be root to run this test."
25 # Set up the test filesystem.
26 MD=`mdconfig -at swap -s 10m`
27 MNT=`mktemp -dt acltools`
28 newfs /dev/$MD > /dev/null
29 mount -o acls /dev/$MD $MNT
31 echo "not ok 1 - mount failed."
39 # First, check whether we can crash the kernel by creating too many
40 # entries. For some reason this won't work in the test file.
43 while :; do i=$(($i+1)); setfacl -m u:$i:rwx xxx 2> /dev/null; if [ $? -ne 0 ]; then break; fi; done
48 perl $TESTDIR/run $TESTDIR/tools-posix.test > /dev/null