summaryrefslogtreecommitdiff
path: root/testsuite/xattrs.test
diff options
context:
space:
mode:
authorBen RUBSON <6764151+benrubson@users.noreply.github.com>2020-07-12 21:36:02 +0200
committerGitHub <noreply@github.com>2020-07-12 12:36:02 -0700
commitde7e4d00ab899550017318e1077d4c33ce57f931 (patch)
tree4d9de1cdd11b2d4ad66837cd3831d954df4d2631 /testsuite/xattrs.test
parent374cc1be74834ff9cc380a0427401007b9d62eb3 (diff)
downloadrsync-de7e4d00ab899550017318e1077d4c33ce57f931.tar.gz
Improve FreeBSD tests (#61)
Improve FreeBSD tests & use a ZFS mount for the CI's testtmp.
Diffstat (limited to 'testsuite/xattrs.test')
-rw-r--r--testsuite/xattrs.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/xattrs.test b/testsuite/xattrs.test
index 5931ffcd..59fe1601 100644
--- a/testsuite/xattrs.test
+++ b/testsuite/xattrs.test
@@ -45,6 +45,19 @@ EOF
RSYNC_PREFIX='rsync'
RUSR='rsync.nonuser'
;;
+freebsd*)
+ xset() {
+ xnam="$1"
+ xval="$2"
+ shift 2
+ setextattr -h user "$xnam" "$xval" "${@}"
+ }
+ xls() {
+ for f in "${@}"; do lsextattr -q -h user "$f" | tr '[[:space:]]' '\n' | sort | xargs -I % getextattr -h user % "$f"; done
+ }
+ RSYNC_PREFIX='rsync'
+ RUSR='rsync'
+ ;;
*)
xset() {
xnam="$1"