]> git.proxmox.com Git - mirror_zfs.git/commit
Enable xattr tests
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 May 2017 00:22:04 +0000 (20:22 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 22 May 2017 16:34:42 +0000 (12:34 -0400)
commit5a6d6cf839fe547f2007912f60eac23827b4a8de
tree34d43ca143942efee917018fa2290b173dabc997
parent95401cb6f7aa9ec3dd2d61335d2dcc9459c2661c
Enable xattr tests

Updated the xattr_common.ksh helper functions to use the attr
command on Linux to manipulate xattrs.  Added an xattr.cfg file
and reworked the user/group functionality to be consist with
the existing delegate test cases.  The intent of each test
case was preserved.

* xattr_001_pos, xattr_002_neg - Updated to verity xattr=on
  and xattr=sa sytle xattrs.

* xattr_003_neg - Use user_run helper instead of su.

* xattr_004_pos - Updated to work with ext2 xattrs.

* xattr_007_neg - Updated to use attr instead of runat.

* xattr_008_pos, xattr_009_neg8_pos, xattr_010_neg -
  Test cases disables since they aren't applicable to Linux.

* xattr_011_pos - Updated to expected behavior from GNU
  versions of the tested utilities.

* xattr_012_pos - Updated to use xattrtest to create many
  small xattrs instead of a single large one.

* xattr_013_pos - Updated to use attr instead of runat.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6128
17 files changed:
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/xattr/Makefile.am
tests/zfs-tests/tests/functional/xattr/cleanup.ksh
tests/zfs-tests/tests/functional/xattr/setup.ksh
tests/zfs-tests/tests/functional/xattr/xattr.cfg [new file with mode: 0644]
tests/zfs-tests/tests/functional/xattr/xattr_001_pos.ksh
tests/zfs-tests/tests/functional/xattr/xattr_002_neg.ksh
tests/zfs-tests/tests/functional/xattr/xattr_003_neg.ksh
tests/zfs-tests/tests/functional/xattr/xattr_004_pos.ksh
tests/zfs-tests/tests/functional/xattr/xattr_007_neg.ksh
tests/zfs-tests/tests/functional/xattr/xattr_008_pos.ksh
tests/zfs-tests/tests/functional/xattr/xattr_009_neg.ksh
tests/zfs-tests/tests/functional/xattr/xattr_010_neg.ksh
tests/zfs-tests/tests/functional/xattr/xattr_011_pos.ksh
tests/zfs-tests/tests/functional/xattr/xattr_012_pos.ksh
tests/zfs-tests/tests/functional/xattr/xattr_013_pos.ksh
tests/zfs-tests/tests/functional/xattr/xattr_common.kshlib