summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-07 22:58:39 +0000
committerphk <phk@FreeBSD.org>2004-02-07 22:58:39 +0000
commit6c8d799cb97f8522753f515f0fdb2ffa67ba3a95 (patch)
tree0c2eee34b31505ea3351380b38025d4ece41d682 /sbin
parentf4a52a522bde0cd0f86dcc4b3a4eaaaa86de7217 (diff)
downloadFreeBSD-src-6c8d799cb97f8522753f515f0fdb2ffa67ba3a95.zip
FreeBSD-src-6c8d799cb97f8522753f515f0fdb2ffa67ba3a95.tar.gz
Fix the last and most important bit of the test case to test the same
binary as the rest of it. Add MD5 check that the md(4) device gets set up correctly.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/gbde/test.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/sbin/gbde/test.sh b/sbin/gbde/test.sh
index eeb2c4dee..67d8b38 100644
--- a/sbin/gbde/test.sh
+++ b/sbin/gbde/test.sh
@@ -47,9 +47,15 @@ if [ -f image.uu ] ; then
else
uudecode -p ${1}/image.uu | bzcat > $D
fi
-gbde attach $D -p foo
+
+if [ `md5 < $D` != "a4066a739338d451b919e63f9ee4a12c" ] ; then
+ echo "Failed to set up md(4) device correctly"
+ exit 2
+fi
+
+./gbde attach $D -p foo
fsck_ffs ${D}.bde
-gbde detach $D
+./gbde detach $D
mdconfig -d -u $MD
OpenPOWER on IntegriCloud