]> git.ipfire.org Git - people/ms/u-boot.git/blame - test/dm/test-dm.sh
test: dm: Move the dm tests over to the ut command
[people/ms/u-boot.git] / test / dm / test-dm.sh
CommitLineData
2e7d35d2
SG
1#!/bin/sh
2
22cc0691
SG
3die() {
4 echo $1
5 exit 1
6}
7
2e7d35d2 8NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
22cc0691
SG
9make O=sandbox sandbox_config || die "Cannot configure U-Boot"
10make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot"
ebcab48a 11dd if=/dev/zero of=spi.bin bs=1M count=2
e00cb223
SG
12echo -n "this is a test" > testflash.bin
13dd if=/dev/zero bs=1M count=4 >>testflash.bin
40441e0b 14./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "ut dm"
ebcab48a 15rm spi.bin
e00cb223 16rm testflash.bin