summaryrefslogtreecommitdiffstats
path: root/tools/regression/geom_concat/test-2.t
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-12-07 01:24:25 +0000
committerpjd <pjd@FreeBSD.org>2005-12-07 01:24:25 +0000
commit65dce3ed0af4beab5d0d197367f977ea78ae1ef6 (patch)
tree7c7c31b6a8a8139932f93f3ebb8fc3849a7662c7 /tools/regression/geom_concat/test-2.t
parent49984acede6ec3b2147fc30457642e9bcd24d300 (diff)
downloadFreeBSD-src-65dce3ed0af4beab5d0d197367f977ea78ae1ef6.zip
FreeBSD-src-65dce3ed0af4beab5d0d197367f977ea78ae1ef6.tar.gz
Finish conversion of gconcat(8) regression tests to the new framework.
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