- tools-posix.test:
$ mke2fs /dev/md0 # Where md0 mapped tp 4G file
$ mount -t ext2fs -o acls /dev/md0 /mnt
$ cd /mnt
$ /usr/src/tests/sys/acl/run /usr/src/tests/sys/acl/tools-posix.test
Expected only next fails, because ACLs does not supported for fifos:
[409] $ setfacl -m u:42:r,g:43:w fff -- failed
setfacl: fff: acl_get_file() failed: Operation not supported != ~
[410] $ getfacl fff -- failed
- file: fff == # file: fff
- owner: root == # owner: root
- group: wheel == # group: wheel
user::rw- == user::rw-
group::r-- != user:42:r--
other::r-- != group::r--
~ != group:43:-w-
~ != mask::rw-
~ != other::r--
[421] $ ls -l fff | cut -d' ' -f1 -- failed
prw-r--r-- != prw-rw-r--+
[424] $ setfacl -bn fff -- failed
- tuxera pjd test:
Download it from here http://www.tuxera.com/community/posix-test-suite/
Fix Makefile to use clang and change error codes in fstest.c, for example:
ENODATA => ENOATTR, EBADRQC => EINVAL
$ cp ./pjd-fstest-20090130-RC /mnt/
$ make
$ prove -r ./tests/xacl/
Expected:
./tests/xacl/00.t .. ok
./tests/xacl/01.t .. ok
./tests/xacl/02.t .. ok
./tests/xacl/03.t .. ok
./tests/xacl/04.t .. ok
./tests/xacl/05.t .. ok
./tests/xacl/06.t .. ok
All tests successful.
Files=7, Tests=7, 6 wallclock secs ( 0.38 usr 0.55 sys + 0.70 cusr 4.56 csys = 6.19 CPU)
Result: PASS
- pjdfstest with and without -o acls mount option:
$ mount -t ext2fs /dev/md0 /mnt
$ cd /mnt
$ cp -r /usr/src/contrib/pjdfstest ./
$ cd /mnt/pjdfstest
$ make
$ prove -r ./tests > ~/ext2_no_acls_log.txt
$ cd ~
$ umount /dev/md0
$ mount -t ext2fs -o acls /dev/md0 /mnt
$ cd /mnt/pjdfstest
$ prove -r ./tests > ~/ext2_with_acls_log.txt
$ diff ~/ext2_no_acls_log.txt ~/ext2_with_acls_log.txt
Expected:
$ diff ~/ext2_no_acls_log.txt ~/ext2_with_acls_log.txt
342c342
< Files=220, Tests=9869, 2298 wallclock secs (18.03 usr 28.01 sys + 246.51 cusr 1676.73 csys = 1969.27 CPU)
Files=220, Tests=9869, 1776 wallclock secs (12.79 usr 23.96 sys + 197.99 cusr 1305.92 csys = 1540.66 CPU)
- EA's fsx from https://reviews.freebsd.org/D10460, regression:
$ ./extattr_fsx_test.sh
Expected, that test will be passed.