diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-07-08 13:15:37 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-07-08 13:15:37 -0400 |
commit | 33b85e1f8769e7f75721887638ae454d109a034f (patch) | |
tree | aa4831407cdc1466c4071d0691941b96f81bd2a3 /tests/posix | |
parent | 0ad75059c70488e9802d716c9e2dc04ad7b1ea5a (diff) | |
download | bfs-33b85e1f8769e7f75721887638ae454d109a034f.tar.xz |
Implement POSIX 2024's -mount
This reverts commit 4f80c17192f2b28c96a489969d4435151d68d0ce.
Link: https://www.austingroupbugs.net/view.php?id=1133
Diffstat (limited to 'tests/posix')
-rw-r--r-- | tests/posix/L_mount.out | 2 | ||||
-rw-r--r-- | tests/posix/L_mount.sh | 13 | ||||
-rw-r--r-- | tests/posix/mount.out | 3 | ||||
-rw-r--r-- | tests/posix/mount.sh | 11 |
4 files changed, 29 insertions, 0 deletions
diff --git a/tests/posix/L_mount.out b/tests/posix/L_mount.out new file mode 100644 index 0000000..7ed5f0d --- /dev/null +++ b/tests/posix/L_mount.out @@ -0,0 +1,2 @@ +. +./foo diff --git a/tests/posix/L_mount.sh b/tests/posix/L_mount.sh new file mode 100644 index 0000000..fd8042a --- /dev/null +++ b/tests/posix/L_mount.sh @@ -0,0 +1,13 @@ +test "$UNAME" = "Darwin" && skip + +cd "$TEST" +mkdir foo mnt + +bfs_sudo mount -t tmpfs tmpfs mnt || skip +defer bfs_sudo umount mnt + +ln -s ../mnt foo/bar +"$XTOUCH" mnt/baz +ln -s ../mnt/baz foo/qux + +bfs_diff -L . -mount diff --git a/tests/posix/mount.out b/tests/posix/mount.out new file mode 100644 index 0000000..b0ad937 --- /dev/null +++ b/tests/posix/mount.out @@ -0,0 +1,3 @@ +. +./foo +./foo/bar diff --git a/tests/posix/mount.sh b/tests/posix/mount.sh new file mode 100644 index 0000000..c9abde5 --- /dev/null +++ b/tests/posix/mount.sh @@ -0,0 +1,11 @@ +test "$UNAME" = "Darwin" && skip + +cd "$TEST" +mkdir foo mnt + +bfs_sudo mount -t tmpfs tmpfs mnt || skip +defer bfs_sudo umount mnt + +"$XTOUCH" foo/bar mnt/baz + +bfs_diff . -mount |