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