From e00cb2232b0e6c2f41f49f3535a7874067a60c3a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 25 Mar 2015 12:23:05 -0600 Subject: dm: usb: Add tests for the USB uclass This adds a simple test for probing and a functional test using the flash stick emulator, which tests a large chunk of the USB stack. Signed-off-by: Simon Glass Reviewed-by: Marek Vasut --- test/dm/test-dm.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/dm/test-dm.sh') diff --git a/test/dm/test-dm.sh b/test/dm/test-dm.sh index 8ebc39297cb..6158f6833f9 100755 --- a/test/dm/test-dm.sh +++ b/test/dm/test-dm.sh @@ -10,5 +10,8 @@ dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb make O=sandbox sandbox_config || die "Cannot configure U-Boot" make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot" dd if=/dev/zero of=spi.bin bs=1M count=2 +echo -n "this is a test" > testflash.bin +dd if=/dev/zero bs=1M count=4 >>testflash.bin ./sandbox/u-boot -d test/dm/test.dtb -c "dm test" rm spi.bin +rm testflash.bin -- cgit v1.2.3