From 2e4ea4a16804b987748354e877e917f905286794 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 26 Jul 2020 10:56:08 +0100 Subject: [PATCH] get div compunit test running (use new way to accumulate tests) --- src/soc/fu/compunits/test/test_div_compunit.py | 2 +- src/soc/fu/div/test/test_pipe_caller.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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): -- 2.30.2