1 #! /usr/bin/ksh 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 2008 Sun Microsystems, Inc. All rights reserved. 25 # Use is subject to license terms. 26 # 27 28 # make sure we get the new vars from configure if available 29 [[ -f $STF_CONFIG/stf_config.suite ]] && . $STF_CONFIG/stf_config.suite 30 31 # The share options array for test combination generation 32 # Note: There should be NO conflict options and 33 # sec= option must go before rw,ro 34 # 35 SHROPTS_LIST="rw sec=none public" 36 if [[ -n $SHROPTS ]]; then 37 ret=0 38 for opt in $SHROPTS; do 39 echo $SHROPTS_LIST | grep -w $opt > /dev/null 2>&1 40 if (( $? != 0 )); then 41 ret=1 42 break 43 fi 44 done 45 (( $ret != 0 )) && unset SHROPTS 46 else 47 SHROPTS=$SHROPTS_LIST 48 fi 49 50 # The mount options array is limited to those use access list 51 MNTOPTS="rw ro" 52 53 # The NFS version options array for test combination generation 54 # 55 VEROPTS_LIST="default vers=4 vers=3 vers=2" 56 if [[ -n $VEROPTS ]]; then 57 ret=0 58 for opt in $VEROPTS; do 59 echo $VEROPTS_LIST | grep -w $opt > /dev/null 2>&1 60 if (( $? != 0 )); then 61 ret=1 62 break 63 fi 64 done 65 (( $ret != 0 )) && unset VEROPTS 66 else 67 VEROPTS=$VEROPTS_LIST 68 fi 69 70 STF_VARIABLES="SHROPTS_LIST VEROPTS_LIST SHROPTS MNTOPTS VEROPTS"