summaryrefslogtreecommitdiffstats
path: root/kernel/tools/testing/selftests/memfd/run_fuse_test.sh
blob: 69b930e1e0415686414cdf4aee0c92580a03ab86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

if test -d "./mnt" ; then
	fusermount -u ./mnt
	rmdir ./mnt
fi

set -e

mkdir mnt
./fuse_mnt ./mnt
./fuse_test ./mnt/memfd
fusermount -u ./mnt
rmdir ./mnt