mirror of
https://github.com/infiniteCable2/opendbc.git
synced 2026-02-18 21:13:51 +08:00
* move safety tests * move libsafety * move safety * rename imports * copy over needed (minimalized) board and driver code * dont test safety here * add new job for safety tests fix * try fix * ubsan * ? ? * missing cffi * should be final fix * mac fix * no mac * use setup script * no cd * this is the correct way to do it * add misra * misra fixes * run * setup misra * add missing files * is this used? * add that * Revert "is this used?" This reverts commit 2f34762dfa65821e1ee398675bf62d1a256ebec8. * need this * misra mutation test * fix * no race conditions * test * cache cppcheck fix * setup * good timeouts * mutation test * fix * no * Revert "no" This reverts commit 39e10a045a4a5411a64de791ae463461f8a5f37b. * already tested * move Safety Model readme section to opendbc * fix * fix * disable mutation tests for merge * namespace * test no cache * 1m 1m
24 lines
445 B
Bash
Executable File
24 lines
445 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
source ./setup.sh
|
|
|
|
# *** build ***
|
|
scons -j8
|
|
|
|
# *** lint ***
|
|
# TODO: pre-commit is slow; replace it with openpilot's "op lint"
|
|
#pre-commit run --all-files
|
|
ruff check .
|
|
|
|
# *** test ***
|
|
pytest -n8 --ignore opendbc/safety
|
|
|
|
# *** all done ***
|
|
GREEN='\033[0;32m'
|
|
NC='\033[0m'
|
|
printf "\n${GREEN}All good!${NC} Finished build, lint, and test in ${SECONDS}s\n"
|