* [PATCH/RFC 0/5] usb:tools: usb unittests framework
@ 2011-06-16 13:28 Tatyana Brokhman
[not found] ` <1308230936-23897-1-git-send-email-tlinder-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Tatyana Brokhman @ 2011-06-16 13:28 UTC (permalink / raw)
To: greg-U8xfFu+wG4EAvxtiuMwx3w
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, balbi-l0cyMroinI0,
ablay-sgV2jX0FEOL9JmXXK+q4OQ, Tatyana Brokhman
This patch seriese introduces a user-space framework for developing unit tests in
order to test the USB functionality of a connected device.
These tests communicate with the USB device via libusb interface.
They are meant to run with the g_zero and dummy_hcd module since several
proprietary control messages were added to those modules. But a smaller
subset of the tests can be run on any USB device and on real UDCs.
Tatyana Brokhman (5):
usb unittests framework
usb:dummy_hcd: connect/disconnect test support
usb:g_zero: bulk in/out unittest support
usb: dummy_hcd: Disable single-request fifo in dummy hcd
usb: Add support for streams alloc/dealloc to devio.c
drivers/usb/core/devio.c | 128 ++-
drivers/usb/gadget/dummy_hcd.c | 74 +-
drivers/usb/gadget/f_sourcesink.c | 12 +
include/linux/usbdevice_fs.h | 5 +
.../usb/unittests/Documentation/autoconfig_readme | 20 +
.../usb/unittests/Documentation/create-gadget-img | 47 +
tools/usb/unittests/Documentation/unittests-info | 526 +++++
tools/usb/unittests/Documentation/unittests-setup | 127 ++
.../0001-Add-support-to-USB3-descriptors.patch | 420 ++++
...2-Add-support-for-libusb_get_device_speed.patch | 172 ++
.../libusb_patches/0003-Add-UAS-defines.patch | 56 +
.../0004-libusb-Add-stream-support-to-LIBUSB.patch | 314 +++
tools/usb/unittests/make/Makefile | 132 ++
tools/usb/unittests/make/autoconfig.sh | 118 ++
tools/usb/unittests/usb/UASP_CMD_tests.cc | 2140 ++++++++++++++++++++
tools/usb/unittests/usb/UASP_TM_tests.cc | 1207 +++++++++++
tools/usb/unittests/usb/UASP_tests.h | 434 ++++
tools/usb/unittests/usb/composite_tests.cc | 1645 +++++++++++++++
tools/usb/unittests/usb/composite_tests.h | 293 +++
tools/usb/unittests/usb/g_serial_tests.cc | 198 ++
tools/usb/unittests/usb/g_serial_tests.h | 68 +
tools/usb/unittests/usb/hs_expected_desc.h | 164 ++
tools/usb/unittests/usb/libusb_utils.cc | 358 ++++
tools/usb/unittests/usb/libusb_utils.h | 149 ++
tools/usb/unittests/usb/ss_expected_desc.h | 291 +++
tools/usb/unittests/usb/streams_tests.cc | 243 +++
tools/usb/unittests/usb/streams_tests.h | 51 +
tools/usb/unittests/usb/usb_devel_mode.cc | 185 ++
tools/usb/unittests/usb/usb_devel_mode.h | 50 +
tools/usb/unittests/usb/usb_tests.cc | 651 ++++++
tools/usb/unittests/usb/usb_tests.h | 146 ++
tools/usb/unittests/usb/usb_tests_main.cc | 83 +
tools/usb/unittests/usb/ut_config.h | 89 +
33 files changed, 10570 insertions(+), 26 deletions(-)
create mode 100644 tools/usb/unittests/Documentation/autoconfig_readme
create mode 100644 tools/usb/unittests/Documentation/create-gadget-img
create mode 100644 tools/usb/unittests/Documentation/unittests-info
create mode 100644 tools/usb/unittests/Documentation/unittests-setup
create mode 100644 tools/usb/unittests/libusb_patches/0001-Add-support-to-USB3-descriptors.patch
create mode 100644 tools/usb/unittests/libusb_patches/0002-Add-support-for-libusb_get_device_speed.patch
create mode 100644 tools/usb/unittests/libusb_patches/0003-Add-UAS-defines.patch
create mode 100644 tools/usb/unittests/libusb_patches/0004-libusb-Add-stream-support-to-LIBUSB.patch
create mode 100644 tools/usb/unittests/make/Makefile
create mode 100644 tools/usb/unittests/make/autoconfig.sh
create mode 100644 tools/usb/unittests/usb/UASP_CMD_tests.cc
create mode 100644 tools/usb/unittests/usb/UASP_TM_tests.cc
create mode 100644 tools/usb/unittests/usb/UASP_tests.h
create mode 100644 tools/usb/unittests/usb/composite_tests.cc
create mode 100644 tools/usb/unittests/usb/composite_tests.h
create mode 100644 tools/usb/unittests/usb/g_serial_tests.cc
create mode 100644 tools/usb/unittests/usb/g_serial_tests.h
create mode 100644 tools/usb/unittests/usb/hs_expected_desc.h
create mode 100644 tools/usb/unittests/usb/libusb_utils.cc
create mode 100644 tools/usb/unittests/usb/libusb_utils.h
create mode 100644 tools/usb/unittests/usb/ss_expected_desc.h
create mode 100644 tools/usb/unittests/usb/streams_tests.cc
create mode 100644 tools/usb/unittests/usb/streams_tests.h
create mode 100644 tools/usb/unittests/usb/usb_devel_mode.cc
create mode 100644 tools/usb/unittests/usb/usb_devel_mode.h
create mode 100644 tools/usb/unittests/usb/usb_tests.cc
create mode 100644 tools/usb/unittests/usb/usb_tests.h
create mode 100644 tools/usb/unittests/usb/usb_tests_main.cc
create mode 100644 tools/usb/unittests/usb/ut_config.h
--
1.7.3.3
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH/RFC 0/5] usb:tools: usb unittests framework
[not found] ` <1308230936-23897-1-git-send-email-tlinder-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
@ 2011-06-16 15:03 ` Sergei Shtylyov
2011-06-16 19:51 ` Tanya Brokhman
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2011-06-16 15:03 UTC (permalink / raw)
To: Tatyana Brokhman
Cc: greg-U8xfFu+wG4EAvxtiuMwx3w, linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, balbi-l0cyMroinI0,
ablay-sgV2jX0FEOL9JmXXK+q4OQ
Hello.
Tatyana Brokhman wrote:
> This patch seriese introduces a user-space framework for developing unit tests in
> order to test the USB functionality of a connected device.
> These tests communicate with the USB device via libusb interface.
> They are meant to run with the g_zero and dummy_hcd module since several
> proprietary control messages were added to those modules. But a smaller
> subset of the tests can be run on any USB device and on real UDCs.
> Tatyana Brokhman (5):
> usb unittests framework
This patch didn't reach linux-usb, maybe due to its size.
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH/RFC 0/5] usb:tools: usb unittests framework
2011-06-16 15:03 ` Sergei Shtylyov
@ 2011-06-16 19:51 ` Tanya Brokhman
0 siblings, 0 replies; 3+ messages in thread
From: Tanya Brokhman @ 2011-06-16 19:51 UTC (permalink / raw)
To: 'Sergei Shtylyov'; +Cc: greg, linux-usb, linux-arm-msm, balbi, ablay
> Tatyana Brokhman wrote:
>
> > This patch seriese introduces a user-space framework for developing
> unit tests in
> > order to test the USB functionality of a connected device.
> > These tests communicate with the USB device via libusb interface.
> > They are meant to run with the g_zero and dummy_hcd module since
> several
> > proprietary control messages were added to those modules. But a
> smaller
> > subset of the tests can be run on any USB device and on real UDCs.
>
> > Tatyana Brokhman (5):
> > usb unittests framework
>
> This patch didn't reach linux-usb, maybe due to its size.
>
> WBR, Sergei
Hmm... I wasn't aware there was a size limitation... I'll try to split it up
and resend.
Thanks,
Tanya Brokhman
---
Sent by an consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-16 19:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-16 13:28 [PATCH/RFC 0/5] usb:tools: usb unittests framework Tatyana Brokhman
[not found] ` <1308230936-23897-1-git-send-email-tlinder-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2011-06-16 15:03 ` Sergei Shtylyov
2011-06-16 19:51 ` Tanya Brokhman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.