openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

cmd_td3_tr514_os.soc (2069B)


      1 # 
      2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3 # 
      4 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      5 #
      6 # Trident3 Flex Port Sanity for OverSubscription Mode
      7 # By default use config: $SDK/rc/config_td3_tr514_os.bcm
      8 
      9 # Set run command script not to fail on errors reported by commands
     10 # this allows the script to continue if a test fails
     11 set rcerror=false
     12 
     13 # Set up test mode: don't stop on errors, show progress on each test
     14 tm -stoponerror +progress
     15 # Unselect all
     16 ts -*
     17 
     18 echo "testsuite: started: FlexPortSanityOversubScriptionMode"
     19 
     20 # We need to print out port status since any cabling effects results.
     21 *:ps
     22 
     23 if $?1 'local full_test 1'
     24 
     25 #Display some useful information
     26 date
     27 ver
     28 soc
     29 
     30 #Start Test
     31 ##################################################################
     32 #debug appl tests;
     33 #config add port_flex_enable=1;
     34 #
     35 #tr 514 Tsc0=1x106G Tsc2=2x53G  Tsc3=2x50G  Tsc22=4x27G  Tsc23=4x25G  PktSize=300;
     36 #tr 514 Tsc0=2x53G  Tsc2=4x27G  Tsc3=4x25G  Tsc22=2x53G  Tsc23=2x50G  PktSize=300;
     37 #tr 514 Tsc0=1x100G Tsc2=1x106G Tsc3=1x100G Tsc22=1x106G Tsc23=1x100G PktSize=300;
     38 #
     39 #tr 514 Tsc2=2x42G  Tsc3=2x40G  Tsc4=4x11G  Tsc5=4x10G  Tsc22=2x21G  Tsc23=2x20G  PktSize=300;
     40 #tr 514 Tsc2=1x42G  Tsc3=1x40G  Tsc4=1x42G  Tsc5=1x40G  Tsc22=4x11G  Tsc23=4x10G  PktSize=300;
     41 #tr 514 Tsc2=2x42G  Tsc3=2x40G  Tsc4=4x11G  Tsc5=4x10G  Tsc22=2x21G  Tsc23=2x10G  PktSize=300;
     42 #tr 514 Tsc2=1x106G Tsc3=1x100G Tsc4=1x106G Tsc5=1x100G Tsc22=1x106G Tsc23=1x100G PktSize=300;
     43 
     44 echo "Running FlexPort test for oversub mode..."
     45 
     46 echo "tr 514 PktSize=300"
     47 tr 514 PktSize=300
     48 $done
     49 ps
     50 
     51 
     52 ##################################################################
     53 #End Test
     54 
     55 date
     56 tl
     57 local returnCode $?
     58 
     59 echo Tests Complete.  Reinitializing ...
     60 config refresh
     61 rcload rc.soc
     62 counter off
     63 l2mode off
     64 
     65 # We want to show the return code from the tl command which
     66 # lists the results. The automated test infrastructure keys off of this
     67 # value
     68 echo "testsuite: finished: FlexPortSanityOverSubscriptionMode: $returnCode"