summaryrefslogtreecommitdiff
path: root/test/dm/test-dm.sh
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-13 23:42:10 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:51 -0600
commitebcab48a031fc96d5d6292564a35cf772d4e539c (patch)
tree17c5d710dd35a4317af5617b9208737fb2e5d96e /test/dm/test-dm.sh
parent465bc03b0c5861864fa082c0f79fc9295a9e2cb9 (diff)
downloadu-boot-imx-ebcab48a031fc96d5d6292564a35cf772d4e539c.zip
u-boot-imx-ebcab48a031fc96d5d6292564a35cf772d4e539c.tar.gz
u-boot-imx-ebcab48a031fc96d5d6292564a35cf772d4e539c.tar.bz2
dm: spi: Add tests
These tests use SPI flash (and the sandbox emulation) to operate. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'test/dm/test-dm.sh')
-rwxr-xr-xtest/dm/test-dm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/test-dm.sh b/test/dm/test-dm.sh
index ef5aca5..bb99677 100755
--- a/test/dm/test-dm.sh
+++ b/test/dm/test-dm.sh
@@ -4,4 +4,6 @@ NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
make O=sandbox sandbox_config
make O=sandbox -s -j${NUM_CPUS}
+dd if=/dev/zero of=spi.bin bs=1M count=2
./sandbox/u-boot -d test/dm/test.dtb -c "dm test"
+rm spi.bin