RunTest.sh revision 113433
1#!/bin/sh 2# $FreeBSD: head/tools/regression/geom/RunTest.sh 113433 2003-04-13 09:06:39Z 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 sleep 1 19 fi 20 if [ -c /dev/md$MD ] ; then 21 sleep 1 22 fi 23 if [ -c /dev/md$MD ] ; then 24 echo "/dev/md$MD is busy" 1>&2 25 exit 1 26 fi 27 MdLoad/MdLoad md${MD} $f 28 if [ -f Ref/$b ] ; then 29 if diskinfo /dev/md${MD}* | 30 diff -I '$FreeBSD' -u Ref/$b - > $TMP; then 31 echo "PASSED: $b" 32 else 33 echo "FAILED: $b" 34 sed 's/^/ /' $TMP 35 r=2; 36 fi 37 else 38 diskinfo /dev/md${MD}* > Ref/`basename $f` 39 fi 40done 41 42mdconfig -d -u $MD > /dev/null 2>&1 || true 43rm -f $TMP 44exit $r 45