2017-11-13 04:52:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
run_test() {
|
|
|
|
$@
|
|
|
|
[ $? -ne 0 ] && result=$((result+1))
|
|
|
|
echo "result $result"
|
|
|
|
}
|
2016-07-03 15:40:34 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
if [ $result == 0 ]; then
|
|
|
|
echo "Tests passed!"
|
|
|
|
else
|
|
|
|
echo "Tests FAILED"
|
|
|
|
exit 1
|
|
|
|
fi
|