Files
sunnypilot/run_docker_tests.sh
Adeeb Shihadeh 3338bd284f fix run_docker_tests.sh
old-commit-hash: 04047d835f
2020-05-20 00:00:13 -07:00

24 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
set -e
SETUP="cd /tmp/openpilot && "
BUILD="cd /tmp/openpilot && scons -c && scons -j$(nproc) && "
RUN="docker run --shm-size 1G --rm tmppilot /bin/bash -c"
docker build -t tmppilot -f Dockerfile.openpilot .
$RUN "$SETUP cd /tmp/openpilot/selfdrive/test/ && ./test_fingerprints.py"
$RUN "$SETUP ./flake8_openpilot.sh"
$RUN "$SETUP ./pylint_openpilot.sh"
$RUN "$BUILD python -m unittest discover common && \
python -m unittest discover opendbc/can && \
python -m unittest discover selfdrive/boardd && \
python -m unittest discover selfdrive/controls && \
python -m unittest discover selfdrive/loggerd && \
python -m unittest discover selfdrive/car && \
python -m unittest discover selfdrive/locationd && \
python -m unittest discover selfdrive/athena"
$RUN "$BUILD cd /tmp/openpilot/selfdrive/test/longitudinal_maneuvers && OPTEST=1 ./test_longitudinal.py"
$RUN "$BUILD cd /tmp/openpilot/selfdrive/test/process_replay/ && ./test_processes.py"
$RUN "$BUILD mkdir -p /data/params && cd /tmp/openpilot/selfdrive/test/ && ./test_car_models.py"