-
Notifications
You must be signed in to change notification settings - Fork 207
Add a README file for Coverity Static analysis #533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test/Coverity/README.md
Outdated
| - Extract the cmake download using `tar -xzvf cmake-3.13.0.tar.gz`. | ||
| - Go to the extracted folder (`cd cmake-3.13.0`) and run `./bootstrap`. | ||
| - Run `make -j$(nproc)` and then run `sudo make install`. | ||
| - Check the version using `cmake --version` command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Debian based systems, we should recommend using a PPA, or for any Linux system we can recommend just unpacking a binary distribution of cmake to /opt and adding to PATH. Using sudo make install makes the system a mess and can cause conflicts with the system package manager
test/Coverity/README.md
Outdated
| ## Getting Started | ||
| ### Prerequisites | ||
| You can run this on a platform supported by Coverity. The list and other details can be found [here](https://sig-docs.synopsys.com/polaris/topics/c_coverity-compatible-platforms.html). | ||
| To compile and run this project successfully, you must have the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| To compile and run this project successfully, you must have the following: | |
| To compile and run the Coverity target successfully, you must have the following: |
test/Coverity/README.md
Outdated
| ~~~ | ||
|
|
||
| You should now have the HTML formatted violations list in a directory named `html-output`. | ||
| With the current configuration and the provided project, you should see only one deviation from advisory rule 8.13 in file FreeRTOS_IP.c [here](https://github.com/alfred2g/FreeRTOS-Plus-TCP/blob/misra_remaining/source/FreeRTOS_IP.c#L236). This deviation has a justification outlined [here](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-813). With that justification in place, a coverity suppression statement has been added to the code. However, even with that suppression in place, the coverity tool continues to report the deviation. Thus, as an excpetion, we have allowed the deviation to be reported in the HTML formatted report. If you find a way around it, please help us fix this by creating a pull-request in this repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was fixed in a newer version of Coverity, if I recall correctly.
Description
This PR adds a REAME file in the
test/Coverityfolder to guide users on the process of building and analyzing the source code using Coverity static analysis tool.Also, it moves the Coverity config file to the
test/Coverityfolder to be consistent.Test Steps
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.