RunTest.sh revision 113291
1113291Sphk#!/bin/sh 2113291Sphk# $FreeBSD: head/tools/regression/geom/RunTest.sh 113291 2003-04-09 12:40:12Z phk $ 3113291Sphk 4113291SphkMD=34 5113291SphkTMP=/tmp/$$ 6113291Sphk 7113291Sphkset -e 8113291Sphk 9113291Sphkr=0 10113291Sphk 11113291Sphk(cd MdLoad && make) > /dev/null 2>&1 12113291Sphk 13113291Sphkfor f in Data/disk.*.xml 14113291Sphkdo 15113291Sphk b=`basename $f` 16113291Sphk mdconfig -d -u $MD > /dev/null 2>&1 || true 17113291Sphk if [ -c /dev/md$MD ] ; then 18113291Sphk echo "/dev/md$MD is busy" 1>&2 19113291Sphk exit 1 20113291Sphk fi 21113291Sphk MdLoad/MdLoad md${MD} $f 22113291Sphk if [ -f Ref/$b ] ; then 23113291Sphk if diskinfo /dev/md${MD}* | 24113291Sphk diff -I '$FreeBSD' -u - Ref/$b > $TMP; then 25113291Sphk echo "PASSED: $b" 26113291Sphk else 27113291Sphk echo "FAILED: $b" 28113291Sphk sed 's/^/ /' $TMP 29113291Sphk r=2; 30113291Sphk fi 31113291Sphk else 32113291Sphk diskinfo /dev/md${MD}* > Ref/`basename $f` 33113291Sphk fi 34113291Sphkdone 35113291Sphk 36113291Sphkmdconfig -d -u $MD > /dev/null 2>&1 || true 37113291Sphkrm -f $TMP 38113291Sphkexit $r 39