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