afa4e00701b368cc6f8a1b4139d3ccb4e4923732
2 from soc
.fu
.mul
.test
.helper
import MulTestHelper
3 from openpower
.test
.mul
.long_mul_cases
import (MulTestCases2Arg
,
8 class TestPipeLong(MulTestHelper
):
9 def test_mul_pipe_2_arg(self
):
10 self
.run_all(MulTestCases2Arg({'soc'}).test_data
,
11 "mul_pipe_caller_long_2_arg", has_third_input
=False)
13 def helper_3_arg(self
, subtest_index
):
14 self
.run_all(MulTestCases3Arg(subtest_index
, {'soc'}).test_data
,
15 f
"mul_pipe_caller_long_3_arg_{subtest_index}",
18 # split out as separate functions so some test
19 # runners can test them all in parallel
20 def test_mul_pipe_3_arg_0(self
):
23 def test_mul_pipe_3_arg_1(self
):
26 def test_mul_pipe_3_arg_2(self
):
29 def test_mul_pipe_3_arg_3(self
):
32 def test_mul_pipe_3_arg_4(self
):
35 def test_mul_pipe_3_arg_5(self
):
38 def test_mul_pipe_3_arg_6(self
):
41 def test_mul_pipe_3_arg_7(self
):
44 def test_mul_pipe_3_arg_8(self
):
47 def test_mul_pipe_3_arg_9(self
):
50 def test_mul_pipe_3_arg_10(self
):
53 def test_mul_pipe_3_arg_11(self
):
56 def test_mul_pipe_3_arg_12(self
):
59 def test_mul_pipe_3_arg_13(self
):
62 def test_mul_pipe_3_arg_14(self
):
65 def test_mul_pipe_3_arg_15(self
):
68 def test_all_values_covered(self
):
69 count
= len(MUL_3_ARG_TEST_VALUES
)
70 for i
in range(count
):
71 getattr(self
, f
"test_mul_pipe_3_arg_{i}")
72 with self
.assertRaises(AttributeError):
73 getattr(self
, f
"test_mul_pipe_3_arg_{count}")
76 if __name__
== "__main__":