1_test.sh revision 293443
1#!/bin/sh 2# $FreeBSD: head/tools/regression/geom_uzip/test-1.t 293443 2016-01-08 21:38:26Z ngie $ 3 4testsdir=$(dirname $0) 5. $testsdir/conf.sh 6 7echo "1..1" 8 9UUE=$testsdir/test-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