summaryrefslogtreecommitdiffstats
path: root/tools/regression/geom_concat/test-2.t
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/geom_concat/test-2.t')
-rw-r--r--tools/regression/geom_concat/test-2.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/regression/geom_concat/test-2.t b/tools/regression/geom_concat/test-2.t
index c3accff..445d9bc 100644
--- a/tools/regression/geom_concat/test-2.t
+++ b/tools/regression/geom_concat/test-2.t
@@ -1,8 +1,10 @@
#!/bin/sh
# $FreeBSD$
-name="test"
-base=`basename $0`
+. `dirname $0`/conf.sh
+
+echo '1..1'
+
us=45
tsize=6
src=`mktemp /tmp/$base.XXXXXX` || exit 1
@@ -15,12 +17,11 @@ mdconfig -a -t malloc -s 2M -u `expr $us + 1` || exit 1
mdconfig -a -t malloc -s 3M -u `expr $us + 2` || exit 1
gconcat create $name /dev/md${us} /dev/md`expr $us + 1` /dev/md`expr $us + 2` || exit 1
+devwait
dd if=${src} of=/dev/concat/${name} bs=1m count=$tsize >/dev/null 2>&1
dd if=/dev/concat/${name} of=${dst} bs=1m count=$tsize >/dev/null 2>&1
-echo '1..1'
-
if [ `md5 -q ${src}` != `md5 -q ${dst}` ]; then
echo "not ok - md5 checksum comparison"
else
OpenPOWER on IntegriCloud