projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a0b55
)
create Abstract Base Class StateRunner
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 23 Sep 2021 18:41:15 +0000
(19:41 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 23 Sep 2021 18:41:15 +0000
(19:41 +0100)
src/openpower/test/state.py
patch
|
blob
|
history
diff --git
a/src/openpower/test/state.py
b/src/openpower/test/state.py
index 0e4b78af9d08e27f706406c5e9c9ce23ed4207b7..19d9cb94a9a88e684a7a9c414fc9443a62ae0f05 100644
(file)
--- a/
src/openpower/test/state.py
+++ b/
src/openpower/test/state.py
@@
-26,6
+26,18
@@
from openpower.decoder.power_enums import XER_bits
from openpower.util import log
+# TBD an Abstract Base Class
+class StateRunner:
+ """StateRunner: an Abstract Base Class for preparing and running "State".
+ near-identical in concept to python unittest.TestCase
+ """
+ def __init__(self, dut, **kwargs): pass
+ def prepare_for_test(self): pass
+ def step_test(self): pass
+ def end_test(self): pass
+ def cleanup(self): pass
+
+
class State:
def get_state(self):
yield from self.get_intregs()