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.
This commit is contained in:
phk 2004-02-07 22:58:39 +00:00
parent f4a52a522b
commit 6c8d799cb9

View File

@ -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