]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tests/sys/geom/class/uzip/1_test.sh
MFC r294973:
[FreeBSD/stable/10.git] / tests / sys / geom / class / uzip / 1_test.sh
1 #!/bin/sh
2 # $FreeBSD$
3
4 testsdir=$(dirname $0)
5 . $testsdir/conf.sh
6
7 echo "1..1"
8
9 UUE=$testsdir/1.img.uzip.uue
10 uudecode $UUE
11 us0=$(attach_md -f $(basename $UUE .uue)) || exit 1
12 sleep 1
13
14 mount -o ro /dev/${us0}.uzip "${mntpoint}" || exit 1
15
16 #cat "${mntpoint}/etalon.txt"
17 diff -I '\$FreeBSD.*\$' -u $testsdir/etalon/etalon.txt "${mntpoint}/etalon.txt"
18 if [ $? -eq 0 ]; then
19         echo "ok 1"
20 else
21         echo "not ok 1"
22 fi