summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorPrasad Bg Ranganath <prasadbgr@in.ibm.com>2016-09-09 07:01:56 -0500
committerJennifer A. Stofer <stofer@us.ibm.com>2016-09-20 09:20:04 -0400
commitd7b92b5e575f7ed457ce63b6202c704284b676b3 (patch)
tree698a8f05d68eed334c86d2f910767c7f73ea84fb /src/test
parent6193453f456e18325ccbde259f5f0d229a34fb02 (diff)
downloadtalos-sbe-d7b92b5e575f7ed457ce63b6202c704284b676b3.tar.gz
talos-sbe-d7b92b5e575f7ed457ce63b6202c704284b676b3.zip
SBE:getRing L2 support
Change-Id: Id0337c0b349b9a1150eb277c4b4cb5c0b59e36ca Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29416 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testcases/testGetRing.py34
1 files changed, 4 insertions, 30 deletions
diff --git a/src/test/testcases/testGetRing.py b/src/test/testcases/testGetRing.py
index 276e3375..0b47c286 100644
--- a/src/test/testcases/testGetRing.py
+++ b/src/test/testcases/testGetRing.py
@@ -33,35 +33,16 @@ LOOP_COUNT = 1
#aligned Data
GETRING_TESTDATA = [0,0,0,0x6,
0,0,0xA3,0x01,
- 0xa,0xa,0xa,0xa, # address
- 0,0,0,0x40, # length of data
+ 0x20,0x03,0x70,0x01, # address
+ 0,0,0x4D,0xF1, # length of data in bits
0x00,0x00,0x00,0x01]
-GETRING_EXPDATA = [0,0,0,0, #data
- 0,0,0,0, #data
- 0,0,0,0x40, # length of data
- 0xc0,0xde,0xa3,0x01,
- 0x0,0x0,0x0,0x0,
- 0x00,0x0,0x0,0x03];
-
-#Un-aligned Data
-GETRING_TESTDATA1 = [0,0,0,0x6,
- 0,0,0xA3,0x01,
- 0xa,0xa,0xa,0xa, # address
- 0,0,0,0x45, # length of data
- 0x00,0x00,0x00,0x01]
-
-GETRING_EXPDATA1 = [0,0,0,0, #data
- 0,0,0,0, #data
- 0,0,0,0, #data
- 0,0,0,0, #data
- 0,0,0,0x45, # length of data
+GETRING_EXPDATA = [0,0,0x4D,0xF1, # length of data in bits
0xc0,0xde,0xa3,0x01,
0x0,0x0,0x0,0x0,
0x00,0x0,0x0,0x03];
-
# MAIN Test Run Starts Here...
#-------------------------------------------------
def main( ):
@@ -70,18 +51,11 @@ def main( ):
# GetRing test - Aligned Data
testUtil.writeUsFifo( GETRING_TESTDATA )
testUtil.writeEot( )
+ testUtil.readDsEntry ( 624 ) ## 6242 entries
testUtil.readDsFifo( GETRING_EXPDATA )
testUtil.runCycles( 10000000 )
testUtil.readEot( )
- # GetRing test - un-aligned Data
- testUtil.runCycles( 10000000 )
- testUtil.writeUsFifo( GETRING_TESTDATA1 )
- testUtil.writeEot( )
- testUtil.readDsFifo( GETRING_EXPDATA1 )
- testUtil.runCycles( 10000000 )
- testUtil.readEot( )
-
#-------------------------------------------------
# Calling all test code
#-------------------------------------------------
OpenPOWER on IntegriCloud