opendbc/can/tests
Shane Smiskol b302f6934e
Dynamically parse DBCs (#602)
* initial commit, bring over from deanlee's PR based on newer commit

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* fix msb, lsb, size

* fix lsb

* clean up

* need this for CI

* add missing body checksum/counter

* get dir from BASEDIR first, then $HOME

* fix CI

* doesn't work

* just hardcode when compiling

* remove process_dbc

* add test for startup time

* test can parsing

* fix

* better

* bye bye dbc.py

* fix startswith

* add function to get dbc names for plotjuggler

* check DBC_FILE_PATH

* revert

* rename

* slightly more consistent at ~0.57 seconds

* make sure the tests make sense

* test ms per line

* use ctre

* Revert "use ctre"

This reverts commit 5e1a4440e465c901403a9717bbdef5b573e9838e.

* compile regex at import time

* add debug print and lower test time

* add comment

* 0.02 ms per line max

* better error messages

* only include what we need, and make it explicit

* check total time

check total time

* no global

* always a list

* not a c loop any more

* default to list

* use hex

* make static (only calculate path once)

* seems to be more consistent now (30-38 ms)

Co-authored-by: Dean Lee <deanlee3@gmail.com>
2022-05-12 17:59:33 -07:00
..
.gitignore Can migration (#199) 2019-11-22 21:46:33 -08:00
__init__.py Can migration (#199) 2019-11-22 21:46:33 -08:00
test_can_parser.py Dynamically parse DBCs (#602) 2022-05-12 17:59:33 -07:00
test_checksums.py Fix Honda checksum for extended CAN IDs. Add test function. (#585) 2022-04-06 21:33:57 -07:00
test_dbc_exceptions.py tests: remove CANParser default values (#550) 2022-02-03 00:24:45 -08:00
test_define.py move CANDefine to parser code 2019-12-03 09:13:37 -08:00
test_packer_parser.py CANParser: add flag for bus timeout (#586) 2022-04-12 22:34:27 -07:00