mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
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:
parent
5a57707840
commit
97d2ca7830
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue