X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=run_tests.sh;h=5a0b4a0ffb64c2565b27d04cc88a01c11df281f5;hb=9adc87b63b1a6536019d5d7a236f85650dde2239;hp=a260b52fdc18019a7ba9b44b5ca42104b66f293e;hpb=3f472567bdd9bc3fbfd99b342ee29b25d5b553be;p=rrq%2Ffuse_xattrs.git diff --git a/run_tests.sh b/run_tests.sh index a260b52..5a0b4a0 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,7 +1,14 @@ #!/usr/bin/env bash mkdir -p test/mount -./fuse_xattrs -o nonempty test/mount/ +mkdir -p test/source +./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 @@ -12,7 +19,13 @@ 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 exit ${RESULT}