How to Coverity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Updated for cov-analysis-linux64-2017.07) |
||
| Line 9: | Line 9: | ||
#: <code style="white-space: pre-wrap">mkdir build && cd build && cmake -DPROC_TARGET_NUMBER="2" -DBUILD_BUNDLE="ON" ..</code> | #: <code style="white-space: pre-wrap">mkdir build && cd build && cmake -DPROC_TARGET_NUMBER="2" -DBUILD_BUNDLE="ON" ..</code> | ||
#: and then "cov-build" with "make": | #: and then "cov-build" with "make": | ||
#: <code style="white-space: pre-wrap">~/programs/cov-analysis-linux64- | #: <code style="white-space: pre-wrap">~/programs/cov-analysis-linux64-2017.07/bin/cov-build --dir cov-int make -j3</code> | ||
# Create a compressed tar archive of the results (xz has the best compression) with "cov-int" as the root: | # Create a compressed tar archive of the results (xz has the best compression) with "cov-int" as the root: | ||
#: <code style="white-space: pre-wrap">tar caf rawtherapee.xz cov-int</code> | #: <code style="white-space: pre-wrap">tar caf rawtherapee.xz cov-int</code> | ||
| Line 18: | Line 18: | ||
mkdir build && cd build && \ | mkdir build && cd build && \ | ||
cmake -DPROC_TARGET_NUMBER="2" -DBUILD_BUNDLE="ON" .. && \ | cmake -DPROC_TARGET_NUMBER="2" -DBUILD_BUNDLE="ON" .. && \ | ||
~/programs/cov-analysis-linux64- | ~/programs/cov-analysis-linux64-2017.07/bin/cov-build --dir cov-int make -j3 && \ | ||
tar caf rawtherapee.xz cov-int && \ | tar caf rawtherapee.xz cov-int && \ | ||
curl --form token=8qD9bol24Dc2vjJC4_O5ug \ | curl --form token=8qD9bol24Dc2vjJC4_O5ug \ | ||
Revision as of 08:48, 26 June 2017
- Download Coverity Build Tool https://scan.coverity.com/download and extract to e.g. $HOME/programs/
- cd to RawTherapee source clone:
cd ~/programs/code-rawtherapee/
- Clean up:
make clean && ./clean
- Run "cov-build", either passing a script which compiles RawTherapee:
~/programs/cov-analysis-linux64-7.7.0.4/bin/cov-build --dir cov-int ~/scripts/crunch- or by passing the compilation instructions manually, in which case first create the build directory, enter it and run "cmake":
mkdir build && cd build && cmake -DPROC_TARGET_NUMBER="2" -DBUILD_BUNDLE="ON" ..- and then "cov-build" with "make":
~/programs/cov-analysis-linux64-2017.07/bin/cov-build --dir cov-int make -j3
- Create a compressed tar archive of the results (xz has the best compression) with "cov-int" as the root:
tar caf rawtherapee.xz cov-int
- Upload the build to https://scan.coverity.com/projects/3455/builds/new?tab=upload
All in One
mkdir build && cd build && \ cmake -DPROC_TARGET_NUMBER="2" -DBUILD_BUNDLE="ON" .. && \ ~/programs/cov-analysis-linux64-2017.07/bin/cov-build --dir cov-int make -j3 && \ tar caf rawtherapee.xz cov-int && \ curl --form token=8qD9bol24Dc2vjJC4_O5ug \ --form email=contactus@rawtherapee.com \ --form file=@rawtherapee.xz \ --form version="$(grep Version AboutThisBuild.txt | sed 's/Version: //')" \ --form description="$(date)" \ https://scan.coverity.com/builds?project=RawTherapee