diff options
author | phk <phk@FreeBSD.org> | 2003-04-09 12:40:12 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-09 12:40:12 +0000 |
commit | e66eeacdc825e000d353f98b7156681a060f70ff (patch) | |
tree | 292254e553cb62bb2d2c77105721c1115c86f8bc /tools/regression | |
parent | 052492c05d78d533146468cdaec10b23e502aba8 (diff) | |
download | FreeBSD-src-e66eeacdc825e000d353f98b7156681a060f70ff.zip FreeBSD-src-e66eeacdc825e000d353f98b7156681a060f70ff.tar.gz |
Add script to run kernel based regression test and the reference vectors
for the current XML images.
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/geom/Ref/disk.alpha.da0.xml | 7 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.alpha2.da0.xml | 5 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.apple.xml | 2 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.beast.da0.xml | 5 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.critter.ad0.xml | 11 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.empty.flp.xml | 2 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.far.ad0.xml | 4 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.flat.da1.xml | 12 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.kern.flp.xml | 5 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.msdos.ext.xml | 27 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.msdos.flp.xml | 2 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.pc98.wdc0.xml | 2 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.sun.da0.xml | 6 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.sun.da1.xml | 9 | ||||
-rw-r--r-- | tools/regression/geom/Ref/disk.typo.ad0.xml | 14 | ||||
-rw-r--r-- | tools/regression/geom/RunTest.sh | 38 |
16 files changed, 151 insertions, 0 deletions
diff --git a/tools/regression/geom/Ref/disk.alpha.da0.xml b/tools/regression/geom/Ref/disk.alpha.da0.xml new file mode 100644 index 0000000..a300f0d --- /dev/null +++ b/tools/regression/geom/Ref/disk.alpha.da0.xml @@ -0,0 +1,7 @@ +$FreeBSD$ +/dev/md34 512 5120 10 +/dev/md34a 512 251658240 491520 +/dev/md34b 512 1086291968 2121664 +/dev/md34c 512 18309995520 35761710 +/dev/md34e 512 20971520 40960 +/dev/md34f 512 16951073792 33107566 diff --git a/tools/regression/geom/Ref/disk.alpha2.da0.xml b/tools/regression/geom/Ref/disk.alpha2.da0.xml new file mode 100644 index 0000000..7ef7573 --- /dev/null +++ b/tools/regression/geom/Ref/disk.alpha2.da0.xml @@ -0,0 +1,5 @@ +$FreeBSD$ +/dev/md34 512 5120 10 +/dev/md34a 512 24675840 48195 +/dev/md34b 512 4178442240 8161020 +/dev/md34c 512 74027520 144585 diff --git a/tools/regression/geom/Ref/disk.apple.xml b/tools/regression/geom/Ref/disk.apple.xml new file mode 100644 index 0000000..5a1fe66 --- /dev/null +++ b/tools/regression/geom/Ref/disk.apple.xml @@ -0,0 +1,2 @@ +$FreeBSD$ +/dev/md34 512 366530560 715880 diff --git a/tools/regression/geom/Ref/disk.beast.da0.xml b/tools/regression/geom/Ref/disk.beast.da0.xml new file mode 100644 index 0000000..b6aa32e --- /dev/null +++ b/tools/regression/geom/Ref/disk.beast.da0.xml @@ -0,0 +1,5 @@ +$FreeBSD$ +/dev/md34 512 5120 10 +/dev/md34a 512 4064280576 7938048 +/dev/md34b 512 270925824 529152 +/dev/md34c 512 4335206400 8467200 diff --git a/tools/regression/geom/Ref/disk.critter.ad0.xml b/tools/regression/geom/Ref/disk.critter.ad0.xml new file mode 100644 index 0000000..0620bfe --- /dev/null +++ b/tools/regression/geom/Ref/disk.critter.ad0.xml @@ -0,0 +1,11 @@ +$FreeBSD$ +/dev/md34 512 2671841280 5218440 +/dev/md34s1 512 20003848704 39070017 +/dev/md34s1a 512 1073741824 2097152 +/dev/md34s1b 512 1073741824 2097152 +/dev/md34s1c 512 20003848704 39070017 +/dev/md34s1d 512 4447175168 8685889 +/dev/md34s1e 512 524288000 1024000 +/dev/md34s1f 512 4294967296 8388608 +/dev/md34s1g 512 3221225472 6291456 +/dev/md34s1h 512 5368709120 10485760 diff --git a/tools/regression/geom/Ref/disk.empty.flp.xml b/tools/regression/geom/Ref/disk.empty.flp.xml new file mode 100644 index 0000000..659b416 --- /dev/null +++ b/tools/regression/geom/Ref/disk.empty.flp.xml @@ -0,0 +1,2 @@ +$FreeBSD$ +/dev/md34 512 1474560 2880 80 2 18 diff --git a/tools/regression/geom/Ref/disk.far.ad0.xml b/tools/regression/geom/Ref/disk.far.ad0.xml new file mode 100644 index 0000000..629816a --- /dev/null +++ b/tools/regression/geom/Ref/disk.far.ad0.xml @@ -0,0 +1,4 @@ +$FreeBSD$ +/dev/md34 512 5632 11 +/dev/md34s1 512 296821760 579730 +/dev/md34s2 512 4564740096 8915508 diff --git a/tools/regression/geom/Ref/disk.flat.da1.xml b/tools/regression/geom/Ref/disk.flat.da1.xml new file mode 100644 index 0000000..89e2df4 --- /dev/null +++ b/tools/regression/geom/Ref/disk.flat.da1.xml @@ -0,0 +1,12 @@ +$FreeBSD$ +/dev/md34 512 37888 74 +/dev/md34a 512 37748736 73728 +/dev/md34b 512 268435456 524288 +/dev/md34c 512 8422686720 16450560 +/dev/md34h 512 8115978240 15851520 +/dev/md34s1 512 18367017984 35873082 +/dev/md34s1b 512 419430400 819200 +/dev/md34s1c 512 18367017984 35873082 +/dev/md34s1e 512 419430400 819200 +/dev/md34s1f 512 1073741824 2097152 +/dev/md34s1g 512 16454415360 32137530 diff --git a/tools/regression/geom/Ref/disk.kern.flp.xml b/tools/regression/geom/Ref/disk.kern.flp.xml new file mode 100644 index 0000000..6ff67a0 --- /dev/null +++ b/tools/regression/geom/Ref/disk.kern.flp.xml @@ -0,0 +1,5 @@ +$FreeBSD$ +/dev/md34 512 5632 11 +/dev/md34a 512 1474560 2880 +/dev/md34b 512 1474560 2880 +/dev/md34c 512 1474560 2880 diff --git a/tools/regression/geom/Ref/disk.msdos.ext.xml b/tools/regression/geom/Ref/disk.msdos.ext.xml new file mode 100644 index 0000000..dc2aced --- /dev/null +++ b/tools/regression/geom/Ref/disk.msdos.ext.xml @@ -0,0 +1,27 @@ +$FreeBSD$ +/dev/md34 512 2327759360 4546405 +/dev/md34s1 512 2146765824 4192902 +/dev/md34s10 512 8193024 16002 +/dev/md34s11 512 8193024 16002 +/dev/md34s12 512 8193024 16002 +/dev/md34s13 512 8193024 16002 +/dev/md34s14 512 8193024 16002 +/dev/md34s15 512 8193024 16002 +/dev/md34s16 512 8193024 16002 +/dev/md34s17 512 8193024 16002 +/dev/md34s18 512 8193024 16002 +/dev/md34s19 512 8193024 16002 +/dev/md34s2 512 427714560 835380 +/dev/md34s20 512 8193024 16002 +/dev/md34s21 512 8193024 16002 +/dev/md34s22 512 8193024 16002 +/dev/md34s23 512 8193024 16002 +/dev/md34s24 512 8193024 16002 +/dev/md34s25 512 8193024 16002 +/dev/md34s26 512 8193024 16002 +/dev/md34s27 512 8193024 16002 +/dev/md34s5 512 8193024 16002 +/dev/md34s6 512 8193024 16002 +/dev/md34s7 512 8193024 16002 +/dev/md34s8 512 8193024 16002 +/dev/md34s9 512 8193024 16002 diff --git a/tools/regression/geom/Ref/disk.msdos.flp.xml b/tools/regression/geom/Ref/disk.msdos.flp.xml new file mode 100644 index 0000000..c176c58 --- /dev/null +++ b/tools/regression/geom/Ref/disk.msdos.flp.xml @@ -0,0 +1,2 @@ +$FreeBSD$ +/dev/md34 512 5632 11 diff --git a/tools/regression/geom/Ref/disk.pc98.wdc0.xml b/tools/regression/geom/Ref/disk.pc98.wdc0.xml new file mode 100644 index 0000000..b7c70ae --- /dev/null +++ b/tools/regression/geom/Ref/disk.pc98.wdc0.xml @@ -0,0 +1,2 @@ +$FreeBSD$ +/dev/md34 512 75264 147 1 8 17 diff --git a/tools/regression/geom/Ref/disk.sun.da0.xml b/tools/regression/geom/Ref/disk.sun.da0.xml new file mode 100644 index 0000000..15b97c8 --- /dev/null +++ b/tools/regression/geom/Ref/disk.sun.da0.xml @@ -0,0 +1,6 @@ +$FreeBSD$ +/dev/md34 512 5120 10 +/dev/md34a 512 1529708544 2987712 +/dev/md34b 512 539320320 1053360 +/dev/md34c 512 36698296320 71676360 +/dev/md34h 512 34629267456 67635288 diff --git a/tools/regression/geom/Ref/disk.sun.da1.xml b/tools/regression/geom/Ref/disk.sun.da1.xml new file mode 100644 index 0000000..004771b --- /dev/null +++ b/tools/regression/geom/Ref/disk.sun.da1.xml @@ -0,0 +1,9 @@ +$FreeBSD$ +/dev/md34 512 5120 10 +/dev/md34a 512 262967296 513608 +/dev/md34b 512 1075994624 2101552 +/dev/md34c 512 18108555264 35368272 +/dev/md34d 512 11124240384 21727032 +/dev/md34f 512 2149576704 4198392 +/dev/md34g 512 2149576704 4198392 +/dev/md34h 512 1343787008 2624584 diff --git a/tools/regression/geom/Ref/disk.typo.ad0.xml b/tools/regression/geom/Ref/disk.typo.ad0.xml new file mode 100644 index 0000000..6d537dd --- /dev/null +++ b/tools/regression/geom/Ref/disk.typo.ad0.xml @@ -0,0 +1,14 @@ +$FreeBSD$ +/dev/md34 512 8585262592 16768091 +/dev/md34s1 512 3220406784 6289857 +/dev/md34s1a 512 104857600 204800 +/dev/md34s1b 512 524288000 1024000 +/dev/md34s1c 512 3220406784 6289857 +/dev/md34s1e 512 524288000 1024000 +/dev/md34s1f 512 2066973184 4037057 +/dev/md34s2 512 5364817920 10478160 +/dev/md34s2c 512 5364817920 10478160 +/dev/md34s3 512 8585256960 16768080 +/dev/md34s3a 512 2097152000 4096000 +/dev/md34s3c 512 8585256960 16768080 +/dev/md34s3d 512 6488104960 12672080 diff --git a/tools/regression/geom/RunTest.sh b/tools/regression/geom/RunTest.sh new file mode 100644 index 0000000..9990b0d --- /dev/null +++ b/tools/regression/geom/RunTest.sh @@ -0,0 +1,38 @@ +#!/bin/sh +# $FreeBSD$ + +MD=34 +TMP=/tmp/$$ + +set -e + +r=0 + +(cd MdLoad && make) > /dev/null 2>&1 + +for f in Data/disk.*.xml +do + b=`basename $f` + mdconfig -d -u $MD > /dev/null 2>&1 || true + if [ -c /dev/md$MD ] ; then + echo "/dev/md$MD is busy" 1>&2 + exit 1 + fi + MdLoad/MdLoad md${MD} $f + if [ -f Ref/$b ] ; then + if diskinfo /dev/md${MD}* | + diff -I '$FreeBSD' -u - Ref/$b > $TMP; then + echo "PASSED: $b" + else + echo "FAILED: $b" + sed 's/^/ /' $TMP + r=2; + fi + else + diskinfo /dev/md${MD}* > Ref/`basename $f` + fi +done + +mdconfig -d -u $MD > /dev/null 2>&1 || true +rm -f $TMP +exit $r |