Commit Graph

75 Commits

Author SHA1 Message Date
Karl Palsson a9608c524f tests: stm32f1: use new clock struct routines 2020-11-28 22:13:25 +00:00
Karl Palsson fd3c950b29 tests: gadget0: switch to Linker script generation
We're about to drop the very limited set of fixed linker scripts we
have, so convert all the in tree code to linker script generation
2020-11-28 22:13:25 +00:00
Karl Palsson 946c1cbc48 jenkins: try no parallelism
clutching at straws to try and eliminate incomprehensible build failures
:(
2020-10-11 13:02:43 +00:00
Karl Palsson 5617ed4664 jenkins: reduce parallel, add verbose
V=s is openwrt, V=1 is here.
try and avoid weird problems with missing files like,
make[1]: *** No rule to make target '../../../include/libopencm3/stm32/g4/pwr.h', needed by 'rcc_common_all.o'.  Stop.

by turning down the paralellism a bit, it's a quad core arm, but it's
stil a little small machine.
2020-09-27 13:47:08 +00:00
Karl Palsson 10b63667b5 jenkins: publish github status always first
need a result first, before we (potentially fail) to publish tests
2020-09-27 13:44:38 +00:00
Karl Palsson b8461da137 jenkins: attempt to mark commit status only within libopencm3
trying to get pr checks tto flag properly
2020-09-27 13:34:37 +00:00
Karl Palsson 09bf6e9ebc jenkins: fix typo 2020-09-26 21:48:51 +00:00
Karl Palsson 11d2408289 jenkins: try and set commit status on correct commit
Logs on jenkins showed it trying to set the commit state on the wrong
commits, the master of upstream, instead of the head of the PR
2020-09-26 21:41:12 +00:00
Karl Palsson 52dc1ff6d7 Update jenkinsfile after testing by edits live on jenkins 2020-09-10 21:19:55 +00:00
Karl Palsson 04dd4c6fc8 try out other ways.. 2020-09-10 21:19:55 +00:00
Karl Palsson 3416f55ee9 jenkins hatr 2020-09-10 21:19:55 +00:00
Karl Palsson d220e1daf6 fix syntax in jenkinsfile 2020-09-10 21:19:55 +00:00
Karl Palsson efc4f08267 tests: gadget0-f3: allow custom local stlink 2020-09-10 21:19:55 +00:00
Karl Palsson 96953eeab3 draft jenkins file 2020-09-10 21:19:55 +00:00
Karl Palsson bcd162c49a trya nd make directories per 2020-09-10 21:19:55 +00:00
Karl Palsson 5275a1761f hacky hacks 2020-09-10 21:19:55 +00:00
Karl Palsson 0bb9d882cc tests: gadget-zero: add xunit reporting
This is intended to help produce CI reporting on PRs and regression
testing.
2020-09-10 21:19:55 +00:00
Brian Cooke d44ffe8c0b tests/gadget0: avoid floating point division
Reviewed-by: Karl Palsson <karlp@tweak.net.au> (Changed from cast to
literal int, more inline with efm32 and clearer intent)
2020-01-04 23:49:16 +00:00
Karl Palsson 6894965408 gadget0: f429: update to newest rcc api 2019-07-02 09:34:28 +00:00
Karl Palsson 43b6f333d2 gadget0: f4: update to newest rcc api 2019-06-28 21:45:14 +00:00
Karl Palsson 1519b435ca gadget0: f4: PA9 is not an AF.
It has never been an AF, it's always been an error to set this pin to
AF.
2019-06-28 21:45:14 +00:00
Karl Palsson 7c24f0f837 gadget0: allow parallel submake
allows "make -j10" work properly
2019-06-28 21:45:14 +00:00
Karl Palsson e04f10e591 tests: gadget0: stm32f3: use library clock setups
F3 rcc configs were overhauled and we can now use standard init code
instead of specifying our own custom clock config.
2018-08-29 10:17:55 +00:00
Karl Palsson b7ec3f0b11 tests: usb gadget0: ti: use dummy delay handlers
Not full test coverage, obviously, but at least let it compile until the
delay methods have been implemented.
2018-08-27 15:51:17 +00:00
Karl Palsson 4b3dda2968 tests: usb-gadget0: gitignore generated linker scripts 2018-08-27 15:11:32 +00:00
Karl Palsson 8cf3a20bff tests: usb gadget0: add ti lm4f120xl board
This has failing tests, and doesn't implement (yet) the delay routines,
so it won't even compile without disabling that functionality in the
core gadget0 code.  However, it passes most tests, and it demonstrates
that the changes made to the setup handling earlier haven't broken USB
on this platform.
2018-08-27 15:11:32 +00:00
Karl Palsson 42e43515c6 usb gadget0: ctrl write/read loopback tests
This is based on linux's gadget0 intel loopback tests, and also github
pr: https://github.com/libopencm3/libopencm3/pull/592

Note that this captures the currently broken control loopback issues on
dwc_otg devices.

See https://github.com/libopencm3/libopencm3/issues/873 and all linked
issues.

Current status is passing on f3, f0, and failing on f4.
2018-08-27 15:11:32 +00:00
Karl Palsson 144911a25b stm32: usb gadget0: implement loopback
The loopback functionality was never implemented, not for regular bulk
endpoints.  By adding it, and adding pairs of endpoints, we can easily
catch buffer management problems.  These tests currently fail on
st_usbfs devices.

This did require renumbering the endpoints, as dwc_otg_fs only offers
three endpoints in each direction, and they can't be arbitrary numbers,
unlike on st_usbfs.

See https://github.com/libopencm3/libopencm3/pull/880 and related tickets.
2018-08-17 00:16:13 +00:00
Karl Palsson d465291f45 tests: use the new auto depends on library
Provided in ea5d3cb7 genlink: provide LIBDEPS for libopencm3 itself
2018-08-17 00:15:01 +00:00
Karl Palsson 72e1ffdc72 usb-gadget0: stm32f3: drop debug, be more consistent
Don't spew loop prints, be more like all the other targets.
2018-07-29 20:31:17 +00:00
Karl Palsson 64e26832c7 tests: makefiles need to handle linker script generators too
Without this you get errors about not finding the linker script (because
it will be generated) and linker errors due to bare -l flags.
2018-07-03 22:23:00 +00:00
Karl Palsson ea6a5a7efd tests: rules.mk: avoid non-posix brace expansion
Brace expansion is not posix defined, even if it's widely available.
Avoid it's use for portability.
2018-06-08 10:02:42 +00:00
Karl Palsson dc64929b78 tests: gadget0: add stm32f3-disco
Another readily available board with a user USB port, and this one lets
you test the st usbfs peripheral on a device with trace facilities.
2018-05-01 22:23:47 +00:00
Karl Palsson b25a1ae0eb gadget0: work around "ValueError: The device has no langid"
pyusb quirk.
2018-05-01 22:23:47 +00:00
Karl Palsson 0a07355520 gadget0: stm32l1: target the "hw1" test board explicitly
There's still no commonly available l1 with usb from ST, so target our
own developed test host board instead of one developer's private board.
2018-04-14 18:40:54 +00:00
Karl Palsson cbef4a15e4 tests: gadget0: use proper usb enums 2018-03-02 22:42:05 +00:00
Sebastian Holzapfel d79674db09 tests: gadget0: efm32hg: add gadget0 test for efm32hg 2018-03-02 22:42:05 +00:00
Karl Palsson 5cb852efde travis: build gadget-zero tests as well
This helps catch some perhaps unintended api changes
2018-03-02 22:42:04 +00:00
Karl Palsson f71798b360 tests: gadget0: stm32l1: fix wait state declaration
Fixes: ec1d2855b stm32l1: rcc: use better naming for flash wait states
2018-02-24 12:46:08 +00:00
Karl Palsson 8f892a8e81 tests: gadget0: include sample udev rules and document 2017-10-02 21:46:38 +00:00
Amitesh Singh 821f4a49ea tests: gadget0: stm32f1 hack should be consistent
D+ is PA12 not PA11.  The reason this worked before, is because the line
before made PA12 output, and without setting the GPIO_ODR register
_before_ hand, this meant as soon as it was switched to output, it
received the reset value of GPIO_ODR for PA12, ie, 0.  (Effectively
doing a "free" gpio_clear(GPIOA, GPIO12)

Because GPIO11 wasn't configured to be an output, the confusing
gpio_clear(GPIOA, GPIO11) was simply configuring the pullup/down value
of the input, which was still ignored, as it was (out of reset) in input
floating mode.

Reviewed-by: Karl Palsson <karlp@tweak.net.au>
2017-09-01 21:55:32 +00:00
Mike Naberezny 6cfbc5ac6a Remove unused Python variables 2017-06-24 12:37:27 +00:00
Mike Naberezny 860d10940b Remove unused Python imports 2017-06-23 14:42:59 +00:00
Karl Palsson d97c1b0435 tests: gadget0: delay between calls to trigger races
Attempt to be more brutal by delaying more often, instead of always
promptly servicing the usb stack.

This is implemented via using timer6 to do a known number of
microseconds busy delay, and so only works on platforms that have
reached at least core timer functionality, and provide the
rcc_apb1_frequency variable.

NOTE! This will _fail_ on devices using the st_usbfs drivers at present,
but the code _should_ work, and the tests land to verify that the
library fix, fixes the problem. (see subsequent commit)
2017-06-08 23:01:45 +00:00
Karl Palsson e652121931 tests: gadget0: stm32l0: use new clock helpers.
Doesn't actually change the test results, but gets more coverage from
the same test case.
2017-06-08 23:01:45 +00:00
Karl Palsson f594ddb395 tests: gadget-zero: run against all attached targets
Less command line arguments, more automatic "do what I mean"
2017-06-08 23:01:45 +00:00
Karl Palsson a0a7f77d4c tests: connect to existing openocd if running
Connect to an existing and pass the correct path name.
2017-05-06 12:50:49 +00:00
Karl Palsson 16f3042fa8 tests: gadget0: allow specifying DUT on CLI
Easier than editing the file each time.
2017-03-30 21:48:07 +00:00
Jochen Hoenicke 56bb7c295a tests: gadget0: clean-up
Drop unnecessary ; in python
2017-03-30 21:48:07 +00:00
Jochen Hoenicke afb66508a4 tests: gadget0: remove magic constants 2017-03-30 21:48:07 +00:00