Simon Glass | 2f52018 | 2017-11-12 21:52:10 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | run_test() { |
| 4 | $@ |
| 5 | [ $? -ne 0 ] && result=$((result+1)) |
Simon Glass | 2f52018 | 2017-11-12 21:52:10 -0700 | [diff] [blame] | 6 | } |
Simon Glass | 07f4ead | 2016-07-03 09:40:34 -0600 | [diff] [blame] | 7 | |
Simon Glass | 73a01d9 | 2017-11-26 20:25:55 -0700 | [diff] [blame] | 8 | result=0 |
| 9 | |
Simon Glass | 029ab15 | 2017-05-18 20:09:25 -0600 | [diff] [blame] | 10 | # Run all tests that the standard sandbox build can support |
Simon Glass | 2f52018 | 2017-11-12 21:52:10 -0700 | [diff] [blame] | 11 | run_test ./test/py/test.py --bd sandbox --build |
Simon Glass | 029ab15 | 2017-05-18 20:09:25 -0600 | [diff] [blame] | 12 | |
| 13 | # Run tests which require sandbox_spl |
Simon Glass | 2f52018 | 2017-11-12 21:52:10 -0700 | [diff] [blame] | 14 | run_test ./test/py/test.py --bd sandbox_spl --build -k \ |
| 15 | test/py/tests/test_ofplatdata.py |
Simon Glass | 029ab15 | 2017-05-18 20:09:25 -0600 | [diff] [blame] | 16 | |
| 17 | # Run tests for the flat DT version of sandbox |
| 18 | ./test/py/test.py --bd sandbox_flattree --build |
Simon Glass | 2f52018 | 2017-11-12 21:52:10 -0700 | [diff] [blame] | 19 | |
| 20 | if [ $result == 0 ]; then |
| 21 | echo "Tests passed!" |
| 22 | else |
| 23 | echo "Tests FAILED" |
| 24 | exit 1 |
| 25 | fi |