1_test.sh revision 150734
168651Skris#!/bin/sh 268651Skris# 368651Skris# $FreeBSD: head/tools/regression/geom_uzip/test-1.sh 150734 2005-09-29 22:41:20Z fjoe $ 468651Skris# 568651Skris 668651Skrismntpoint="/mnt/test-1" 768651Skris 868651Skris# 968651Skris# prepare 1068651Skriskldload geom_uzip 1168651Skrisuudecode test-1.img.uzip.uue 1268651Skrisnum=`mdconfig -an -f test-1.img.uzip` || exit 1 1368651Skrissleep 1 1468651Skris 1568651Skris# 1668651Skris# mount 1768651Skrismkdir -p "${mntpoint}" 1868651Skrismount -o ro /dev/md${num}.uzip "${mntpoint}" || exit 1 1968651Skris 2076866Skris# 2176866Skris# compare 2268651Skris#cat "${mntpoint}/etalon.txt" 2368651Skrisdiff -u etalon/etalon.txt "${mntpoint}/etalon.txt" 2468651Skrisif [ $? -eq 0 ]; then 2568651Skris echo "PASS" 2668651Skriselse 2768651Skris echo "FAIL" 2868651Skrisfi 2968651Skris 3068651Skris# 3168651Skris# cleanup 3268651Skrisumount "${mntpoint}" 3368651Skrisrmdir "${mntpoint}" 3476866Skrismdconfig -d -u ${num} 3576866Skrissleep 1 3676866Skriskldunload geom_uzip 3768651Skris