From: Jacob Lifshay Date: Thu, 30 Nov 2023 23:54:21 +0000 (-0800) Subject: test_caller_spr: test spr cases too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60b7961cd4462d2a3813da4711c466d761ecc947;p=openpower-isa.git test_caller_spr: test spr cases too --- 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()