Adds coverity scan script.

This commit is contained in:
Andrea Mazzoleni 2014-11-09 22:36:13 +01:00
parent 0c539a0b35
commit d491fd73e0

26
makescan.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/sh
#
rm -r cov-int
rm snapraid.tgz
make distclean
if ! ./configure ; then
exit 1
fi
export PATH=$PATH:contrib/cov-analysis-linux-7.0.2/bin
if ! cov-build --dir cov-int make; then
exit 1
fi
tar czf snapraid.tgz cov-int
rm -r cov-int
echo snapraid.tgz ready to upload to https://scan.coverity.com/projects/1986/builds/new