aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/zfs/zpool/create/option-n.t
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/zfs/zpool/create/option-n.t')
-rw-r--r--tools/regression/zfs/zpool/create/option-n.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/regression/zfs/zpool/create/option-n.t b/tools/regression/zfs/zpool/create/option-n.t
new file mode 100644
index 000000000000..0cb3e7fa5a5f
--- /dev/null
+++ b/tools/regression/zfs/zpool/create/option-n.t
@@ -0,0 +1,23 @@
+#!/bin/sh
+# $FreeBSD$
+
+dir=`dirname $0`
+. ${dir}/../../misc.sh
+
+echo "1..5"
+
+disks_create 1
+names_create 1
+
+expect_fl is_mountpoint /${name0}
+exp=`(
+ echo "would create '${name0}' with the following layout:"
+ echo " ${name0}"
+ echo " ${disk0}"
+)`
+expect "${exp}" ${ZPOOL} create -n ${name0} ${disk0}
+expect_fl is_mountpoint /${name0}
+expect_fl ${ZPOOL} status -x ${name0}
+expect_fl ${ZPOOL} destroy ${name0}
+
+disks_destroy