usb: Update the test to cover reading and writing
authorSimon Glass <sjg@chromium.org>
Fri, 21 Oct 2022 00:22:55 +0000 (18:22 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2022 15:02:44 +0000 (11:02 -0400)
commit2ff3db3a1c5ef128a4f33c22d7be8ee37fca3613
treeb039cad266e4cb9f32200eadbaebb5f6c484e514
parent606b926f9d76eaab11be2d95cfd7734644e1627c
usb: Update the test to cover reading and writing

Add test coverage for blk_write() as well.

The blk_erase() is not tested for now as the USB stor interface does not
support erase.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/scsi/scsi_emul.c
drivers/usb/emul/sandbox_flash.c
include/scsi.h
include/scsi_emul.h
test/dm/usb.c