turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / geom / RunTest.t
blob96a353084bc906850bb4795dbe394871df2de470
1 #!/bin/sh
2 # $FreeBSD$
4 MD=34
5 TMP=/tmp/$$
7 set -e
9 # Start from the right directory so we can find all our data files.
10 cd `dirname $0`
12 (cd MdLoad && make) > /dev/null 2>&1
14 # Print the test header
15 echo -n '1..'
16 echo `ls -1 Data/disk.*.xml | wc -l`
18 for f in Data/disk.*.xml
20 b=`basename $f`
21 mdconfig -d -u $MD > /dev/null 2>&1 || true
22 if [ -c /dev/md$MD ] ; then
23 sleep 1
25 if [ -c /dev/md$MD ] ; then
26 sleep 1
28 if [ -c /dev/md$MD ] ; then
29 echo "Bail out!"
30 echo "/dev/md$MD is busy"
31 exit 1
33 MdLoad/MdLoad md${MD} $f
34 if [ -f Ref/$b ] ; then
35 if diskinfo /dev/md${MD}* |
36 diff -I '$FreeBSD' -u Ref/$b - > $TMP; then
37 echo "ok - $b"
38 else
39 echo "not ok - $b"
40 sed 's/^/# /' $TMP
42 else
43 diskinfo /dev/md${MD}* > Ref/`basename $f`
45 done
47 mdconfig -d -u $MD > /dev/null 2>&1 || true
48 rm -f $TMP
50 exit 0