xref: /freebsd/tools/regression/zfs/zpool/create/option-n.t (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1#!/bin/sh
2# $FreeBSD$
3
4dir=`dirname $0`
5. ${dir}/../../misc.sh
6
7echo "1..5"
8
9disks_create 1
10names_create 1
11
12expect_fl is_mountpoint /${name0}
13exp=`(
14  echo "would create '${name0}' with the following layout:"
15  echo "	${name0}"
16  echo "	  ${disk0}"
17)`
18expect "${exp}" ${ZPOOL} create -n ${name0} ${disk0}
19expect_fl is_mountpoint /${name0}
20expect_fl ${ZPOOL} status -x ${name0}
21expect_fl ${ZPOOL} destroy ${name0}
22
23disks_destroy
24