get div compunit test running (use new way to accumulate tests)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 26 Jul 2020 09:56:08 +0000 (10:56 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 26 Jul 2020 09:56:08 +0000 (10:56 +0100)
src/soc/fu/compunits/test/test_div_compunit.py
src/soc/fu/div/test/test_pipe_caller.py

index bce3216a17894f8a685e0ce30fe1bba889a410e0..cd0f079ad776deafdbff41cab848a062fa67a67a 100644 (file)
@@ -52,7 +52,7 @@ class DivTestRunner(TestRunner):
 if __name__ == "__main__":
     unittest.main(exit=False)
     suite = unittest.TestSuite()
-    suite.addTest(DivTestRunner(DivTestCases.test_data))
+    suite.addTest(DivTestRunner(DivTestCases().test_data))
 
     runner = unittest.TextTestRunner()
     runner.run(suite)
index 264b8bbc1eac60e5b47872de66a43846bed177da..bfaa65601f52f4f87e22b3f95d18f80b4a831d70 100644 (file)
@@ -7,7 +7,8 @@ from soc.config.endian import bigendian
 from soc.fu.test.common import (TestCase, TestAccumulatorBase)
 from soc.fu.div.pipe_data import DivPipeKind
 
-from soc.fu.div.test.runner import (log_rand, DivRunner)
+from soc.fu.div.test.runner import (log_rand, get_cu_inputs,
+                                    set_alu_inputs, DivRunner)
 
 
 class DivTestCases(TestAccumulatorBase):