lmfb12p.soc (1488B)
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 # This script runs the tr 19 test for all the 12 10GE ports and 4 HiGig 7 # ports of the Firebolt 12 port CX4 platform. There are 4 firebolt 8 # devices and 1 hercules device on the platform. 9 10 #Set the duration argument as a variable 11 if !$?1 'local count 10' 12 if $?1 'local count $1' 13 14 if !$?lmfb12p "echo rc: config variable lmfb12p not set; exit" 15 16 testmode run 17 18 echo "Starting TR 19 test on device 0" 19 1:modreg mac_ctrl.hg0 RMTLOOP=1 20 2:modreg mac_ctrl.hg0 RMTLOOP=1 21 3:modreg mac_ctrl.hg0 RMTLOOP=1 22 4:modreg mac_ctrl.hg0 RMTLOOP=1 23 0: tr 19 ExtselfloopPBM=hg count=$count 24 25 1:modreg mac_ctrl.hg0 RMTLOOP=0 26 2:modreg mac_ctrl.hg0 RMTLOOP=0 27 3:modreg mac_ctrl.hg0 RMTLOOP=0 28 4:modreg mac_ctrl.hg0 RMTLOOP=0 29 30 echo "Starting TR 19 test on device 1" 31 0:modreg mac_ctrl.hg6 RMTLOOP=1 32 1: tr 19 ExtselfloopPBM=xe,hg0 count=$count 33 0:modreg mac_ctrl.hg6 RMTLOOP=0 34 35 echo "Starting TR 19 test on device 2" 36 0:modreg mac_ctrl.hg7 RMTLOOP=1 37 2: tr 19 ExtselfloopPBM=xe,hg0 count=$count 38 0:modreg mac_ctrl.hg7 RMTLOOP=0 39 40 echo "Starting TR 19 test on device 3" 41 0:modreg mac_ctrl.hg0 RMTLOOP=1 42 3: tr 19 ExtselfloopPBM=xe,hg0 count=$count 43 0:modreg mac_ctrl.hg0 RMTLOOP=0 44 45 echo "Starting TR 19 test on device 4" 46 0:modreg mac_ctrl.hg1 RMTLOOP=1 47 4: tr 19 ExtselfloopPBM=xe,hg0 count=$count 48 0:modreg mac_ctrl.hg1 RMTLOOP=0 49 50 51