More complete Misra check on safety code (better than running cppcheck on sfaety.h only, with broken dependencies)
@@ -16,6 +16,6 @@ if [ "$INPUT1" != "safety-only" ]; then
python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/misra_output.txt || true
fi
-# just safety
-tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/safety.h 2>/tmp/misra/cppcheck_safety_output.txt || true
-python tests/misra/cppcheck/addons/misra.py board/safety.h.dump 2>/tmp/misra/misra_safety_output.txt || true
+# violations in safety files
+(cat /tmp/misra/misra_output.txt | grep safety) > /tmp/misra/misra_safety_output.txt
+(cat /tmp/misra/cppcheck_output.txt | grep safety) > /tmp/misra/cppcheck_safety_output.txt
