#!/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
WVSTART "extended metadata"
WVPASS bup fuse --meta mnt
-result=$(TZ=UTC WVPASS ls -l mnt/src/latest/) || exit $?
+result=$(TZ=UTC LC_ALL=C WVPASS ls -l mnt/src/latest/) || exit $?
readonly user=$(WVPASS id -un) || $?
readonly group=$(WVPASS id -gn) || $?
WVPASSEQ "$result" "total 0