diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2018-01-23 01:17:52 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-01-24 06:09:04 -0500 |
commit | c47554f1d2ee06e40bcb6f5b2427b02790aa280a (patch) | |
tree | a4d6809ae2fc327b29071fef7beab2c10881f89b /src/test | |
parent | d737f8e95da3aabb73cc60085cdbad9c05600f48 (diff) | |
download | talos-sbe-c47554f1d2ee06e40bcb6f5b2427b02790aa280a.tar.gz talos-sbe-c47554f1d2ee06e40bcb6f5b2427b02790aa280a.zip |
Update testcase for secure ADU operations
Testcases for all the supported secure ADU
operation flags
Change-Id: I929dbe52a0330363bbdcd2560901fe5f4927ada0
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52419
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/testcases/testAduMem_noEccNoItag.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/test/testcases/testAduMem_noEccNoItag.py b/src/test/testcases/testAduMem_noEccNoItag.py index f23b4824..2d54334c 100644 --- a/src/test/testcases/testAduMem_noEccNoItag.py +++ b/src/test/testcases/testAduMem_noEccNoItag.py @@ -5,7 +5,7 @@ # # OpenPOWER sbe Project # -# Contributors Listed Below - COPYRIGHT 2016,2017 +# Contributors Listed Below - COPYRIGHT 2016,2018 # [+] International Business Machines Corp. # # @@ -37,6 +37,16 @@ err = False def main( ): testUtil.runCycles( 10000000 ) + # PutMemAdu - Secure operations + data = os.urandom(4) + data = [ord(c) for c in data] + testMemProcUtil.putmem(0x00000000, data, 0x00002001) + testMemProcUtil.putmem(0x00000000, data, 0x00000801) + testMemProcUtil.putmem(0x00000000, data, 0x00008001) + testMemProcUtil.putmem(0x00000000, data, 0x00000401) + testMemProcUtil.putmem(0x00000000, data, 0x00004001) + print ("Success - ADU secure operations") + #PutMemAdu Test data = os.urandom(80) data = [ord(c) for c in data] |