xref: /linux/tools/testing/selftests/memfd/run_fuse_test.sh (revision eb01fe7abbe2d0b38824d2a93fdb4cc3eaf2ccc1)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3
4if test -d "./mnt" ; then
5	fusermount -u ./mnt
6	rmdir ./mnt
7fi
8
9set -e
10
11mkdir mnt
12./fuse_mnt ./mnt
13./fuse_test ./mnt/memfd $@
14fusermount -u ./mnt
15rmdir ./mnt
16