Skip to content
Snippets Groups Projects
Commit 22cc0691 authored by Simon Glass's avatar Simon Glass
Browse files

dm: Don't run tests if U-Boot cannot be built


There is no point in running the tests if U-Boot cannot be built. Abort in
this case.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 25ab4b03
No related branches found
No related tags found
No related merge requests found
#!/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 dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
make O=sandbox sandbox_config make O=sandbox sandbox_config || die "Cannot configure U-Boot"
make O=sandbox -s -j${NUM_CPUS} 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" ./sandbox/u-boot -d test/dm/test.dtb -c "dm test"
rm spi.bin rm spi.bin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment