summaryrefslogtreecommitdiffstats
path: root/tools/regression/geom_nop/test-1.t
blob: 4d6b65d5ff8fe94fb164233a9f6f10571ce63b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# $FreeBSD$

. `dirname $0`/conf.sh

echo "1..1"

us=$(attach_md -t malloc -s 1M) || exit 1

gnop create /dev/${us} || exit 1

# Size of created device should be 1MB.

size=`diskinfo /dev/${us}.nop | awk '{print $3}'`

if [ $size -eq 1048576 ]; then
	echo "ok 1"
else
	echo "not ok 1"
fi
OpenPOWER on IntegriCloud