2017-11-13 04:52:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
run_test() {
|
|
|
|
$@
|
|
|
|
[ $? -ne 0 ] && result=$((result+1))
|
|
|
|
}
|
2016-07-03 15:40:34 +00:00
|
|
|
|
2017-11-27 03:25:55 +00:00
|
|
|
result=0
|
|
|
|
|
2017-05-19 02:09:25 +00:00
|
|
|
# Run all tests that the standard sandbox build can support
|
2017-11-13 04:52:10 +00:00
|
|
|
run_test ./test/py/test.py --bd sandbox --build
|
2017-05-19 02:09:25 +00:00
|
|
|
|
|
|
|
# Run tests which require sandbox_spl
|
2017-11-13 04:52:10 +00:00
|
|
|
run_test ./test/py/test.py --bd sandbox_spl --build -k \
|
|
|
|
test/py/tests/test_ofplatdata.py
|
2017-05-19 02:09:25 +00:00
|
|
|
|
|
|
|
# Run tests for the flat DT version of sandbox
|
|
|
|
./test/py/test.py --bd sandbox_flattree --build
|
2017-11-13 04:52:10 +00:00
|
|
|
|
2017-11-27 03:25:56 +00:00
|
|
|
PYTHONPATH=build-sandbox_spl/scripts/dtc/pylibfdt run_test \
|
|
|
|
./tools/binman/binman -t
|
2017-11-27 03:25:57 +00:00
|
|
|
run_test ./tools/patman/patman --test
|
2017-11-27 03:25:58 +00:00
|
|
|
run_test ./tools/buildman/buildman -t
|
2017-11-27 03:25:59 +00:00
|
|
|
PYTHONPATH=build-sandbox_spl/scripts/dtc/pylibfdt run_test ./tools/dtoc/dtoc -t
|
2017-11-27 03:25:56 +00:00
|
|
|
|
2017-11-13 04:52:10 +00:00
|
|
|
if [ $result == 0 ]; then
|
|
|
|
echo "Tests passed!"
|
|
|
|
else
|
|
|
|
echo "Tests FAILED"
|
|
|
|
exit 1
|
|
|
|
fi
|