summaryrefslogtreecommitdiffstats
path: root/src/test/testcases
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2018-01-23 01:17:52 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2018-01-24 06:09:04 -0500
commitc47554f1d2ee06e40bcb6f5b2427b02790aa280a (patch)
treea4d6809ae2fc327b29071fef7beab2c10881f89b /src/test/testcases
parentd737f8e95da3aabb73cc60085cdbad9c05600f48 (diff)
downloadtalos-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/testcases')
-rw-r--r--src/test/testcases/testAduMem_noEccNoItag.py12
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]
OpenPOWER on IntegriCloud