From 00bb631612e9d3526f8c2ac1383ea97a86a4dbb8 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 22 Apr 2003 21:04:48 +0000 Subject: Add "-r" when we initialize the label first time. Add two more tests. --- sbin/sunlabel/runtest.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'sbin/sunlabel') diff --git a/sbin/sunlabel/runtest.sh b/sbin/sunlabel/runtest.sh index d6ba1a5..8bddd67 100644 --- a/sbin/sunlabel/runtest.sh +++ b/sbin/sunlabel/runtest.sh @@ -6,7 +6,7 @@ set -e MD=`mdconfig -a -t malloc -s 2m` trap "exec 7 /dev/null 2>&1 ./sunlabel $MD > ${TMP}l0 @@ -20,6 +20,23 @@ s/3969/1024/ ' ${TMP}l0 > ${TMP}l1 ./sunlabel -R $MD ${TMP}l1 +if [ -c /dev/${MD}a ] ; then + echo "PASS: Created a: partition" 1>&2 +else + echo "FAIL: Did not create a: partition" 1>&2 + exit 2 +fi + +# Spoil and rediscover + +true > /dev/${MD} +if [ -c /dev/${MD}a ] ; then + echo "PASS: Recreated a: partition after spoilage" 1>&2 +else + echo "FAIL: Did not recreate a: partition after spoilage" 1>&2 + exit 2 +fi + dd if=/dev/$MD of=${TMP}i1 count=16 > /dev/null 2>&1 sed ' / c:/{ -- cgit v1.1