RunTest.sh revision 113291
1#!/bin/sh 2# $FreeBSD: head/tools/regression/geom/RunTest.sh 113291 2003-04-09 12:40:12Z phk $ 3 4MD=34 5TMP=/tmp/$$ 6 7set -e 8 9r=0 10 11(cd MdLoad && make) > /dev/null 2>&1 12 13for f in Data/disk.*.xml 14do 15 b=`basename $f` 16 mdconfig -d -u $MD > /dev/null 2>&1 || true 17 if [ -c /dev/md$MD ] ; then 18 echo "/dev/md$MD is busy" 1>&2 19 exit 1 20 fi 21 MdLoad/MdLoad md${MD} $f 22 if [ -f Ref/$b ] ; then 23 if diskinfo /dev/md${MD}* | 24 diff -I '$FreeBSD' -u - Ref/$b > $TMP; then 25 echo "PASSED: $b" 26 else 27 echo "FAILED: $b" 28 sed 's/^/ /' $TMP 29 r=2; 30 fi 31 else 32 diskinfo /dev/md${MD}* > Ref/`basename $f` 33 fi 34done 35 36mdconfig -d -u $MD > /dev/null 2>&1 || true 37rm -f $TMP 38exit $r 39