remove self-stack.sh script
authoraburford <andrew.burford@stonybrook.edu>
Sun, 15 May 2022 00:10:55 +0000 (20:10 -0400)
committeraburford <andrew.burford@stonybrook.edu>
Sun, 15 May 2022 00:10:55 +0000 (20:10 -0400)
it was meant to confirm that wrapfs returns an error when
stacked on top of itself but we are no longer doing that

tests/self-stack.sh [deleted file]

diff --git a/tests/self-stack.sh b/tests/self-stack.sh
deleted file mode 100755 (executable)
index 37f741a..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-SCRATCH_DEV=/dev/sdb
-SCRATCH_DIR=/n/scratch
-LOWER_DIR=/n/lower
-TMP_DIR=/n/tmp
-FS_TYPE=ext4
-
-function runcmd
-{
-    echo "CMD: $@"
-    sleep 0.25
-    $@
-    ret=$?
-    if test $ret -ne 0 && test "$1 $2 $3" != 'mount -t wrapfs'; then
-       echo "$0: exit code $ret"
-       exit $ret
-    fi
-}
-
-dirs="$TMP_DIR $LOWER_DIR $SCRATCH_DIR"
-for d in $dirs; do
-       echo checking dir $d
-       if cat /proc/mounts | grep $d; then
-               runcmd umount $d
-       fi
-done
-
-runcmd mkfs -t $FS_TYPE $SCRATCH_DEV <<< y
-runcmd mount $SCRATCH_DEV $SCRATCH_DIR
-runcmd mount -t wrapfs $SCRATCH_DIR $LOWER_DIR
-runcmd mount -t wrapfs $LOWER_DIR $TMP_DIR
-if test $ret != 32; then
-       echo wrapfs returned unexpected error code attempting to mount on top of itself: $ret
-else
-       echo wrapfs returned expected error code
-fi