From 97d2ca78303fa2dbc596e3ca3a5cf33c2926e604 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 7 Feb 2004 22:58:39 +0000 Subject: [PATCH] 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. --- sbin/gbde/test.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sbin/gbde/test.sh b/sbin/gbde/test.sh index eeb2c4dee78..67d8b3809c3 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