perf.soc (1434B)
1 # 2 # 3 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 # 5 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 # 7 # Run packet TX, packet RX tests and CPU benchmark. 8 echo "testsuite: started: performance" 9 10 # Packet RX test is not supported on fabric devices. 11 if $?bradley || $?humv || $?herc "local skipRX false" 12 13 echo "Running: Test(CPU_Benchmark)" 14 tr 21 15 echo "Complete: Test(CPU_Benchmark)" 16 17 echo "Running: Test(Packet_TX_PPC4)" 18 tr 40 FP=false op=1000 LS=64 LE=1518 C=10000 PktsPerChain=4 19 echo "Complete: Test(Packet_TX_PPC4)" 20 21 echo "Running: Test(Packet_TX_PPC16)" 22 tr 40 FP=false op=1000 LS=64 LE=1518 C=10000 PktsPerChain=16 23 echo "Complete: Test(Packet_TX_PPC16)" 24 25 # Magnum requires override. testmode +override indicates that this tr 26 # has not been tested on this chip. However I've validated this test 27 # before committing this change. 28 if $?magnum "testmode +override" 29 if $?tucana "testmode +override" 30 31 if !$?skipRX "echo 'Running: Test(Packet_RX_PPC4)'" 32 if !$?skipRX "tr 41 T=2 LS=64 LE=1518 LI=64 PERC=0 R=0 B=100 PPC=4 C=4" 33 if !$?skipRX "echo 'Complete: Test(Packet_RX_PPC4)'" 34 35 if !$?skipRX "echo 'Running: Test(Packet_RX_PPC16)'" 36 if !$?skipRX "tr 41 T=2 LS=64 LE=1518 LI=64 PERC=0 R=0 B=100 PPC=16 C=4" 37 if !$?skipRX "echo 'Complete: Test(Packet_RX_PPC16)'" 38 39 tl 40 local returnCode $? 41 42 echo "testsuite: finished: performance: $returnCode"