diff options
author | ngie <ngie@FreeBSD.org> | 2016-03-14 01:31:40 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-03-14 01:31:40 +0000 |
commit | 081e0ebd819bccd974af605e5910f7e159e4f812 (patch) | |
tree | b57156ea308b22b7d9ddbc7a989b406f61159d59 /tools/regression/geom_raid3/test-10.t | |
parent | 46bdbf008715de052640fcbe8d94db502adc45c9 (diff) | |
download | FreeBSD-src-081e0ebd819bccd974af605e5910f7e159e4f812.zip FreeBSD-src-081e0ebd819bccd974af605e5910f7e159e4f812.tar.gz |
MFC r293821:
Integrate
tools/regression/geom_{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}
in to the FreeBSD test suite as
tests/sys/geom/class/{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}
The tools/regression/geom and tools/regression/geom_part testcases are being
left alone because both test sets are both currently broken.
The majority of this work was done on ^/user/ngie/more-tests2 . The differences
are as follows:
- tests/sys/geom/class/Makefile.inc is not present; it was
inlined into the class's Makefiles for explicitness.
- The testcases officially require root via kyua
- The geom_gate(4) tests don't use the pidfile changes proposed in
https://reviews.freebsd.org/D4836 .
Diffstat (limited to 'tools/regression/geom_raid3/test-10.t')
-rw-r--r-- | tools/regression/geom_raid3/test-10.t | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/regression/geom_raid3/test-10.t b/tools/regression/geom_raid3/test-10.t deleted file mode 100644 index edd827d..0000000 --- a/tools/regression/geom_raid3/test-10.t +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -. `dirname $0`/conf.sh - -echo "1..1" - -ddbs=2048 -nblocks1=1024 -nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $base.XXXXXX` || exit 1 -dst=`mktemp $base.XXXXXX` || exit 1 - -us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 -us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 -us2=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 - -dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 - -graid3 label -r $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1 -devwait - -dd if=${src} of=/dev/raid3/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 - -dd if=/dev/raid3/${name} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 -if [ `md5 -q ${src}` != `md5 -q ${dst}` ]; then - echo "not ok 1" -else - echo "ok 1" -fi - -rm -f ${src} ${dst} |