blob: 56160977a3f0c56a3e289b36a9d870acc9b8b4e2 [file] [log] [blame]
Simon Glass93c62052017-11-12 21:52:10 -07001#!/bin/bash
2
3run_test() {
4 $@
5 [ $? -ne 0 ] && result=$((result+1))
Simon Glass93c62052017-11-12 21:52:10 -07006}
Simon Glass8ab6cc32016-07-03 09:40:34 -06007
Simon Glass2c0f8152017-11-26 20:25:55 -07008result=0
9
Simon Glasse3c13272017-05-18 20:09:25 -060010# Run all tests that the standard sandbox build can support
Simon Glass93c62052017-11-12 21:52:10 -070011run_test ./test/py/test.py --bd sandbox --build
Simon Glasse3c13272017-05-18 20:09:25 -060012
13# Run tests which require sandbox_spl
Simon Glass93c62052017-11-12 21:52:10 -070014run_test ./test/py/test.py --bd sandbox_spl --build -k \
15 test/py/tests/test_ofplatdata.py
Simon Glasse3c13272017-05-18 20:09:25 -060016
17# Run tests for the flat DT version of sandbox
18./test/py/test.py --bd sandbox_flattree --build
Simon Glass93c62052017-11-12 21:52:10 -070019
20if [ $result == 0 ]; then
21 echo "Tests passed!"
22else
23 echo "Tests FAILED"
24 exit 1
25fi