]> git.ipfire.org Git - people/ms/u-boot.git/blame - test/run
test: Run patman tests
[people/ms/u-boot.git] / test / run
CommitLineData
2f52018c
SG
1#!/bin/bash
2
3run_test() {
4 $@
5 [ $? -ne 0 ] && result=$((result+1))
2f52018c 6}
07f4eadc 7
73a01d90
SG
8result=0
9
029ab15a 10# Run all tests that the standard sandbox build can support
2f52018c 11run_test ./test/py/test.py --bd sandbox --build
029ab15a
SG
12
13# Run tests which require sandbox_spl
2f52018c
SG
14run_test ./test/py/test.py --bd sandbox_spl --build -k \
15 test/py/tests/test_ofplatdata.py
029ab15a
SG
16
17# Run tests for the flat DT version of sandbox
18./test/py/test.py --bd sandbox_flattree --build
2f52018c 19
72d8172b
SG
20PYTHONPATH=build-sandbox_spl/scripts/dtc/pylibfdt run_test \
21 ./tools/binman/binman -t
adb5b616 22run_test ./tools/patman/patman --test
72d8172b 23
2f52018c
SG
24if [ $result == 0 ]; then
25 echo "Tests passed!"
26else
27 echo "Tests FAILED"
28 exit 1
29fi