tr5xx_cmicx_sanity.soc (2525B)
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 cmicx Sanity tests 7 # 8 # Script to run tr 5xx tests for cmicx. Will be invoked by nightly regression 9 # infrastructure to verify various tr tests across various cmcs. 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 set rct=true 33 rcload rc.soc 34 counter off 35 l2mode off 36 linkscan off 37 memscan off 38 sramscan off 39 40 #TR 500 tests on CMC0 41 echo "Testing TR500 on CMC0" 42 tr 500 tb=0x33 rb=0xcc st=0 sr=0 ttt=0 ttr=0 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 43 tr 500 tb=0x33 rb=0xcc st=0 sr=0 ttt=1 ttr=1 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 44 tr 500 tb=0x33 rb=0xcc st=0 sr=0 ttt=2 ttr=2 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 45 tr 500 tb=0x33 rb=0xcc st=0 sr=0 ttt=3 ttr=3 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 46 $done 47 48 #TR 500 tests on CMC0 and CMC1 49 echo "Testing TR500 on CMC0 and CMC1" 50 tr 500 tb=0x3333 rb=0xcccc st=0 sr=0 ttt=0 ttr=0 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 51 tr 500 tb=0x3333 rb=0xcccc st=0 sr=0 ttt=1 ttr=1 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 52 tr 500 tb=0x3333 rb=0xcccc st=0 sr=0 ttt=2 ttr=2 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 53 tr 500 tb=0x3333 rb=0xcccc st=0 sr=0 ttt=3 ttr=3 cpi=1 pi=0 sto=0 ps=100 npt=50 npr=50 54 $done 55 56 #TR 501 streaming test 57 echo "Testing TR501" 58 tr 501 ps=2000 59 tr 501 ps=5000 60 $done 61 62 #TR 502 SBUSDMA tests 63 echo "Running TR 502 tests.." 64 tr 502 65 $done 66 67 #TR 503 CCMDMA test on all CMC 68 echo "Running TR 503 CCMDMA tests..." 69 tr 503 cmcbitmap=0x1 70 tr 503 cmcbitmap=0x3 71 $done 72 73 #TR 504 FIFO DMA test 74 echo "Testing TR504 FIFO DMA" 75 tr 504 tt=0 76 tr 504 tt=1 77 $done 78 79 #TR 505 SCHAN FIFO test 80 echo "Testing TR505 SCHAN FIFO" 81 tr 505 82 $done 83 84 # Show status 85 date 86 tl 87 local returnCode $? 88 89 echo Tests Complete. Reinitializing ... 90 config refresh 91 #rcload rc.soc 92 #counter off 93 #l2mode off 94 95 # We want to show the return code from the tl command which 96 # lists the results. The automated test infrastructure keys off of this 97 # value 98 echo "testsuite: finished: sanity: $returnCode"