default.cfg revision 52244c0958bdf281ca42932b449f644b4decfdc2
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# CDDL HEADER START
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# The contents of this file are subject to the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Common Development and Distribution License (the "License").
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# You may not use this file except in compliance with the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# or http://www.opensolaris.org/os/licensing.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# See the License for the specific language governing permissions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# and limitations under the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# When distributing Covered Code, include this CDDL HEADER in each
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# If applicable, add the following below this CDDL HEADER, with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# fields enclosed by brackets "[]" replaced with your own identifying
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# information: Portions Copyright [yyyy] [name of copyright owner]
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# CDDL HEADER END
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Use is subject to license terms.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
52244c0958bdf281ca42932b449f644b4decfdc2John Wren Kennedy# Copyright (c) 2012, 2014 by Delphix. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy. $STF_SUITE/include/commands.cfg
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy. $STF_SUITE/include/libtest.shlib
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Define run length constants
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport RT_LONG="3"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport RT_MEDIUM="2"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport RT_SHORT="1"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Define macro for zone test
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport ZONE_POOL="zonepool"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport ZONE_CTR="zonectr"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Test Suite Specific Commands
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport CHG_USR_EXEC="/opt/zfs-tests/bin/chg_usr_exec"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport DEVNAME2DEVID="/opt/zfs-tests/bin/devname2devid"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport DIR_RD_UPDATE="/opt/zfs-tests/bin/dir_rd_update"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport FILE_CHECK="/opt/zfs-tests/bin/file_check"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport FILE_TRUNC="/opt/zfs-tests/bin/file_trunc"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport FILE_WRITE="/opt/zfs-tests/bin/file_write"
52244c0958bdf281ca42932b449f644b4decfdc2John Wren Kennedyexport GETHOLES="/opt/zfs-tests/bin/getholes"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport LARGEST_FILE="/opt/zfs-tests/bin/largest_file"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport MKBUSY="/opt/zfs-tests/bin/mkbusy"
52244c0958bdf281ca42932b449f644b4decfdc2John Wren Kennedyexport MKHOLES="/opt/zfs-tests/bin/mkholes"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport MKTREE="/opt/zfs-tests/bin/mktree"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport MMAPWRITE="/opt/zfs-tests/bin/mmapwrite"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport RANDFREE_FILE="/opt/zfs-tests/bin/randfree_file"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport READMMAP="/opt/zfs-tests/bin/readmmap"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport RENAME_DIR="/opt/zfs-tests/bin/rename_dir"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport RM_LNKCNT_ZERO_FILE="/opt/zfs-tests/bin/rm_lnkcnt_zero_file"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# ensure we're running in the C locale, since
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# localised messages may result in test failures
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport LC_ALL="C"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport LANG="C"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# pattern to ignore from 'zpool list'.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport NO_POOLS="no pools available"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# pattern to ignore from 'zfs list'.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport NO_DATASETS="no datasets available"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TEST_BASE_DIR="/"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Default to compression ON
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport COMPRESSION_PROP=on
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Default to using the checksum
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport CHECKSUM_PROP=on
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# some common variables used by test scripts :
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# some test pool names
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTPOOL=testpool.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTPOOL1=testpool1.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTPOOL2=testpool2.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTPOOL3=testpool3.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# some test file system names
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTFS=testfs.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTFS1=testfs1.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTFS2=testfs2.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTFS3=testfs3.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# some test directory names
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTDIR=${TEST_BASE_DIR%%/}/testdir$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTDIR0=${TEST_BASE_DIR%%/}/testdir0$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTDIR1=${TEST_BASE_DIR%%/}/testdir1$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTDIR2=${TEST_BASE_DIR%%/}/testdir2$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport ZFSROOT=
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTSNAP=testsnap$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTSNAP1=testsnap1$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTSNAP2=testsnap2$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTCLONE=testclone$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTCLONE1=testclone1$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTCLONE2=testclone2$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTCLCT=testclct$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTCTR=testctr$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTCTR1=testctr1$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTCTR2=testctr2$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTVOL=testvol$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTVOL1=testvol1$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTVOL2=testvol2$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTFILE0=testfile0.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTFILE1=testfile1.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport TESTFILE2=testfile2.$$
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport LONGPNAME="poolname50charslong_012345678901234567890123456789"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport LONGFSNAME="fsysname50charslong_012345678901234567890123456789"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport SNAPFS="$TESTPOOL/$TESTFS@$TESTSNAP"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport SNAPFS1="$TESTPOOL/$TESTVOL@$TESTSNAP"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport VOLSIZE=150m
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport BIGVOLSIZE=1eb
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Default to limit disks to be checked
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport MAX_FINDDISKSNUM=6
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# For iscsi target support
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport ISCSITGTFILE=/tmp/iscsitgt_file
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport ISCSITGT_FMRI=svc:/system/iscsitgt:default
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport AUTO_SNAP=$($SVCS -a | $GREP auto-snapshot | $GREP online | $AWK \
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy '{print $3}')
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# finally, if we're running in a local zone
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# we take some additional actions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyif ! is_global_zone; then
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy reexport_pool
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyfi
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport ZFS_VERSION=5
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyexport ZFS_ALL_VERSIONS="1 2 3 4 5"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyfor i in $ZFS_ALL_VERSIONS; do
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy eval 'export ZFS_VERSION_$i="v${i}-fs"'
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedydone