From fc8b9e49bd80317add54b449758716745e541260 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Thu, 4 Jul 2019 02:58:17 -0700 Subject: [PATCH] Cppcheck: also check pedal --- tests/misra/test_misra.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/misra/test_misra.sh b/tests/misra/test_misra.sh index 835f4ebcfd23df..c7f6799ff5183d 100755 --- a/tests/misra/test_misra.sh +++ b/tests/misra/test_misra.sh @@ -7,7 +7,7 @@ git checkout 44d6066c6fad32e2b0332b3f2b24bd340febaef8 make -j4 cd ../../../ -# whole panda code +# panda code tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/main.c 2>/tmp/misra/cppcheck_output.txt || true python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/misra_output.txt || true @@ -22,3 +22,7 @@ then cat /tmp/misra/cppcheck_safety_output.txt exit 1 fi + +# pedal code +tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true +python tests/misra/cppcheck/addons/misra.py board/pedal/main.c.dump 2>/tmp/misra/misra_pedal_output.txt || true