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 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 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="sec=sys sec=none sec=none:sys rw anon=0" 36 # There can't have two sec= options, due to a panic bug 37 SHROPTS_LIST="sec=sys ro anon=0 anon=98765 public" 38 if [[ -n $SHROPTS ]]; then 39 ret=0 40 for opt in $SHROPTS; do 41 echo $SHROPTS_LIST | grep -w $opt > /dev/null 2>&1 42 if (( $? != 0 )); then 43 ret=1 44 break 45 fi 46 done 47 (( $ret != 0 )) && unset SHROPTS 48 else 49 SHROPTS=$SHROPTS_LIST 50 fi 51 52 # The mount options array for test combination generation 53 MNTOPTS_LIST="rw sec=sys ro hard proto=tcp proto=udp proto=rdma public" 54 if [[ -n $MNTOPTS ]]; then 55 ret=0 56 for opt in $MNTOPTS; do 57 echo $MNTOPTS_LIST | grep -w $opt > /dev/null 2>&1 58 if (( $? != 0 )); then 59 ret=1 60 break 61 fi 62 done 63 (( $ret != 0 )) && unset MNTOPTS 64 else 65 MNTOPTS=$MNTOPTS_LIST 66 fi 67 68 # The NFS version options array for test combination generation 69 # 70 VEROPTS_LIST="default vers=4 vers=3 vers=2" 71 if [[ -n $VEROPTS ]]; then 72 ret=0 73 for opt in $VEROPTS; do 74 echo $VEROPTS_LIST | grep -w $opt > /dev/null 2>&1 75 if (( $? != 0 )); then 76 ret=1 77 break 78 fi 79 done 80 (( $ret != 0 )) && unset VEROPTS 81 else 82 VEROPTS=$VEROPTS_LIST 83 fi 84 85 STF_VARIABLES="SHROPTS_LIST MNTOPTS_LIST VEROPTS_LIST SHROPTS MNTOPTS VEROPTS"