Skip to content

Commit

Permalink
Cppcheck: also check pedal
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jul 4, 2019
1 parent f7bd2c2 commit fc8b9e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/misra/test_misra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit fc8b9e4

Please sign in to comment.