xref: /illumos-gate/usr/src/test/zfs-tests/include/default.cfg (revision 440a8a36792bdf9ef51639066aab0b7771ffcab8)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#
28# Copyright (c) 2012, 2016 by Delphix. All rights reserved.
29# Copyright 2019 Joyent, Inc.
30#
31
32. $STF_SUITE/include/libtest.shlib
33
34# Define run length constants
35export RT_LONG="3"
36export RT_MEDIUM="2"
37export RT_SHORT="1"
38
39# Define macro for zone test
40export ZONE_POOL="zonepool"
41export ZONE_CTR="zonectr"
42
43# ensure we're running in the C locale, since
44# localised messages may result in test failures
45export LC_ALL="C"
46export LANG="C"
47
48#
49# pattern to ignore from 'zpool list'.
50#
51export NO_POOLS="no pools available"
52
53# pattern to ignore from 'zfs list'.
54export NO_DATASETS="no datasets available"
55
56export TEST_BASE_DIR="/var/tmp"
57
58# Default to compression ON
59export COMPRESSION_PROP=on
60
61# Default to using the checksum
62export CHECKSUM_PROP=on
63
64# some common variables used by test scripts :
65export FIO_SCRIPTS=$STF_SUITE/tests/perf/fio
66export PERF_SCRIPTS=$STF_SUITE/tests/perf/scripts
67
68# some test pool names
69export TESTPOOL=testpool
70export TESTPOOL1=testpool1
71export TESTPOOL2=testpool2
72export TESTPOOL3=testpool3
73export PERFPOOL=perfpool
74
75# some test file system names
76export TESTFS=testfs
77export TESTFS1=testfs1
78export TESTFS2=testfs2
79export TESTFS3=testfs3
80
81# some test directory names
82export TESTDIR=${TEST_BASE_DIR%%/}/testdir
83export TESTDIR0=${TEST_BASE_DIR%%/}/testdir0
84export TESTDIR1=${TEST_BASE_DIR%%/}/testdir1
85export TESTDIR2=${TEST_BASE_DIR%%/}/testdir2
86
87# some test sub file system names
88export TESTSUBFS=subfs
89export TESTSUBFS1=subfs1
90export TESTSUBFS2=subfs2
91
92export ZFSROOT=
93
94export TESTSNAP=testsnap
95export TESTSNAP1=testsnap1
96export TESTSNAP2=testsnap2
97export TESTCLONE=testclone
98export TESTCLONE1=testclone1
99export TESTCLONE2=testclone2
100export TESTCLCT=testclct
101export TESTCTR=testctr
102export TESTCTR1=testctr1
103export TESTCTR2=testctr2
104export TESTVOL=testvol
105export TESTVOL1=testvol1
106export TESTVOL2=testvol2
107export TESTFILE0=testfile0
108export TESTFILE1=testfile1
109export TESTFILE2=testfile2
110export TESTBKMARK=testbkmark
111
112export LONGPNAME="poolname50charslong_012345678901234567890123456789"
113export LONGFSNAME="fsysname50charslong_012345678901234567890123456789"
114export SNAPFS="$TESTPOOL/$TESTFS@$TESTSNAP"
115export SNAPFS1="$TESTPOOL/$TESTVOL@$TESTSNAP"
116
117export VOLSIZE=150m
118export BIGVOLSIZE=1eb
119
120# Default to limit disks to be checked
121export MAX_FINDDISKSNUM=6
122
123# Default minimum size for file based vdevs in the test suite
124export MINVDEVSIZE=$((256 * 1024 * 1024))
125
126# Minimum vdev size possible as defined in the OS
127export SPA_MINDEVSIZE=$((64 * 1024 * 1024))
128
129export AUTO_SNAP=$(svcs -a | grep auto-snapshot | grep online | awk \
130    '{print $3}')
131
132# finally, if we're running in a local zone
133# we take some additional actions
134if ! is_global_zone; then
135	reexport_pool
136fi
137
138export ZFS_VERSION=5
139export ZFS_ALL_VERSIONS="1 2 3 4 5"
140
141for i in $ZFS_ALL_VERSIONS; do
142	eval 'export ZFS_VERSION_$i="v${i}-fs"'
143done
144
145export ZVOL_DEVDIR="/dev/zvol/dsk"
146export ZVOL_RDEVDIR="/dev/zvol/rdsk"
147export DEV_DSKDIR="/dev/dsk"
148export DEV_RDSKDIR="/dev/rdsk"
149
150export NEWFS_DEFAULT_FS="ufs"
151