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 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 #
  27 
  28 #
  29 # commands used by the test suite
  30 #
  31 
  32 if [[ -z $IP_COMMANDS_FILE ]]; then
  33 IP_COMMANDS_FILE=true
  34 
  35 typeset -r AWK=/usr/bin/awk
  36 typeset -r CAT=/usr/bin/cat
  37 typeset -r CMP=/usr/bin/cmp
  38 typeset -r CP=/usr/gnu/bin/cp
  39 typeset -r CUT=/usr/gnu/bin/cut
  40 typeset -r DATE=/usr/gnu/bin/date
  41 typeset -r DIFF=/usr/bin/diff
  42 typeset -r DLADM=/usr/sbin/dladm
  43 typeset -r ECHO=/usr/gnu/bin/echo
  44 typeset -r EGREP=/usr/gnu/bin/egrep
  45 typeset -r EXPR=/usr/bin/expr
  46 typeset -r GREP=/usr/gnu/bin/grep
  47 typeset -r IFCONFIG=/usr/sbin/ifconfig
  48 typeset -r KILL=/usr/gnu/bin/kill
  49 typeset -r LN=/usr/gnu/bin/ln
  50 typeset -r LS=/usr/bin/ls
  51 typeset -r MKFILE=/usr/gnu/bin/mktemp
  52 typeset -r MKTEMP=/usr/gnu/bin/mktemp
  53 typeset -r MULTIECHO=$CTI_SUITE/lib/multiecho
  54 typeset -r IPT_TESTS=$CTI_SUITE/lib/ipt_tests
  55 typeset -r PSH=$PSH_DIR/bin/psh
  56 typeset -r PSEND=$PSH_DIR/examples/psend
  57 typeset -r NDD=/usr/sbin/ndd
  58 typeset -r PING=/usr/sbin/ping
  59 typeset -r PSTACK=/usr/bin/pstack
  60 typeset -r PS=/usr/bin/ps
  61 typeset -r PTIME=/usr/bin/ptime
  62 typeset -r PWAIT=/usr/bin/pwait
  63 typeset -r RM=/usr/bin/rm
  64 typeset -r ROUTEADM=/usr/sbin/routeadm
  65 typeset -r SED=/usr/bin/sed
  66 typeset -r SNOOP=/usr/sbin/snoop
  67 typeset -r SVCADM=/usr/sbin/svcadm
  68 typeset -r SVCS=/usr/bin/svcs
  69 typeset -r TAIL=/usr/bin/tail
  70 typeset -r UNLINK=/usr/gnu/bin/unlink
  71 typeset -r WC=/usr/bin/wc
  72 typeset -r XARGS=/usr/gnu/bin/xargs
  73 typeset -r ZLOGIN=/usr/sbin/zlogin
  74 typeset -r ZONEADM=/usr/sbin/zoneadm
  75 typeset -r ZONECFG=/usr/sbin/zonecfg
  76 typeset -r ZONEC=$CTI_SUITE/lib/zone_config
  77 
  78 typeset -r IKED=/usr/lib/inet/in.iked
  79 typeset -r IPSECALGS=/usr/sbin/ipsecalgs
  80 typeset -r IPSECCONF=/usr/sbin/ipsecconf
  81 typeset -r IPSECKEY=/usr/sbin/ipseckey
  82 
  83 typeset -a IP_COMMAND_LIST=( 
  84     $AWK \
  85     $CAT \
  86     $CMP \
  87     $CP \
  88     $CUT \
  89     $DIFF \
  90     $DLADM \
  91     $ECHO \
  92     $EGREP \
  93     $EXPR \
  94     $GREP \
  95     $IFCONFIG \
  96     $KILL \
  97     $LN \
  98     $LS \
  99     $MKFILE \
 100     $MKTEMP \
 101     $MULTIECHO \
 102     $PING \
 103     $PSTACK \
 104     $PS \
 105     $PTIME \
 106     $PWAIT \
 107     $RM \
 108     $ROUTEADM \
 109     $SED \
 110     $SNOOP \
 111     $SVCADM \
 112     $SVCS \
 113     $TAIL \
 114     $UNLINK \
 115     $WC \
 116     $ZLOGIN \
 117     $ZONEADM \
 118     $ZONECFG \
 119     $ZONEC \
 120 )
 121 
 122 fi
 123 
 124