projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.denx.de/u-boot-samsung
[oweals/u-boot.git]
/
test
/
dm
/
test-dm.sh
diff --git
a/test/dm/test-dm.sh
b/test/dm/test-dm.sh
index bb99677ece9462604e4362fc514030291e30862d..5c47ffd5d23c74321c92d04c00b16120f4339165 100755
(executable)
--- a/
test/dm/test-dm.sh
+++ b/
test/dm/test-dm.sh
@@
-1,9
+1,16
@@
#!/bin/sh
#!/bin/sh
+die() {
+ echo $1
+ exit 1
+}
+
NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
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}
+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
dd if=/dev/zero of=spi.bin bs=1M count=2
-./sandbox/u-boot -d test/dm/test.dtb -c "dm test"
+echo -n "this is a test" > testflash.bin
+dd if=/dev/zero bs=1M count=4 >>testflash.bin
+./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "dm test"
rm spi.bin
rm spi.bin
+rm testflash.bin