summaryrefslogtreecommitdiffstats
path: root/tests/sys/geom/class/uzip/1_test.sh
blob: 222b6c9afdec4e9057c5aeb35b10a1a12dafd14d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# $FreeBSD$

testsdir=$(dirname $0)
. $testsdir/conf.sh

echo "1..1"

UUE=$testsdir/1.img.uzip.uue
uudecode $UUE
us0=$(attach_md -f $(basename $UUE .uue)) || exit 1
sleep 1

mount -o ro /dev/${us0}.uzip "${mntpoint}" || exit 1

#cat "${mntpoint}/etalon.txt"
diff -I '\$FreeBSD.*\$' -u $testsdir/etalon/etalon.txt "${mntpoint}/etalon.txt"
if [ $? -eq 0 ]; then
	echo "ok 1"
else
	echo "not ok 1"
fi
OpenPOWER on IntegriCloud