Commit Graph

1013 Commits

Author SHA1 Message Date
Maxime Desroches 2fa1cf5eff
mutation tests: remove buggy mutation op 2024-10-02 21:27:40 -07:00
Maxime Desroches 47f8416942
mutation test: add more ops (#2059)
* log

* more
2024-10-02 21:19:17 -07:00
Radek fab8d0bb4a
CAN print improvement (#2052)
* Jungle spam can.

* Print all busses by default.  Prettier print.

* can_health printer

* colors on can error
2024-10-02 12:53:32 -07:00
Maxime Desroches f5e1900537
mutation tests: remove `cxx_assign_const` op (#2053)
* no 42

* last one
2024-10-01 19:05:39 -07:00
Maxime Desroches 08c95bf47b
mutation tests: activate all mutation ops (#2047)
* all

* clean

* cleaner

* WORKING

* test

* cleanup
2024-09-26 19:37:59 -07:00
Maxime Desroches b6644f7a35
revert libpanda with clang (#2044)
* revert

* adapt this
2024-09-26 12:35:45 -07:00
Maxime Desroches 78b49ab155
safety mutation tests (#2040)
* mutation

* clone

* origin

* get diff

* better example

* better

* fix docker

* work on push

* make test fail

* real change

* test all modes

* ignore

* better

* reco

* fix

* no libpanda on device

* curl

* nl

* nl again

* delete

* clean

* clean

* this

* add this back

* cleanup
2024-09-25 21:56:09 -07:00
Maxime Desroches fb67bda00e
compile libpanda with clang (#2041)
* clang

* report

* safety.h

* fix lines

* cleaner

* better

* remove this

* revert this

* fix

* tici build

* revert

* revert

* fix
2024-09-25 20:14:12 -07:00
Maxime Desroches afafb0ba46
test misra 8.7 and 8.4 (#2035)
check
2024-09-20 19:38:45 -07:00
Maxime Desroches 32eecd7211
misra8.4: board/*.h (#2026)
* main

* can_comms

* main_declarations->main_definitions

* rename this also

* can_definitions

* faults

* power_saving

* provision

* gitversion

* not included

* no include for now
2024-09-19 21:15:08 -07:00
Maxime Desroches ed831773ea
misra21.15 (#2030)
* cast

* remove suppression

* make it more explicit
2024-09-19 10:35:11 -07:00
Maxime Desroches ceb088ac4e
misra12.2 (#2028)
* 12.2

* remove supression

* new stm
2024-09-18 11:33:12 -07:00
dzid26 6f0d1efbd9 stricter misra config check - prevent quiet bail out 2024-09-05 21:49:30 -07:00
Adeeb Shihadeh 160ea08e8f
misra: bump to cppcheck 2.15.0 (#2008)
* misra: bump to latest cppcheck

* update checkers
2024-08-31 13:09:58 -07:00
Andrei Radulescu 0a0912234e
update bash scripts to #!/usr/bin/env bash (#1987)
* update bash shebang for better compatibility including macOS

* can't have anything after #bash
2024-08-26 17:25:15 -07:00
dzid26 2b94e4fef7
Enable CAN3 printer (#1991)
* panda has 3 can peripherals

* enable printing CAN3
2024-08-26 17:15:29 -07:00
Adeeb Shihadeh c4e75ee89c
remove cereal dependence (#2000)
* remove cereal

* rm more shit

* add back make

* python3

* python3

* fix that

* put that back

* rename

* fix that

* can't move it
2024-08-18 11:40:54 -07:00
Shane Smiskol 8c3bb0151e
deprecate busTime (#1989)
* deprecate busTime

* fix test_comms.py

* update opendbc

* way more than i thought

* and here

* oops
2024-07-30 21:20:48 -07:00
Hoang Bui f6375848ca
add `set_gas_pressed_prev()` helper (#1986)
add set_gas_pressed_prev helper
2024-07-17 20:49:10 -07:00
dzid26 4df996cfd7
Cppcheck checklist bugfix (#1969)
* Fix cppcheck checklist diff

* cppcheck already has exitcode=2
2024-06-04 10:24:51 -07:00
dzid26 b6b8144523
misra mutations test - git diff error fix (#1964)
fix misra mutations - don't run git diff in temp folder
2024-06-03 22:31:53 -07:00
dzid26 d401ba169c
Enable misra-c2012-1.2 (#1962)
* misra-c2012-1.2 - allow __typeof__ compiler extension

* explicit c11
2024-05-30 22:13:47 -07:00
dzid26 9fdbb178c4
Generate cppcheck checkers list (#1960)
* cppcheck checkers list / coverage

* Update tests/misra/test_misra.sh

* Update tests/misra/test_misra.sh

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-05-29 19:42:40 -07:00
dzid26 6ff6733ba3
Cppcheck 2.14 (#1951)
* enable cppcheck 2.14

* cppcheck: Uninitialized variable

* cppcheck: variableScope

* cppcheck: misra-c2012-21.16
both arguments to memcmp() should be of compatible (matching) essential types

* cppcheck: misra-c2012-11.6
Avoid casting between pointer to void and an arithmetic type.
Refactor bootloader address casting for easier understanding.

* cppecheck 2.14.1
- force cppecheck tag fetch
2024-05-27 21:21:13 -07:00
Adeeb Shihadeh 2b70e283c1
tres: lower SOM reset timeout (#1945)
* tres: lower SOM reset timeout

* update test
2024-05-03 14:03:54 -07:00
Jack Merrill d4a01f7555
Increase Subaru RPM limit (#1937)
* feat: increase Subaru RPM limit

* test: Update tests for Subaru RPM increase
2024-04-25 13:56:25 -07:00
Justin Newberry 698d17e021
fix inconsistent misra mutation tests (#1935)
* revert

* fix
2024-04-22 10:28:53 -07:00
Justin Newberry 4d60ae9c62
CI: fix misra mutation tests (#1934)
* fix that

* skip build, install first

* Revert "skip build, install first"

This reverts commit 01efdb77ce.

* prune
2024-04-18 17:59:33 -07:00
Adeeb Shihadeh 01c54d1199
enable misra-c2012-11.8 (#1916)
* fix up harness_config definition

* enable misra-c2012-11.8
2024-03-24 12:38:25 -07:00
Adeeb Shihadeh 418fca3583
enable misra-config checks (#1879)
* mostly done

* fix rest of misra-config

* do other two in next pr
2024-03-24 12:10:37 -07:00
Adeeb Shihadeh b08bc43a21
update cppcheck to 2.13.4 (#1915) 2024-03-23 18:23:44 -07:00
Adeeb Shihadeh dd82382d5f
instant boot (#1910)
no more boot time :P
2024-03-22 14:01:44 -07:00
Adeeb Shihadeh 091773f448
Adjust CAN bus orientation live with harness orientation (#1913)
* set orientation in one place

* no flip

* cleanup

* more explict on startup

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-03-22 14:00:13 -07:00
Adeeb Shihadeh b46a9eb2c9
CAN orientation HITL test (#1912)
test

Co-authored-by: Comma Device <device@comma.ai>
2024-03-22 13:32:31 -07:00
Adeeb Shihadeh 6b40f82bc4
harness HITL test refactor (#1911)
* harness HITL tests

* cleanup

* oops

* unused
2024-03-22 10:30:02 -07:00
Adeeb Shihadeh 8a845b973e
boot time test (#1909)
* test

* usb serial

* just test for now

* time

* close

* close after
2024-03-21 20:28:44 -07:00
Adeeb Shihadeh de061e4f73
remove rest of gmlan (#1908)
* remove rest of gmlan

* fix

* update struct

* update
2024-03-21 13:56:36 -07:00
Adeeb Shihadeh 567dbfe6d8
remove comma pedal (#1902) 2024-03-17 22:22:46 -07:00
Adeeb Shihadeh 15dac19827
fix bootkick test, no more datetime (#1901)
* fix bootkick test, no more datetime

* debug

* try that
2024-03-13 14:51:40 -07:00
Adeeb Shihadeh 895a7001c9
Rename stm32fx/ -> stm32f4/ (#1898)
* Rename stm32fx/ -> stm32f4/

* jungle too
2024-03-11 16:18:56 -07:00
Adeeb Shihadeh 6dfd4db4ab
remove rtc (#1897)
* remove rtc

* fix build

* rm taht

* revert that
2024-03-11 16:08:43 -07:00
Robbe Derks 41e9610ff8
Tesla Raven (#1886)
* raven uses a different steering angle sensor

* add raven flag

* raven test

* bump opendbc ref
2024-03-06 21:13:13 +01:00
Aryan 4303ae1387
enable misra-c2012-10.6 (#1811)
* misra-c2012-10.6

* fixed uninitialized data error

* revert false positive

* enable 10.6

* update install.sh

* cleanup

* bug fix

* better fix ?
2024-02-27 10:32:28 -08:00
Cameron Clough 0c7d5f11d7
use pyupgrade to update syntax (#1889) 2024-02-24 13:56:28 -08:00
Shane Smiskol 6aa4b55033
Ford: ignore 2nd speed checksum (#1887)
* ignore cs

* fix test

* fix coverage

* no dead code, remove todo

* typo
2024-02-23 19:08:12 -08:00
Jason Young cd11c7f9a4
VW PQ: Allow either HCA mode (#1885)
* write the test first, like a grownup

* pass the test!
2024-02-22 14:56:14 -08:00
Aryan b4442a7c93
enable misra-c2012-10.3 (#1852)
* enable misra-c2012-10.3

* fix that

* cleanup

* little more

* one more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-18 11:56:44 -08:00
Adeeb Shihadeh 546db7b73b set cppcheck platform 2024-02-18 11:43:25 -08:00
Adeeb Shihadeh 6eed036473
(almost) enable cppcheck unusedFunction (#1875)
* remove some unused

* more

* kinda works

* rest are false positives

* disable for now

* add back exhaustive
2024-02-17 14:16:15 -08:00
Adeeb Shihadeh 997b075349 misra: catch more cppcheck errors that don't change exit code 2024-02-17 12:53:28 -08:00