1 #! /usr/bin/ksh -p
   2 #
   3 # CDDL HEADER START
   4 #
   5 # The contents of this file are subject to the terms of the
   6 # Common Development and Distribution License (the "License").
   7 # You may not use this file except in compliance with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 
  23 #
  24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 
  28 # Test directories from client and server
  29 
  30 # Path for SERVER to test
  31 export NFSSHRDIR=${NFSSHRDIR:-"/TESTDIR_shmnt"}
  32 # Path for localhost to mount
  33 export NFSMNTDIR=${NFSMNTDIR:-"/MNTDIR_shmnt"}
  34 
  35 # Path for localhost to mount
  36 export AUTOIND=${AUTOIND:-"/AUTO_shmnt"}
  37 
  38 # NFS default mount options
  39 export MNTOPT=${MNTOPT:-"rw"}
  40 
  41 # RDMA variable in case user wants it
  42 export TESTRDMA=${TESTRDMA:-"no"}
  43 
  44 # DEBUG variable for the suite
  45 export SHAREMNT_DEBUG=\$SHAREMNT_DEBUG
  46 
  47 # Unique tag of testing user for the suite
  48 export TUSER_UTAG="NFSTestSuiteUser@sharemnt"
  49 
  50 # UTILS variable for generic libs/utils used by test
  51 whence -p stc_genutils > /dev/null 2>&1
  52 if (( $? != 0 )); then
  53         echo "config.vars: stc_genutils command not found!"
  54         exit 1
  55 fi
  56 
  57 export STC_GENUTILS=$(stc_genutils path)
  58 
  59 # NFS services
  60 export SRV_FMRI="svc:/network/nfs/server"
  61 export LCK_FMRI="svc:/network/nfs/nlockmgr"
  62 export QUOTA_FMRI="svc:/network/nfs/rquota"
  63 export STAT_FMRI="svc:/network/nfs/status"
  64 export CBD_FMRI="svc:/network/nfs/cbd"
  65 export MAP_FMRI="svc:/network/nfs/mapid"
  66 export AUTO_FMRI="svc:/system/filesystem/autofs:default"
  67 export SERVICES="$SRV_FMRI $LCK_FMRI $QUOTA_FMRI $STAT_FMRI $CBD_FMRI $MAP_FMRI"
  68 
  69 STF_VARIABLES=" \
  70                 SERVER MNTDIR AUTOIND MNTOPT \
  71                 SHAREMNT_DEBUG CLIENT CLIENT_S SERVER_S \
  72                 SERVICES SRV_FMRI LCK_FMRI QUOTA_FMRI STAT_FMRI \
  73                 CBD_FMRI MAP_FMRI AUTO_FMRI \
  74                 NFSSHRDIR NFSMNTDIR ZONE_PATH NFSMAPID_DOMAIN \
  75                 TESTRDMA TUSER_UTAG STC_GENUTILS"