]> arthur.barton.de Git - bup.git/blobdiff - t/test-fuse.sh
Use *native* type sizes in file attr guard
[bup.git] / t / test-fuse.sh
index f258889d9f62fe78cc55322180a17fc6d34955c6..c19918284cc30d2e401b81d2348b5b00a95c9c41 100755 (executable)
@@ -1,8 +1,15 @@
 #!/usr/bin/env bash
-. ./wvtest-bup.sh
+. ./wvtest-bup.sh || exit $?
 
 set -o pipefail
 
+unset BLOCKSIZE BLOCK_SIZE DF_BLOCK_SIZE
+
+if test -n "$(type -p modprobe)" && ! modprobe fuse; then
+    echo 'Unable to load fuse module; skipping dependent tests.' 1>&2
+    exit 0
+fi
+
 if ! fusermount -V; then
     echo 'skipping FUSE tests: fusermount does not appear to work'
     exit 0