From: Luke Kenneth Casson Leighton Date: Thu, 23 Sep 2021 18:41:15 +0000 (+0100) Subject: create Abstract Base Class StateRunner X-Git-Tag: sv_maxu_works-initial~840 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4e1d1c87234b3d8cf6a9d2d7db2b09082d3b2cc;p=openpower-isa.git create Abstract Base Class StateRunner --- diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index 0e4b78af..19d9cb94 100644 --- 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()