1133641Sfjoe#!/bin/sh 2133641Sfjoe# $FreeBSD: releng/11.0/tests/sys/geom/class/uzip/1_test.sh 293821 2016-01-13 09:14:27Z ngie $ 3133641Sfjoe 4293443Sngietestsdir=$(dirname $0) 5293443Sngie. $testsdir/conf.sh 6133641Sfjoe 7293443Sngieecho "1..1" 8293443Sngie 9293821SngieUUE=$testsdir/1.img.uzip.uue 10293443Sngieuudecode $UUE 11293443Sngieus0=$(attach_md -f $(basename $UUE .uue)) || exit 1 12133641Sfjoesleep 1 13133641Sfjoe 14293443Sngiemount -o ro /dev/${us0}.uzip "${mntpoint}" || exit 1 15133641Sfjoe 16133641Sfjoe#cat "${mntpoint}/etalon.txt" 17293443Sngiediff -I '\$FreeBSD.*\$' -u $testsdir/etalon/etalon.txt "${mntpoint}/etalon.txt" 18133641Sfjoeif [ $? -eq 0 ]; then 19293443Sngie echo "ok 1" 20133641Sfjoeelse 21293443Sngie echo "not ok 1" 22133641Sfjoefi 23