aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/geom/class/mirror/conf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sys/geom/class/mirror/conf.sh')
-rw-r--r--tests/sys/geom/class/mirror/conf.sh15
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 000000000000..d8595f199bf3
--- /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