mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 22:03:15 +00:00
e00cb2232b
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>
17 lines
473 B
Bash
Executable file
17 lines
473 B
Bash
Executable file
#!/bin/sh
|
|
|
|
die() {
|
|
echo $1
|
|
exit 1
|
|
}
|
|
|
|
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 || 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
|