Home | History | Annotate | Download | only in nicdrv
      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 # ident	"@(#)config.vars	1.5	09/08/27 SMI"
     27 #
     28 
     29 # This file defines test suite configuration variables.  It contains
     30 # three sections:
     31 #       1) STF-defined variables
     32 #       2) Configuration variables without defaults
     33 #       3) Configuration variables with defaults
     34 #
     35 # The test suite user should not modify section #1.  He/she may
     36 # modify section #2 and must provide definitions for section #3.
     37 
     38 #
     39 #--------------------------------------------------------------
     40 # SECTION 1:  STF-defined variables
     41 #--------------------------------------------------------------
     42 #
     43 
     44 STF_VARIABLES="TST_INT TST_NUM RMT_INT RMT_NUM LOCAL_HST RMT_HST \
     45 	TST_PASS NETPERF_HOME DTRACE_SWITCH SYSINFO_PRINT \
     46 	RUN_MODE DRIVER_NAME DRIVER_SPEED LOCAL_IPMI_IP \
     47 	LOCAL_IPMI_USER LOCAL_IPMI_PASS"
     48 
     49 STF_NOT_SAFE="TST_PASS DTRACE_SWITCH SYSINFO_PRINT"
     50 
     51 #
     52 #--------------------------------------------------------------
     53 # SECTION 2:  Configuration variables without defaults
     54 #-------------------------------------------------------------- 
     55 #
     56 
     57 #
     58 # Provide network driver name you want
     59 # to test. for example: "bge" 
     60 #
     61 
     62 TST_INT=${TST_INT:-change_me_now}
     63 
     64 #
     65 # Provide the instance number of the under test physical interface.
     66 # for example: "0"
     67 #
     68 
     69 TST_NUM=${TST_NUM:-change_me_now}
     70 
     71 #
     72 # Provide the remote interface instance you want
     73 # to test. for example: "bge"
     74 #
     75 
     76 RMT_INT=${RMT_INT:-change_me_now}
     77 
     78 #
     79 # Provide the remote instance number.
     80 # for example: "0"
     81 #
     82 
     83 RMT_NUM=${RMT_NUM:-change_me_now}
     84 
     85 #
     86 # Provide local host interface name of the under testing driver, which
     87 # acts as the local machine of test. It can be either the interface's IP
     88 # address or the interface's name. for example: "11.0.1.1" or "hostname1"
     89 #
     90 
     91 LOCAL_HST=${LOCAL_HST:-change_me_now}
     92 
     93 #
     94 # Provide remote host interface name, which
     95 # acted as the target machine of test. It can be either the
     96 # interface's IP address or the interface's name. for example:
     97 # "11.0.1.2" or "remotename1"
     98 #
     99 
    100 RMT_HST=${RMT_HST:-change_me_now}
    101 
    102 #
    103 # Provide the test password of the root user on remote system
    104 #
    105 
    106 TST_PASS=${TST_PASS:-change_me_now}
    107 
    108 #
    109 # Provide the bin directory that the netperf is installed
    110 #
    111 
    112 NETPERF_HOME=${NETPERF_HOME:-"${STF_TOOLS}/../SUNWstc-netperf2/bin/"}
    113 
    114 #
    115 # Provide the test machine IPMI IP
    116 #
    117 
    118 LOCAL_IPMI_IP=${LOCAL_IPMI_IP:-not_test}
    119 
    120 #
    121 # Provide the test machine IPMI username
    122 #
    123 
    124 LOCAL_IPMI_USER=${LOCAL_IPMI_USER:-not_test}
    125 
    126 
    127 #
    128 # Provide the test machine IPMI password
    129 #
    130 
    131 LOCAL_IPMI_PASS=${LOCAL_IPMI_PASS:-not_test}
    132 
    133 
    134 #
    135 #--------------------------------------------------------------
    136 # SECTION 3:  Configuration variables with defaults
    137 #--------------------------------------------------------------
    138 #
    139 
    140 #
    141 # Dtrace switch, yes/no
    142 # If yes, it will generate a test coverage report after test complete
    143 # Please don't enable it, if you want to do a formal testing
    144 # 
    145 #
    146 DTRACE_SWITCH=${DTRACE_SWITCH:-no}
    147 
    148 #
    149 # Print system information in log
    150 # including: ifconfig, netstat, prtconf
    151 # Legal value: yes/no
    152 #
    153 SYSINFO_PRINT=${SYSINFO_PRINT:-no}
    154 
    155 #
    156 # Configure the strength of NICDRV, the run mode is based on
    157 # the different test objective, like for ONPIT or for LOW-END driver
    158 # or for WiFi. The default value is "normal".
    159 #
    160 RUN_MODE=${RUN_MODE:-normal}
    161 
    162 DRIVER_NAME=${DRIVER_NAME:-no}
    163 DRIVER_SPEED=${DRIVER_SPEED:-1G}
    164 
    165