From 60b7961cd4462d2a3813da4711c466d761ecc947 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 30 Nov 2023 15:54:21 -0800 Subject: [PATCH] test_caller_spr: test spr cases too --- src/openpower/decoder/isa/test_caller_spr.py | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/openpower/decoder/isa/test_caller_spr.py diff --git a/src/openpower/decoder/isa/test_caller_spr.py b/src/openpower/decoder/isa/test_caller_spr.py new file mode 100644 index 00000000..7faee333 --- /dev/null +++ b/src/openpower/decoder/isa/test_caller_spr.py @@ -0,0 +1,23 @@ +""" spr tests +""" + +import unittest + +from openpower.test.spr.spr_cases import SPRTestCase +from openpower.test.runner import TestRunnerBase + +# writing the test_caller invocation this way makes it work with pytest + + +class TestSPR(TestRunnerBase): + def __init__(self, test): + assert test == 'test' + super().__init__(SPRTestCase().test_data, fp=True) + + def test(self): + # dummy function to make unittest try to test this class + pass + + +if __name__ == "__main__": + unittest.main() -- 2.30.2