TestList
List loaded tests and status
- TestList
Shortest form:
tl.List the built-in diagnostic tests with their state and run statistics: whether a test is active (A) or selected (S), how often it has run, passed and failed. A test ID is a test number, a test name or
*. A name may be shortened to any unique prefix, and the first match wins.no argument, or
*: the tests supported on this chip;all: every test, including those not supported on this chip;fail: only the numbers of the tests that have failed, orAll tests passed;test IDs: just those tests.
The build includes 76 tests, among them 1 Register reset defaults, 3 Register read/write, 5 BIST, 18 MAC Loopback, 19 PHY Loopback, 39 New Snake Test, 50 Memory Fill/Verify, 54 TD3/MV2 Special Mem Test and 72 Traffic Test. Run them with
testrun.Read-only. The table form reports failure when no listed test has run yet or when any has failed, so scripts can check the result. Through the SAI front-end that failure shows as
Failed to execute the diagnostic command. Error: Operation failed.after the table, which is what you see on a switch where no test has ever run.Hardware-validated
drivshell> testlist -----+----+--- TEST STATUS REPORT ----+-----+-----+-----+-----+----------- U/A/S|Test| Test |Loop | Run |Pass |Fail | Arguments | # | Name |Count|Count|Count|Count| -----+----+---------------------------+-----+-----+-----+-----+----------- S | 1| Register reset defaults | 1| 0| 0| 0| (none) S | 2| PCI Compliance | 100| 0| 0| 0| (none) S | 3| Register read/write | 1| 0| 0| 0| (none) S | 4| PCI S-Channel Buf | 100| 0| 0| 0| (none) S | 5| BIST | 1| 0| 0| 0| ALL | 17| CPU Loopback | 1| 0| 0| 0| (none) | 18| MAC Loopback | 1| 0| 0| 0| (none) | 19| PHY Loopback | 1| 0| 0| 0| (none) | 20| EXT Loopback | 1| 0| 0| 0| (none) | 21| CPU Benchmarks | 1| 0| 0| 0| (none) | 22| CPU S/G, Reload | 1| 0| 0| 0| (none) | 23| CPU S/G, Simple | 1| 0| 0| 0| (none) | 24| CPU S/G, Random | 1| 0| 0| 0| (none) | 30| Counter widths | 1| 0| 0| 0| (none) | 31| Counter read/write | 1| 0| 0| 0| (none) S | 32| XGS L2 Ins/Lookup/Del | 1| 0| 0| 0| (none) S | 33| XGS L2 Overflow Ins | 1| 0| 0| 0| (none) S | 34| XGS L2 Hashing | 1| 0| 0| 0| (none) S | 35| XGS L2 Delete by Port | 1| 0| 0| 0| (none) S | 36| XGS L2 Delete by VLAN | 1| 0| 0| 0| (none) | 39| New Snake Test | 1| 0| 0| 0| (none) | 40| BCM Packet Send | 1| 0| 0| 0| (none) | 41| BCM Packet Receive | 1| 0| 0| 0| (none) | 42| PKTIO Packet Send/Receive Multi-channel| 1| 0| 0| 0| (none) | 48| MAC Loopback - Mark 2 | 1| 0| 0| 0| (none) | 49| PHY Loopback - Mark 2 | 1| 0| 0| 0| (none) ...
- testlist fail
Print the numbers of all tests that have failed so far, or
All tests passed.Hardware-validated
drivshell> testlist fail All tests passed
Built-in help
Parameters: [Test ID] ... Display the tests specified by [Test ID] in table format, A=active, S=selected, # Runs = number times test dispatched, # Pass = number times test completed successfully, # Fail = number times test completed with a failure "Test ID" is a test #, test name, or "*"