From 393a73617464726bdf9a721e30ab7712c10e8283 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sat, 17 Oct 2009 20:45:09 +0200 Subject: [PATCH] Added xattr regression for NetBSD and fix typo introduced in previous commit. --- regress/tests/acl-xattr-test | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/regress/tests/acl-xattr-test b/regress/tests/acl-xattr-test index fe7bbe7683..c27e2fd2f1 100755 --- a/regress/tests/acl-xattr-test +++ b/regress/tests/acl-xattr-test @@ -20,6 +20,10 @@ # tunefs -a enable # acls mountoption in /etc/fstab # +# For NetBSD: +# +# Defaults should be ok (As NetBSD doesn't support native acls we skip that test). +# TestName="acl-xattr-test" JobName=backup . scripts/functions @@ -55,6 +59,14 @@ case `uname -s` in exit 0 fi + # Require lsextattr to be installed + lsextattr user Makefile 2>&1 >/dev/null + if test $? -ne 0; then + echo "$TestName skipped: lsextattr not installed" + exit 0 + fi + ;; + NetBSD) # Require lsextattr to be installed lsextattr user Makefile 2>&1 >/dev/null if test $? -ne 0; then @@ -165,7 +177,14 @@ EOF getextattr user bacula.test $d/other > $cwd/tmp/attr.org ) ;; - Darwin) + NetBSD) + cp ${cwd}/bin/bconsole $d/other + setextattr user bacula.test rulez $d/other 2>/dev/null 1>/dev/null + + ( cd $cwd/build + cp /dev/null $cwd/tmp/org + getextattr user bacula.test $d/other > $cwd/tmp/attr.org + ) ;; esac @@ -226,6 +245,12 @@ case `uname -s` in getextattr user bacula.test $d/other > $cwd/tmp/attr.new ) ;; + NetBSD) + ( cd $cwd/tmp/bacula-restores/$cwd/build + cp /dev/null $cwd/tmp/new + getextattr user bacula.test $d/other > $cwd/tmp/attr.new + ) + ;; esac diff -u $cwd/tmp/org $cwd/tmp/new -- 2.39.5