1133641Sfjoe#!/bin/sh 2133641Sfjoe# 3133641Sfjoe# $FreeBSD$ 4133641Sfjoe# 5133641Sfjoe 6133641Sfjoemntpoint="/mnt/test-1" 7133641Sfjoe 8133641Sfjoe# 9133641Sfjoe# prepare 10133641Sfjoekldload geom_uzip 11150734Sfjoeuudecode test-1.img.uzip.uue 12150734Sfjoenum=`mdconfig -an -f test-1.img.uzip` || exit 1 13133641Sfjoesleep 1 14133641Sfjoe 15133641Sfjoe# 16133641Sfjoe# mount 17133641Sfjoemkdir -p "${mntpoint}" 18133641Sfjoemount -o ro /dev/md${num}.uzip "${mntpoint}" || exit 1 19133641Sfjoe 20133641Sfjoe# 21133641Sfjoe# compare 22133641Sfjoe#cat "${mntpoint}/etalon.txt" 23133641Sfjoediff -u etalon/etalon.txt "${mntpoint}/etalon.txt" 24133641Sfjoeif [ $? -eq 0 ]; then 25133641Sfjoe echo "PASS" 26133641Sfjoeelse 27133641Sfjoe echo "FAIL" 28133641Sfjoefi 29133641Sfjoe 30133641Sfjoe# 31133641Sfjoe# cleanup 32133641Sfjoeumount "${mntpoint}" 33133641Sfjoermdir "${mntpoint}" 34133641Sfjoemdconfig -d -u ${num} 35150734Sfjoesleep 1 36133641Sfjoekldunload geom_uzip 37