blob: caee4f83f2c147fd5194659fc89ae97c0dc4d44e [file] [log] [blame]
Simon Glass2f520182017-11-12 21:52:10 -07001#!/bin/bash
2
3run_test() {
4 $@
5 [ $? -ne 0 ] && result=$((result+1))
6 echo "result $result"
7}
Simon Glass07f4ead2016-07-03 09:40:34 -06008
Simon Glass029ab152017-05-18 20:09:25 -06009# Run all tests that the standard sandbox build can support
Simon Glass2f520182017-11-12 21:52:10 -070010run_test ./test/py/test.py --bd sandbox --build
Simon Glass029ab152017-05-18 20:09:25 -060011
12# Run tests which require sandbox_spl
Simon Glass2f520182017-11-12 21:52:10 -070013run_test ./test/py/test.py --bd sandbox_spl --build -k \
14 test/py/tests/test_ofplatdata.py
Simon Glass029ab152017-05-18 20:09:25 -060015
16# Run tests for the flat DT version of sandbox
17./test/py/test.py --bd sandbox_flattree --build
Simon Glass2f520182017-11-12 21:52:10 -070018
19if [ $result == 0 ]; then
20 echo "Tests passed!"
21else
22 echo "Tests FAILED"
23 exit 1
24fi