Skip to content

Commit 4be8582

Browse files
committed
Update cppcheck commit and pass predefined params to avoid impossible combinations of configs
1 parent f45dd04 commit 4be8582

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/misra/test_misra.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
git clone https://github.com/danmar/cppcheck.git || true
44
cd cppcheck
55
git fetch
6-
git checkout 44d6066c6fad32e2b0332b3f2b24bd340febaef8
6+
git checkout 862c4ef87b109ae86c2d5f12769b7c8d199f35c5
77
make -j4
88
cd ../../../
99

1010
# panda code
11-
tests/misra/cppcheck/cppcheck -DCAN3 -DUID_BASE --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr --force board/main.c 2>/tmp/misra/cppcheck_output.txt || true
11+
tests/misra/cppcheck/cppcheck -DPANDA -UPEDAL -DCAN3 -DUID_BASE --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr --force board/main.c 2>/tmp/misra/cppcheck_output.txt || true
1212
python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/misra_output.txt || true
1313

1414
# violations in safety files
@@ -24,5 +24,5 @@ then
2424
fi
2525

2626
# pedal code
27-
tests/misra/cppcheck/cppcheck -UCAN3 --suppressions-list=tests/misra/suppressions.txt -I board/ --dump --enable=all --inline-suppr --force board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true
27+
tests/misra/cppcheck/cppcheck -UPANDA -DPEDAL -UCAN3 --suppressions-list=tests/misra/suppressions.txt -I board/ --dump --enable=all --inline-suppr --force board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true
2828
python tests/misra/cppcheck/addons/misra.py board/pedal/main.c.dump 2>/tmp/misra/misra_pedal_output.txt || true

0 commit comments

Comments
 (0)