add expected argument to TestCase
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Sep 2021 20:08:45 +0000 (21:08 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Sep 2021 20:08:45 +0000 (21:08 +0100)
src/openpower/test/common.py

index 2bc0c1fab494720f388b24e2be598883381c535c..1bfdf6ddfb3fc6d4106b35e80bb87928d0d282c3 100644 (file)
@@ -119,7 +119,8 @@ class TestCase:
                  msr=0,
                  do_sim=True,
                  extra_break_addr=None,
-                 svstate=0):
+                 svstate=0,
+                 expected=None):
 
         self.program = program
         self.name = name
@@ -138,6 +139,7 @@ class TestCase:
         self.do_sim = do_sim
         self.extra_break_addr = extra_break_addr
         self.svstate = svstate
+        self.expected = expected # expected results from the test
 
 
 class ALUHelpers: