libopencm3/tests/gadget-zero
Piotr Esden-Tempski b1049f9a6f [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00
..
Makefile.stm32f4disco tests: usb: gadget0 compatible interface (stm32f4) 2015-10-03 00:58:43 +00:00
Makefile.stm32f072disco usb: Add st_usbfs_v2 for f0/l0 devices 2015-10-03 02:03:58 +00:00
Makefile.stm32f103-generic tests: gadget0: add stm32f103 target 2015-10-03 01:18:17 +00:00
Makefile.stm32l1-generic tests: gadget0: add stm32l1 target 2015-10-03 01:29:49 +00:00
Makefile.stm32l053disco tests: gadget0: Add stm32l053 disco support 2015-10-06 00:54:53 +00:00
README.md tests: usb: gadget0 compatible interface (stm32f4) 2015-10-03 00:58:43 +00:00
main-stm32f4disco.c [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00
main-stm32f072disco.c [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00
main-stm32f103-generic.c [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00
main-stm32l1-generic.c [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00
main-stm32l053disco.c [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00
openocd.stm32f4disco.cfg tests: usb: gadget0 compatible interface (stm32f4) 2015-10-03 00:58:43 +00:00
openocd.stm32f072disco.cfg usb: Add st_usbfs_v2 for f0/l0 devices 2015-10-03 02:03:58 +00:00
openocd.stm32f103-generic.cfg tests: gadget0: add stm32f103 target 2015-10-03 01:18:17 +00:00
openocd.stm32l1-generic.cfg tests: gadget0: add stm32l1 target 2015-10-03 01:29:49 +00:00
openocd.stm32l053disco.cfg tests: gadget0: Add stm32l053 disco support 2015-10-06 00:54:53 +00:00
stub.py tests: usb: gadget0 compatible interface (stm32f4) 2015-10-03 00:58:43 +00:00
test_gadget0.py usb: short control IN might need a ZLP 2015-10-11 18:43:11 +00:00
usb-gadget0.c [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00
usb-gadget0.h [Style] Stylefix sweep over the whole codebase. 2015-12-14 22:57:15 +01:00

README.md

This project, inspired by usbtest and the linux usb gadget zero driver is used for regression testing changes to the libopencm3 usb stack.

The firmware itself is meant to be portable to any supported hardware, and then identical unit test code is run against all platforms. This project can and should be built for multiple devices.

Requirements: pyusb for running the tests. openocd >= 0.9 for automated flashing of specific boards python3 for running the tests at the command line.

You will need to modify the openocd config files, as they contain specific serial numbers of programming hardware. You should set these up for the set of available boards at your disposal.

Tests marked as @unittest.skip are either for functionality that is known to be broken, and are awaiting code fixes, or are long running performance tests

An example of a successful test run: