blob: 8f72a1f7b294ad1809c67c9ef6b13f1be44a873f [file] [log] [blame]
Simon Glass2f520182017-11-12 21:52:10 -07001#!/bin/bash
2
3run_test() {
4 $@
5 [ $? -ne 0 ] && result=$((result+1))
Simon Glass2f520182017-11-12 21:52:10 -07006}
Simon Glass07f4ead2016-07-03 09:40:34 -06007
Simon Glass73a01d92017-11-26 20:25:55 -07008result=0
9
Simon Glass029ab152017-05-18 20:09:25 -060010# Run all tests that the standard sandbox build can support
Simon Glass2f520182017-11-12 21:52:10 -070011run_test ./test/py/test.py --bd sandbox --build
Simon Glass029ab152017-05-18 20:09:25 -060012
13# Run tests which require sandbox_spl
Simon Glass2f520182017-11-12 21:52:10 -070014run_test ./test/py/test.py --bd sandbox_spl --build -k \
15 test/py/tests/test_ofplatdata.py
Simon Glass029ab152017-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 Glass2f520182017-11-12 21:52:10 -070019
Simon Glass72d81722017-11-26 20:25:56 -070020PYTHONPATH=build-sandbox_spl/scripts/dtc/pylibfdt run_test \
21 ./tools/binman/binman -t
Simon Glassadb5b612017-11-26 20:25:57 -070022run_test ./tools/patman/patman --test
Simon Glass72d81722017-11-26 20:25:56 -070023
Simon Glass2f520182017-11-12 21:52:10 -070024if [ $result == 0 ]; then
25 echo "Tests passed!"
26else
27 echo "Tests FAILED"
28 exit 1
29fi