blob: 1b9daa483009e6b327e3d73e7268c34e52aba700 [file] [log] [blame]
# For the license, see the LICENSE file in the root directory.
if ! [[ "$(uname -s)" =~ Linux ]]; then
echo "Need Linux to run test with CUSE interface."
exit 77
fi
if [ "$(id -u)" -ne 0 ]; then
echo "Need to be root to run test with CUSE interface."
exit 77
fi
if [ ! -c /dev/cuse ]; then
modprobe cuse
if [ $? -ne 0 ]; then
echo "Skipping test using CUSE module: module not availabe"
exit 77
fi
fi