mithro / valentyusb

USB Full-Speed core written in migen/LiteX
BSD 3-Clause "New" or "Revised" License
17 stars 3 forks source link

Fixup tx/bitstuff and tx/nrzi tests #22

Closed ewenmcneill closed 5 years ago

ewenmcneill commented 5 years ago

It looks like for some reason these two classes didn't have their tests properly updated (possibly lost in the rebasing?). Which means they don't run any longer.

With this fixup of the test base classes to use our unittest.TestCase subclass, they run to completion successfully.

Ewen

(LX P=tinyfpga_bx.minimal F=micropython) ewen@parthenon:/src/fpga/litex-buildenv
/third_party/usb-bootloader/valentyusb$ python -m usbcore.tx.bitstuff
.......
----------------------------------------------------------------------
Ran 7 tests in 0.045s

OK
(LX P=tinyfpga_bx.minimal F=micropython) ewen@parthenon:/src/fpga/litex-buildenv
/third_party/usb-bootloader/valentyusb$ python -m usbcore.tx.nrzi
.
----------------------------------------------------------------------
Ran 1 test in 0.023s

OK
(LX P=tinyfpga_bx.minimal F=micropython) ewen@parthenon:/src/fpga/litex-buildenv
/third_party/usb-bootloader/valentyusb$