summaryrefslogtreecommitdiffstats
path: root/test/dm/test-dm.sh
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:23:05 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:30 -0600
commite00cb2232b0e6c2f41f49f3535a7874067a60c3a (patch)
treeb99b179bbb759b99a172201784b9086704ec1226 /test/dm/test-dm.sh
parent57f54d55bdf7a21034182cf213c1084df214d98c (diff)
downloadblackbird-obmc-uboot-e00cb2232b0e6c2f41f49f3535a7874067a60c3a.tar.gz
blackbird-obmc-uboot-e00cb2232b0e6c2f41f49f3535a7874067a60c3a.zip
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 <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'test/dm/test-dm.sh')
-rwxr-xr-xtest/dm/test-dm.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dm/test-dm.sh b/test/dm/test-dm.sh
index 8ebc39297c..6158f6833f 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
OpenPOWER on IntegriCloud