option-n.t revision 256281
1#!/bin/sh
2# $FreeBSD: stable/10/tools/regression/zfs/zpool/create/option-n.t 185029 2008-11-17 20:49:29Z pjd $
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