# @name USB Serial Enumeration Test
# @desc Use lsusb -t to determine if usb-serial device is enumerated as ttyUSB*. Needs usb2serial adapter to be connected to usbhost port
# @requires usb/host
# @setup_requires usbhostserial


USBHOST_S_FUNC_SERIAL_0001 source 'common.sh' ; do_cmd install_modules.sh 'usb' ; serial_enum=`ls /sys/class/tty/ | grep ttyUSB`; if [[ -z "$serial_enum" ]] ;then die "Failed enumeration of usb-serial device"; fi
