]> git.sur5r.net Git - bacula/bacula/commitdiff
Added xattr regression for NetBSD and fix typo introduced in previous commit.
authorMarco van Wieringen <mvw@planets.elm.net>
Sat, 17 Oct 2009 18:45:09 +0000 (20:45 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Sun, 18 Oct 2009 11:14:32 +0000 (13:14 +0200)
regress/tests/acl-xattr-test

index fe7bbe768381fe7740cd8f90a438153faef9aa8a..c27e2fd2f142131c4d811786e01691a2ca30054a 100755 (executable)
 #       tunefs -a enable <device>
 #       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