From f92fa445c278ffa601b13b4ba98f35c8af16b761 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 16 Dec 2022 17:44:29 -0500 Subject: tests: New test for -fstype on a stacked mount point --- tests/gnu/fstype_stacked.out | 1 + tests/gnu/fstype_stacked.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/gnu/fstype_stacked.out create mode 100644 tests/gnu/fstype_stacked.sh (limited to 'tests') diff --git a/tests/gnu/fstype_stacked.out b/tests/gnu/fstype_stacked.out new file mode 100644 index 0000000..99c7511 --- /dev/null +++ b/tests/gnu/fstype_stacked.out @@ -0,0 +1 @@ +scratch/mnt diff --git a/tests/gnu/fstype_stacked.sh b/tests/gnu/fstype_stacked.sh new file mode 100644 index 0000000..7110402 --- /dev/null +++ b/tests/gnu/fstype_stacked.sh @@ -0,0 +1,13 @@ +test "$SUDO" || skip +test "$UNAME" = "Linux" || skip + +clean_scratch +mkdir scratch/mnt + +sudo mount -t tmpfs tmpfs scratch/mnt +trap "sudo umount scratch/mnt" EXIT + +sudo mount -t ramfs ramfs scratch/mnt +trap "sudo umount scratch/mnt; sudo umount scratch/mnt" EXIT + +bfs_diff scratch/mnt -fstype ramfs -print -o -printf '%p: %F\n' -- cgit v1.2.3