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

TR_514_OS.soc (2734B)


      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 # Tomahawk2 Flex Port Sanity for Oversub Mode
      7 # By default use config: $SDK/rc/tomahawk2/flex_port_sanity/config_th2_TR_514_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: FlexPortSanityOversubMode"
     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 echo "Running FlexPort test for Oversub mode..."
     32 
     33 echo "Running tr 514 tsc0=1x100G tsc15=1x100G tsc16=4x25G tsc31=4x25G tsc32=1x25G tsc47=1x25G tsc48=2x25G tsc63=2x25G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2"
     34 tr 514 tsc0=1x100G tsc15=1x100G tsc16=4x25G tsc31=4x25G tsc32=1x25G tsc47=1x25G tsc48=2x25G tsc63=2x25G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2
     35 $done
     36 ps
     37 
     38 echo "Running tr 514 tsc0=2x53G tsc15=2x53G tsc16=1x53G tsc31=1x53G tsc32=4x11G tsc47=4x11G tsc48=2x53G tsc63=2x53G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2"
     39 tr 514 tsc0=2x53G tsc15=2x53G tsc16=1x53G tsc31=1x53G tsc32=4x11G tsc47=4x11G tsc48=2x53G tsc63=2x53G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2
     40 $done
     41 ps
     42 
     43 echo "Running tr 514 tsc0=1x106G tsc15=1x106G tsc16=4x11G tsc31=4x11G tsc32=4x11G tsc47=4x11G tsc48=2x21G tsc63=2x21G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2"
     44 tr 514 tsc0=1x106G tsc15=1x106G tsc16=4x11G tsc31=4x11G tsc32=4x11G tsc47=4x11G tsc48=2x21G tsc63=2x21G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2
     45 $done
     46 ps
     47 
     48 echo "Running tr 514 tsc0=2x40G tsc15=2x40G tsc16=1x40G tsc31=1x40G tsc32=2x20G tsc47=2x20G tsc48=2x40G tsc63=2x40G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2"
     49 tr 514 tsc0=2x40G tsc15=2x40G tsc16=1x40G tsc31=1x40G tsc32=2x20G tsc47=2x20G tsc48=2x40G tsc63=2x40G PktSize=256 ChkPktInteg=1 ClrNewPortCounts=1 TolOv=10 TolLr=10 LoopbackMode=2
     50 $done
     51 ps
     52 
     53 
     54 date
     55 tl
     56 local returnCode $?
     57 
     58 echo Tests Complete.  Reinitializing ...
     59 config refresh
     60 rcload rc.soc
     61 counter off
     62 l2mode off
     63 
     64 # We want to show the return code from the tl command which
     65 # lists the results. The automated test infrastructure keys off of this
     66 # value
     67 echo "testsuite: finished: FlexPortSanityOversubMode: $returnCode"