Checking chrpath in Coverity
Petter Reinholdtsen
pere at hungry.com
Tue Jan 14 10:09:59 UTC 2014
Btw, here is a copy of the script coverity-scan-chrpath.sh I use to
submit the build to Coverity for checking. I've replaced my token and
email address, which need to be tuned to the person doing the upload.
#!/bin/sh
set -e
exec > run.log 2>&1 < /dev/null
set -x
export PATH=/opt/cov-analysis-linux-6.6.1/bin:$PATH
echo starting build
date
if [ ! -d chrpath ] ; then
svn co svn://scm.alioth.debian.org/svn/chrpath/trunk chrpath
fi
cd chrpath
svn up
aclocal; autoheader; automake -ac; autoconf
./configure
rm -rf cov-int
cov-build --dir cov-int make all check
make distclean
tar czvf chrpath.tgz cov-int
datestr=$(date +%Y-%m-%d)
verstr="svn-$datestr"
descstr="svn snapshot"
curl --form project=chrpath \
--form token=mytoken \
--form email=myemail at example.org \
--form file=@chrpath.tgz \
--form version="$verstr" \
--form description="$descstr" \
http://scan5.coverity.com/cgi-bin/upload.py
echo success
date
--
Happy hacking
Petter Reinholdtsen
More information about the chrpath-devel
mailing list