]> git.ipfire.org Git - people/ms/u-boot.git/blame - test/run
test/run: Report and return failure
[people/ms/u-boot.git] / test / run
CommitLineData
2f52018c
SG
1#!/bin/bash
2
3run_test() {
4 $@
5 [ $? -ne 0 ] && result=$((result+1))
6 echo "result $result"
7}
07f4eadc 8
029ab15a 9# Run all tests that the standard sandbox build can support
2f52018c 10run_test ./test/py/test.py --bd sandbox --build
029ab15a
SG
11
12# Run tests which require sandbox_spl
2f52018c
SG
13run_test ./test/py/test.py --bd sandbox_spl --build -k \
14 test/py/tests/test_ofplatdata.py
029ab15a
SG
15
16# Run tests for the flat DT version of sandbox
17./test/py/test.py --bd sandbox_flattree --build
2f52018c
SG
18
19if [ $result == 0 ]; then
20 echo "Tests passed!"
21else
22 echo "Tests FAILED"
23 exit 1
24fi