tr5xx_sanity.soc (3228B)
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 # TR 5xx Sanity tests 7 # 8 # Script to run tr 5xx tests. Will be invoked by nightly regression 9 # infrastructure to verify various tr tests across various cmcx. 10 11 # Set run command script not to fail on errors reported by commands 12 # this allows the script to continue if a test fails 13 set rcerror=false 14 15 # Set up test mode: don't stop on errors, show progress on each test 16 tm -stoponerror +progress 17 # Unselect all 18 ts -* 19 20 echo "testsuite: started: sanity" 21 time 'rcload rc.soc' 22 23 # We need to print out port status since any cabling effects results. 24 *:ps 25 26 #Display some useful information 27 date 28 ver 29 soc 30 31 # Re-initialize to clean up of various read/wrires to MMU memories 32 config add parity_enable=0 33 set rct=true 34 rcload rc.soc 35 counter off 36 l2mode off 37 linkscan off 38 memscan off 39 sramscan off 40 41 #TR 500 tests on CMC0 42 echo "Testing TR500 on CMC0" 43 tr 500 tb=0x3 rb=0xc ps=64 npt=27 npr=27 ttt=0 ttr=0 cpi=1 pi=2 sto=0 44 tr 500 tb=0x3 rb=0xc ps=9216 npt=6 npr=6 ttt=0 ttr=0 cpi=1 pi=2 sto=0 45 tr 500 tb=0x3 rb=0xc ps=2048 npt=13 npr=13 ttt=1 ttr=1 cpi=1 pi=2 sto=0 46 tr 500 tb=0x3 rb=0xc ps=9216 npt=3 npr=3 ttt=1 ttr=1 cpi=1 pi=2 sto=0 47 tr 500 tb=0x3 rb=0xc ps=4096 npt=100 npr=100 ttt=2 ttr=2 cpi=1 pi=2 sto=0 48 tr 500 tb=0x3 rb=0xc ps=9216 npt=25 npr=25 ttt=2 ttr=2 cpi=1 pi=2 sto=0 49 tr 500 tb=0x3 rb=0xc ps=1024 npt=50 npr=50 ttt=3 ttr=3 cpi=1 pi=2 sto=0 50 tr 500 tb=0x3 rb=0xc ps=9216 npt=12 npr=12 ttt=3 ttr=3 cpi=1 pi=2 sto=0 51 $done 52 53 #TR 500 tests on CMC0 and CMC1 54 echo "Testing TR500 on CMC0 and CMC1" 55 tr 500 tb=0x33 rb=0xcc ps=64 npt=27 npr=27 ttt=0 ttr=0 cpi=1 pi=2 sto=0 56 tr 500 tb=0x33 rb=0xcc ps=9216 npt=6 npr=6 ttt=0 ttr=0 cpi=1 pi=2 sto=0 57 tr 500 tb=0x33 rb=0xcc ps=1024 npt=13 npr=13 ttt=1 ttr=1 cpi=1 pi=2 sto=0 58 tr 500 tb=0x33 rb=0xcc ps=9216 npt=3 npr=3 ttt=1 ttr=1 cpi=1 pi=2 sto=0 59 $done 60 61 #TR 500 tests on CMC0, CMC1 and CMC2 62 echo "Testing TR500 on CMC0, CMC1 and CMC2" 63 tr 500 tb=0x333 rb=0xccc ps=2048 npt=27 npr=27 ttt=0 ttr=0 cpi=1 pi=2 sto=0 64 tr 500 tb=0x333 rb=0xccc ps=9216 npt=6 npr=6 ttt=0 ttr=0 cpi=1 pi=2 sto=0 65 tr 500 tb=0x333 rb=0xccc ps=4096 npt=13 npr=13 ttt=1 ttr=1 cpi=1 pi=2 sto=0 66 tr 500 tb=0x333 rb=0xccc ps=9216 npt=3 npr=3 ttt=1 ttr=1 cpi=1 pi=2 sto=0 67 $done 68 69 #TR 501 streaming test 70 echo "Testing TR501" 71 tr 501 ps=2048 rci=20 72 tr 501 ps=9216 rci=20 73 $done 74 75 #TR 502 SBUSDMA tests 76 echo "Running TR 502 tests.." 77 tr 502 desc=0 nummem=1 mem0=VLAN 78 tr 502 desc=1 nummem=1 mem0=VLAN 79 tr 502 desc=1 nummem=2 mem0=VLAN mem1=EGR_VLAN 80 tr 502 desc=1 nummem=3 mem0=VLAN mem1=EGR_VLAN mem2=MMU_REPL_LIST_TBL_PIPE0 81 $done 82 83 #TR 503 CCMDMA test on all CMC 84 echo "Running TR 503 CCMDMA tests..." 85 tr 503 cmcbitmap=0x1 86 tr 503 cmcbitmap=0x3 87 tr 503 cmcbitmap=0x7 88 $done 89 90 #TR 504 FIFO DMA test 91 echo "Testing TR504" 92 tr 504 93 $done 94 95 96 # Show status 97 date 98 tl 99 local returnCode $? 100 101 echo Tests Complete. Reinitializing ... 102 config refresh 103 #rcload rc.soc 104 #counter off 105 #l2mode off 106 107 # We want to show the return code from the tl command which 108 # lists the results. The automated test infrastructure keys off of this 109 # value 110 echo "testsuite: finished: sanity: $returnCode"