test/py: add DFU test
authorStephen Warren <swarren@nvidia.com>
Fri, 22 Jan 2016 19:30:14 +0000 (12:30 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 29 Jan 2016 04:01:23 +0000 (21:01 -0700)
commitf5d196d03e5f3529be8b86d350e507390dbee22f
tree2b0a464446f6d388b6a10360a1598cdc3a34acf9
parentd054f4c2cb56c49c04277cbc5be477c92baea25f
test/py: add DFU test

Add a test of DFU functionality to the Python test suite. The test
starts DFU in U-Boot, waits for USB device enumeration on the host,
executes dfu-util multiple times to test various transfer sizes, many
of which trigger USB driver edge cases, and finally aborts the DFU
command in U-Boot.

This test mirrors the functionality previously available via the shell
scripts in test/dfu, and hence those are removed too.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
test/dfu/README [deleted file]
test/dfu/dfu_gadget_test.sh [deleted file]
test/dfu/dfu_gadget_test_init.sh [deleted file]
test/py/tests/test_dfu.py [new file with mode: 0644]