run 502 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. run_test() {
  3. $@
  4. [ $? -ne 0 ] && result=$((result+1))
  5. }
  6. result=0
  7. # Run all tests that the standard sandbox build can support
  8. run_test ./test/py/test.py --bd sandbox --build
  9. # Run tests which require sandbox_spl
  10. run_test ./test/py/test.py --bd sandbox_spl --build -k \
  11. test/py/tests/test_ofplatdata.py
  12. # Run tests for the flat DT version of sandbox
  13. ./test/py/test.py --bd sandbox_flattree --build
  14. if [ $result == 0 ]; then
  15. echo "Tests passed!"
  16. else
  17. echo "Tests FAILED"
  18. exit 1
  19. fi