[Libre-soc-bugs] [Bug 730] adapt ALU test cases to include expected results

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Oct 24 15:50:08 BST 2021


Luke Kenneth Casson Leighton <lkcl at lkcl.net> changed:

           What    |Removed                     |Added
       The table of|                            |vklr=0
  payments (in EUR)|                            |lkcl=0
     for this task;|                            |klehman=0
        TOML format|                            |

--- Comment #11 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
kyle, i just realised, there is a neat trick that
can be used to massively accelerate this process.

could you add a function to ExpectedState which dumps
its contents into a /tmp/testname_subtest_name.py that
looks exactly like this:

      e = ExpectedState(pc=xxx)
      e.intregs[yy] = 0xZZ

etc etc.

anything that is zero just exclude it.

then make the test API call that dump function at the

it then becomes a near trivial matter to cut/paste those
codefragments into every unit test.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list