summaryrefslogtreecommitdiffstats
path: root/src/test/testcases/testPutGetRegGpr.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testcases/testPutGetRegGpr.py')
-rwxr-xr-xsrc/test/testcases/testPutGetRegGpr.py26
1 files changed, 19 insertions, 7 deletions
diff --git a/src/test/testcases/testPutGetRegGpr.py b/src/test/testcases/testPutGetRegGpr.py
index 6a0463a0..7fa24669 100755
--- a/src/test/testcases/testPutGetRegGpr.py
+++ b/src/test/testcases/testPutGetRegGpr.py
@@ -5,7 +5,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2016
+# Contributors Listed Below - COPYRIGHT 2016,2019
# [+] International Business Machines Corp.
#
#
@@ -24,6 +24,7 @@
# IBM_PROLOG_END_TAG
import sys
sys.path.append("targets/p9_nimbus/sbeTest" )
+sys.path.append("targets/p9_axone/sbeTest" )
import testUtil
err = False
@@ -62,6 +63,7 @@ def main( ):
testUtil.writeUsFifo( PUTREG_TESTDATA )
testUtil.writeEot( )
testUtil.readDsFifo( PUTREG_EXPDATA )
+ testUtil.runCycles( 10000000 )
testUtil.readEot( )
testUtil.writeUsFifo( GETREG_TESTDATA )
testUtil.writeEot( )
@@ -71,12 +73,22 @@ def main( ):
#-------------------------------------------------
# Calling all test code
#-------------------------------------------------
-main()
+if testUtil.getMachineName() == "axone":
+ try:
+ main()
+ except:
+ print ( "\nTest Suite completed with error(s)" )
+ testUtil.collectFFDC()
+ raise()
-if err:
- print ("\nTest Suite completed with error(s)")
- #sys.exit(1)
+ print ( "\nTest Suite completed with no errors" )
else:
- print ("\nTest Suite completed with no errors")
- #sys.exit(0);
+ main()
+
+ if err:
+ print ("\nTest Suite completed with error(s)")
+ #sys.exit(1)
+ else:
+ print ("\nTest Suite completed with no errors")
+ #sys.exit(0);
OpenPOWER on IntegriCloud