1_test.sh revision 293443
1133641Sfjoe#!/bin/sh 2133641Sfjoe# $FreeBSD: head/tools/regression/geom_uzip/test-1.t 293443 2016-01-08 21:38:26Z ngie $ 3133641Sfjoe 4293443Sngietestsdir=$(dirname $0) 5293443Sngie. $testsdir/conf.sh 6133641Sfjoe 7293443Sngieecho "1..1" 8293443Sngie 9293821SngieUUE=$testsdir/test-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