diff options
| author | Tom Rini <[email protected]> | 2017-11-23 22:48:35 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-11-23 22:48:35 -0500 |
| commit | bb7ab1ccfec9aa4e2df3e8eb49ca85f6c0c65560 (patch) | |
| tree | 7cf3d11a538ce834689ed3749db66b2f99543443 /test/run | |
| parent | d9d76023ea0d567b0630e85d1bef67b5b1a788d3 (diff) | |
| parent | 9677faa34ee81c7abb4c08b0dc4ce4aace5473fc (diff) | |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'test/run')
| -rwxr-xr-x | test/run | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -1,10 +1,24 @@ -#!/bin/sh +#!/bin/bash + +run_test() { + $@ + [ $? -ne 0 ] && result=$((result+1)) + echo "result $result" +} # Run all tests that the standard sandbox build can support -./test/py/test.py --bd sandbox --build +run_test ./test/py/test.py --bd sandbox --build # Run tests which require sandbox_spl -./test/py/test.py --bd sandbox_spl --build -k test/py/tests/test_ofplatdata.py +run_test ./test/py/test.py --bd sandbox_spl --build -k \ + test/py/tests/test_ofplatdata.py # Run tests for the flat DT version of sandbox ./test/py/test.py --bd sandbox_flattree --build + +if [ $result == 0 ]; then + echo "Tests passed!" +else + echo "Tests FAILED" + exit 1 +fi |
