test_caller_spr: test spr cases too
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 30 Nov 2023 23:54:21 +0000 (15:54 -0800)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 30 Nov 2023 23:54:21 +0000 (15:54 -0800)
src/openpower/decoder/isa/test_caller_spr.py [new file with mode: 0644]

diff --git a/src/openpower/decoder/isa/test_caller_spr.py b/src/openpower/decoder/isa/test_caller_spr.py
new file mode 100644 (file)
index 0000000..7faee33
--- /dev/null
@@ -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()