diff options
Diffstat (limited to 'tests/sys/geom/class/mirror/conf.sh')
-rw-r--r-- | tests/sys/geom/class/mirror/conf.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/sys/geom/class/mirror/conf.sh b/tests/sys/geom/class/mirror/conf.sh new file mode 100644 index 0000000..d8595f1 --- /dev/null +++ b/tests/sys/geom/class/mirror/conf.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# $FreeBSD$ + +name="$(mktemp -u mirror.XXXXXX)" +class="mirror" +base=`basename $0` + +gmirror_test_cleanup() +{ + [ -c /dev/$class/$name ] && gmirror destroy $name + geom_test_cleanup +} +trap gmirror_test_cleanup ABRT EXIT INT TERM + +. `dirname $0`/../geom_subr.sh |