new function stralloc
[rrq/fuse_xattrs.git] / run_tests.sh
index a3dcb365972f9e1ea686dae32d21ce07e5bc0716..5a0b4a0ffb64c2565b27d04cc88a01c11df281f5 100755 (executable)
@@ -2,7 +2,13 @@
 
 mkdir -p test/mount
 mkdir -p test/source
-./fuse_xattrs -o nonempty test/source/ test/mount/
+./fuse_xattrs -o enable_namespaces test/source/ test/mount/
+
+if [ $? -ne 0 ]; then
+    echo "Error mounting the filesystem."
+    echo "Do you have permissions?"
+    exit 1
+fi
 
 pushd test
 
@@ -13,7 +19,12 @@ set -e
 
 popd
 
-fusermount -zu test/mount
+if [[ "$OSTYPE" == "darwin"* ]]; then
+    umount test/mount
+else
+    fusermount -uz test/mount
+fi
+
 rm -d test/source
 rm -d test/mount