I wrote this script to build and upload a new scan to coverity, and
just used it to to a rescan:


#!/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 ipmitool ] ; then
    cvs -z3 -d:pserver:anonym...@ipmitool.cvs.sourceforge.net:/cvsroot/ipmitool 
co -P ipmitool

fi
cd ipmitool
cvs up

./bootstrap
./configure

cov-build --dir cov-int make all check

make distclean

tar czvf ipmitool.tgz cov-int

datestr=$(date +%Y-%m-%d)
verstr="cvs-$datestr"
descstr="cvs snapshot"

curl --form project=ipmitool \
  --form token=mytoken \
  --form email=my-email@address \
  --form file=@ipmitool.tgz \
  --form version="$verstr" \
  --form description="$descstr" \
  http://scan5.coverity.com/cgi-bin/upload.py

echo success
date


But something is wrong.  It claim lots of issues, but I am unable to
find any in the web interface.  The same web interface work with the
gnash project, so there is something special about ipmitool.

-- 
Happy hacking
Petter Reinholdtsen

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to