1_test.sh revision 133641
1#!/bin/sh 2# 3# $FreeBSD: head/tools/regression/geom_uzip/test-1.sh 133641 2004-08-13 09:53:52Z fjoe $ 4# 5 6mntpoint="/mnt/test-1" 7 8# 9# prepare 10kldload geom_uzip 11uudecode test-1.img.gz.uue 12num=`mdconfig -an -f test-1.img.gz` || exit 1 13sleep 1 14 15# 16# mount 17mkdir -p "${mntpoint}" 18mount -o ro /dev/md${num}.uzip "${mntpoint}" || exit 1 19 20# 21# compare 22#cat "${mntpoint}/etalon.txt" 23diff -u etalon/etalon.txt "${mntpoint}/etalon.txt" 24if [ $? -eq 0 ]; then 25 echo "PASS" 26else 27 echo "FAIL" 28fi 29 30# 31# cleanup 32umount "${mntpoint}" 33rmdir "${mntpoint}" 34mdconfig -d -u ${num} 35kldunload geom_uzip 36