Menu

Best Procedure to follow to test a change to cppcheck

2021-11-26
2023-08-17
  • john borland

    john borland - 2021-11-26

    I was wondering what is the best process to follow to test a change to cppcheck?
    Right now I'm just making sure it matches the previous output. I have a feeling there is a way to run internal testing.

     
  • Daniel Marjamäki

    Use the script cppcheck/tools/test-my-pr.py

    You don't need to have a github PR. But you need to have your changes committed in a git branch. You run the script while your development branch is checked out.

     
  • john borland

    john borland - 2023-08-17

    I use a little bash scripting and git blame. If your code is in git repo this might help you. I do this will all CI tools not just cppcheck. The main reason for this is for upgrading CI tools or remove false positives if necessary. So I can push the new version into CI before fixing all the new things it found so that developers get the benefits of the upgrade tool right away. I use git blame -n pared with the cppcheck( or any tools )output. That way I have a list of things that I can filter out of a tools output.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.