summaryrefslogtreecommitdiffstats
path: root/tests/common/mount.sh
blob: 3f3ed3838d920da45ba58dc41c3f6e6f8331d9cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
test "$SUDO" || skip
test "$UNAME" = "Darwin" && skip

clean_scratch
mkdir scratch/{foo,mnt}

sudo mount -t tmpfs tmpfs scratch/mnt
trap "sudo umount scratch/mnt" EXIT

"$XTOUCH" scratch/foo/bar scratch/mnt/baz

bfs_diff scratch -mount