xref: /OK3568_Linux_fs/kernel/tools/testing/selftests/memfd/run_fuse_test.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#!/bin/sh
2*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
3*4882a593Smuzhiyun
4*4882a593Smuzhiyunif test -d "./mnt" ; then
5*4882a593Smuzhiyun	fusermount -u ./mnt
6*4882a593Smuzhiyun	rmdir ./mnt
7*4882a593Smuzhiyunfi
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunset -e
10*4882a593Smuzhiyun
11*4882a593Smuzhiyunmkdir mnt
12*4882a593Smuzhiyun./fuse_mnt ./mnt
13*4882a593Smuzhiyun./fuse_test ./mnt/memfd $@
14*4882a593Smuzhiyunfusermount -u ./mnt
15*4882a593Smuzhiyunrmdir ./mnt
16