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

tr517_bcm56870_a0.soc (2406B)


      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 Power test Sanity 
      7 # By default use config: $SDK/rc/config_td3_128x25G_pwr.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: PowerSanity"
     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 
     33 echo "Running Power test..."
     34 
     35 echo "tr 517"
     36 tr 517;
     37 $done
     38 ps
     39 
     40 echo "tr 517 PktSize=145"
     41 tr 517 PktSize=145;
     42 $done
     43 ps
     44 
     45 echo "tr 517 FloodCnt=50"
     46 tr 517 FloodCnt=50;
     47 $done
     48 ps
     49 
     50 echo "tr 517 RateCalcInt=9"
     51 tr 517 RateCalcInt=9;
     52 $done
     53 ps
     54 
     55 echo "tr 517 TolLr=5"
     56 tr 517 TolLr=5;
     57 $done
     58 ps
     59 
     60 echo "tr 517 TolOv=5"
     61 tr 517 TolOv=5;
     62 $done
     63 ps
     64 
     65 echo "tr 517 LoopbackMode=2"
     66 tr 517 LoopbackMode=2;
     67 $done
     68 ps
     69 
     70 echo "tr 517 LoopbackMode=3"
     71 tr 517 LoopbackMode=3;
     72 $done
     73 ps
     74 
     75 echo "tr 517 TrafficLoad=40"
     76 tr 517 TrafficLoad=40;
     77 $done
     78 ps
     79 
     80 echo "tr 517 VfpEnable=0"
     81 tr 517 VfpEnable=0;
     82 $done
     83 ps
     84 
     85 echo "tr 517 EfpEnable=0"
     86 tr 517 EfpEnable=0;
     87 $done
     88 ps
     89 
     90 echo "tr 517 VfpEnable=0 EfpEnable=0"
     91 tr 517 VfpEnable=0 EfpEnable=0;
     92 $done
     93 ps
     94 
     95 echo "tr 517 VfpMatch=0 EfpMatch=0"
     96 tr 517 VfpMatch=0 EfpMatch=0;
     97 $done
     98 ps
     99 
    100 echo "tr 517 L3EcmpEnable=0"
    101 tr 517 L3EcmpEnable=0;
    102 $done
    103 ps
    104 
    105 echo "tr 517 DefipEnable=1"
    106 tr 517 DefipEnable=1;
    107 $done
    108 ps
    109 
    110 echo "tr 517 L3TunnelEnable=1"
    111 tr 517 L3TunnelEnable=1;
    112 $done
    113 ps
    114 
    115 echo "tr 517 VlanXlate1Enable=1"
    116 tr 517 VlanXlate1Enable=1;
    117 $done
    118 ps
    119 
    120 echo "tr 517 ScalingFactor=10"
    121 tr 517 ScalingFactor=10;
    122 echo "set rct=f"
    123 set rct=f;
    124 echo "tr 517 ScalingFactor=20"
    125 tr 517 ScalingFactor=20;
    126 
    127 $done
    128 ps
    129 
    130 ##################################################################
    131 #End Test
    132 
    133 date
    134 tl
    135 local returnCode $?
    136 
    137 echo Tests Complete.  Reinitializing ...
    138 config refresh
    139 rcload rc.soc
    140 counter off
    141 l2mode off
    142 
    143 # We want to show the return code from the tl command which
    144 # lists the results. The automated test infrastructure keys off of this
    145 # value
    146 echo "testsuite: finished: PowerSanity: $returnCode"
    147