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 
  27 [[ :$NFSGEN_DEBUG: = *:stress*:* || :${NFSGEN_DEBUG}: = *:all:* ]] \
  28         && STRESS_DEBUG=2 || STRESS_DEBUG=1
  29 
  30 
  31 # Variables for stress_pos001
  32 ST01_RUNS=${ST01_RUNS:-10}      # Number of testcase runs to execute
  33 ST01_NAP=${ST01_NAP:-1}         # Inter-testcase run sleep period
  34 ST01_ITER=${ST01_ITER:-10}      # Total number of tests per run to execute
  35 
  36 # Variables for stress_pos002
  37 ST02_FNUM=${ST02_FNUM:-64}      # Number of files to create and open
  38 ST02_NAP=${ST02_NAP:-1}         # Pause period (in seconds) between
  39                                 # create/clsoe and open/lock/validate/unlink
  40 
  41 # Variables for stress_pos004
  42 ST04_KIDS=${ST04_KIDS:-512}     # Number of child processes
  43 
  44 # Variables for stress_pos005
  45 ST05_ITER=${ST05_ITER:-1024}    # Loop number for the test
  46 
  47 export STRESS_TIMEOUT=\$STRESS_TIMEOUT          # time out for stress tests
  48 export STF_TIMEOUT=\${STRESS_TIMEOUT:-10800}
  49 
  50 STF_VARIABLES="STRESS_TIMEOUT STF_TIMEOUT STRESS_DEBUG ST01_RUNS ST01_NAP ST01_ITER \
  51                 ST02_FNUM ST02_NAP ST04_KIDS ST05_ITER"