2016-12-12 17:47:46 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
docker build -t tmppilot -f Dockerfile.openpilot .
|
2017-09-30 03:07:27 -07:00
|
|
|
|
2019-05-16 13:20:29 -07:00
|
|
|
docker run --rm \
|
|
|
|
|
tmppilot /bin/sh -c 'cd /tmp/openpilot/selfdrive/test/ && ./test_fingerprints.py'
|
|
|
|
|
docker run --rm \
|
|
|
|
|
tmppilot /bin/sh -c 'cd /tmp/openpilot/ && pyflakes $(find . -iname "*.py" | grep -vi "^\./pyextra.*" | grep -vi "^\./panda")'
|
|
|
|
|
docker run --rm \
|
|
|
|
|
tmppilot /bin/sh -c 'cd /tmp/openpilot/ && pylint $(find . -iname "*.py" | grep -vi "^\./pyextra.*" | grep -vi "^\./panda"); exit $(($? & 3))'
|
2016-12-12 17:47:46 -08:00
|
|
|
docker run --rm \
|
2017-09-30 03:07:27 -07:00
|
|
|
-v "$(pwd)"/selfdrive/test/tests/plant/out:/tmp/openpilot/selfdrive/test/tests/plant/out \
|
|
|
|
|
tmppilot /bin/sh -c 'cd /tmp/openpilot/selfdrive/test/tests/plant && OPTEST=1 ./test_longitudinal.py'
|