Skip to contentSkip to conversation

selftests: add test for USB over IP driver

PATCH In review Shuah Khan (Samsung OSG) 2 participants 3 messages May 31, 2018

Subsystems (3)
lore
Share & tools
lore

Shuah Khan (Samsung OSG)

author maintainer
#0 lore raw

PATCH 1/1 selftests: add test for USB over IP driver

Add test for USB over IP driver. This test runs several tests on a device specified in the -b <busid> argument and path to the usbip tools.

usbip_test.sh -b <busid> -p <usbip tools path>

e.g:
cd tools/testing selftests/drivers/usb/usbip
sudo ./usbip_test.sh -b 3-10.2 -p <yoursrctree>/tools/usb/usbip

This test should be run as root and user should build usbip tools before running the test.

The usbip test isn't included in the Kselftest run as it requires user to specify a device to run tests on.

Signed-off-by Shuah Khan (Samsung OSG) <shuah at kernel.org>
---
 MAINTAINERS                                        |   1 +
 .../selftests/drivers/usb/usbip/usbip_test.sh      | 198 +++++++++++++++++++++
 2 files changed, 199 insertions(+)
 create mode 100755 tools/testing/selftests/drivers/usb/usbip/usbip_test.sh
MAINTAINERS +1 -0
index ca4afd68530c..708b681a6fbd 100644
@@ -14661,6 +14661,7 @@ S:	Maintained
 F:	Documentation/usb/usbip_protocol.txt
 F:	drivers/usb/usbip/
 F:	tools/usb/usbip/
+F:	tools/testing/selftests/drivers/usb/usbip/
 
 USB PEGASUS DRIVER
 M:	Petko Manolov <petkan at nucleusys.com>
tools/testing/selftests/drivers/usb/usbip/usbip_test.sh new file +198 -0

198 lines not on this page · raw message

Signature · 6 lines
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Shuah Khan (Samsung OSG)

Add test for USB over IP driver. This test runs several tests on a device specified in the -b <busid> argument and path to the usbip tools.

usbip_test.sh -b <busid> -p <usbip tools path>

e.g:
cd tools/testing selftests/drivers/usb/usbip
sudo ./usbip_test.sh -b 3-10.2 -p <yoursrctree>/tools/usb/usbip

Quoted 7 lines

This test should be run as root and user should build usbip tools before running the test.

The usbip test isn't included in the Kselftest run as it requires user to specify a device to run tests on.

Signed-off-by Shuah Khan (Samsung OSG) <shuah at kernel.org>

If you want to take this through your tree, that's fine with me:

Acked-by Greg Kroah-Hartman <gregkh at linuxfoundation.org>

Otherwise I will be glad to queue it up in mine, just let me know what is easier for you.

Nice work, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

author maintainer
#2 lore raw
Quoted 18 lines · Greg KH
Quoted 9 lines · Shuah Khan (Samsung OSG)

Add test for USB over IP driver. This test runs several tests on a device specified in the -b <busid> argument and path to the usbip tools.

usbip_test.sh -b <busid> -p <usbip tools path>

e.g:
cd tools/testing selftests/drivers/usb/usbip
sudo ./usbip_test.sh -b 3-10.2 -p <yoursrctree>/tools/usb/usbip

Quoted 7 lines

This test should be run as root and user should build usbip tools before running the test.

The usbip test isn't included in the Kselftest run as it requires user to specify a device to run tests on.

Signed-off-by Shuah Khan (Samsung OSG) <shuah at kernel.org>
Quoted 8 lines

If you want to take this through your tree, that's fine with me:

Acked-by Greg Kroah-Hartman <gregkh at linuxfoundation.org>

Otherwise I will be glad to queue it up in mine, just let me know what is easier for you.

Nice work, thanks.

Thanks. Please take this through your tree sticking to the current flow of patches for this driver.

thanks,
-- Shuah
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html