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 2009 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 # ident "@(#)config.vars 1.10 09/05/19 SMI" 27 # 28 # This file contains test suite configuration variables. Variables 29 # associated with a particular test group should be placed in the 30 # config.vars files in the directory for that group of tests. This 31 # file contains variables that are common to many tests in the suite 32 # 33 34 . ${STF_SUITE}/include/libtest.kshlib 35 36 # Define basic variable 37 export DISKS=${DISKS:-""} 38 39 # Define a list of pools to preserve during the test run 40 # (Required by ON-PIT) 41 export KEEP=${KEEP:-""} 42 43 # Define variables for remote testing support 44 export RHOSTS=${RHOSTS:-""} # variable to specify the remote hosts name 45 export RDISKS=${RDISKS:-""} # variable to specify the disks for each remote host 46 PKGNAME=$(get_package_name) 47 export RTEST_ROOT=${RTEST_ROOT:-"/var/tmp/$PKGNAME/tmp"} # Test scripts residing 48 # directory in remote 49 # host. 50 51 # 52 # Run the test suite in a local zone. 53 # There are two possible values 'new' or 'existing'. 54 # 55 zone= 56 57 host_name=`hostname` 58 59 # zone_name refer to the name of LZ 60 # zone_root refer to the root path of LZ 61 # zone_ip refer to the ip address of LZ 62 63 if is_global_zone ; then 64 zone_name=zfstestzone 65 zone_root=/export/home 66 else 67 zone_name=`zonename` 68 zone_root=/ 69 fi 70 71 zone_ip= 72 73 # Define variables for iscsi 74 iscsi=${iscsi:-""} 75 76 export ROOTPOOL=${ROOTPOOL:-""} 77 export ROOTFS=${ROOTFS:-""} 78 79 # Define varaibles for encryption 80 export KEYSOURCE_DATASET=${KEYSOURCE_DATASET:-""} 81 export ENCRYPTION=${ENCRYPTION:-"on"} 82 export RAW_KEY_FILE=$STF_SUITE/etc/raw_key_file 83 export HEX_KEY_FILE=$STF_SUITE/etc/hex_key_file 84 export PASSPHRASE_FILE=$STF_SUITE/etc/passphrase_file 85 86 # Define variables for wrapper 87 export WRAPPER=${WRAPPER:-""} 88 89 # Define variables for pool test version 90 export ZPOOL_TEST_VERSION=${ZPOOL_TEST_VERSION:-"0"} 91 92 # Define variables for file system test version 93 export ZFS_TEST_VERSION=${ZFS_TEST_VERSION:-"0"} 94 95 # Export variables so they are visible in tests. 96 export STF_VARIABLES="DISKS KEEP RUNTIME zone zone_name zone_root \ 97 zone_ip RHOSTS RDISKS RTEST_ROOT iscsi ROOTPOOL ROOTFS \ 98 KEYSOURCE_DATASET ENCRYPTION RAW_KEY_FILE \ 99 HEX_KEY_FILE PASSPHRASE_FILE WRAPPER ZPOOL_TEST_VERSION ZFS_TEST_VERSION" 100