From: Marco van Wieringen Date: Sat, 17 Oct 2009 18:45:09 +0000 (+0200) Subject: Added xattr regression for NetBSD and fix typo introduced in previous commit. X-Git-Tag: Release-7.0.0~2599^2~9^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfa2e9ea735e36b92ae13099693c68598a1dbf53;p=bacula%2Fbacula Added xattr regression for NetBSD and fix typo introduced in previous commit. --- 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