tests: gadget-zero: add xunit reporting

This is intended to help produce CI reporting on PRs and regression
testing.
This commit is contained in:
Karl Palsson
2020-08-24 23:50:22 +00:00
parent 24bef9c49e
commit 0bb9d882cc
2 changed files with 49 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ should be built for multiple devices.
* [pyusb](https://walac.github.io/pyusb/) for running the tests.
* [OpenOCD](http://openocd.org/) >= 0.9 for automated flashing of specific boards
* python3 for running the tests at the command line.
* unittest-xml-reporting, only if running in CI mode. XX
### Building the device firmware
There are Makefile.xxxxx files for all the currently tested targets.
@@ -61,7 +62,7 @@ OK (skipped=2)
To be even more brutal, run this in a shell loop.
```
$ while true; do python test_gadget0.py stm32f072disco; done
$ while true; do python test_gadget0.py -d stm32f072disco; done
```
You can also run individual tests, or individual sets of tests, see the [unittest documentation](https://docs.python.org/3/library/unittest.html) for more information.