From f4e1d1c87234b3d8cf6a9d2d7db2b09082d3b2cc Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 23 Sep 2021 19:41:15 +0100 Subject: [PATCH] create Abstract Base Class StateRunner --- src/openpower/test/state.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() -- 2.30.2