From: Luke Kenneth Casson Leighton Date: Sun, 26 Jul 2020 09:56:08 +0000 (+0100) Subject: get div compunit test running (use new way to accumulate tests) X-Git-Tag: semi_working_ecp5~537 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e4ea4a16804b987748354e877e917f905286794;p=soc.git get div compunit test running (use new way to accumulate tests) --- diff --git a/src/soc/fu/compunits/test/test_div_compunit.py b/src/soc/fu/compunits/test/test_div_compunit.py index bce3216a..cd0f079a 100644 --- a/src/soc/fu/compunits/test/test_div_compunit.py +++ b/src/soc/fu/compunits/test/test_div_compunit.py @@ -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) diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index 264b8bbc..bfaa6560 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -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):