From 33b85e1f8769e7f75721887638ae454d109a034f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 8 Jul 2024 13:15:37 -0400 Subject: Implement POSIX 2024's -mount This reverts commit 4f80c17192f2b28c96a489969d4435151d68d0ce. Link: https://www.austingroupbugs.net/view.php?id=1133 --- tests/common/L_mount.out | 5 ----- tests/common/L_mount.sh | 13 ------------- tests/common/mount.out | 4 ---- tests/common/mount.sh | 11 ----------- tests/posix/L_mount.out | 2 ++ tests/posix/L_mount.sh | 13 +++++++++++++ tests/posix/mount.out | 3 +++ tests/posix/mount.sh | 11 +++++++++++ 8 files changed, 29 insertions(+), 33 deletions(-) delete mode 100644 tests/common/L_mount.out delete mode 100644 tests/common/L_mount.sh delete mode 100644 tests/common/mount.out delete mode 100644 tests/common/mount.sh create mode 100644 tests/posix/L_mount.out create mode 100644 tests/posix/L_mount.sh create mode 100644 tests/posix/mount.out create mode 100644 tests/posix/mount.sh (limited to 'tests') diff --git a/tests/common/L_mount.out b/tests/common/L_mount.out deleted file mode 100644 index 788579d..0000000 --- a/tests/common/L_mount.out +++ /dev/null @@ -1,5 +0,0 @@ -. -./foo -./foo/bar -./foo/qux -./mnt diff --git a/tests/common/L_mount.sh b/tests/common/L_mount.sh deleted file mode 100644 index fd8042a..0000000 --- a/tests/common/L_mount.sh +++ /dev/null @@ -1,13 +0,0 @@ -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/common/mount.out b/tests/common/mount.out deleted file mode 100644 index 6253434..0000000 --- a/tests/common/mount.out +++ /dev/null @@ -1,4 +0,0 @@ -. -./foo -./foo/bar -./mnt diff --git a/tests/common/mount.sh b/tests/common/mount.sh deleted file mode 100644 index c9abde5..0000000 --- a/tests/common/mount.sh +++ /dev/null @@ -1,11 +0,0 @@ -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 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 -- cgit v1.2.3