scan-build and Jenkins

Li-Wen Hsu lwhsu at FreeBSD.org
Wed Feb 11 16:03:45 UTC 2015


On Wed, Feb 11, 2015 at 07:48:19 -0800, Craig Rodrigues wrote:
> On Wed, Feb 11, 2015 at 7:05 AM, Li-Wen Hsu <lwhsu at freebsd.org> wrote:
> 
> > Hi,
> >
> > - "Multiple SCMs" plugin is used, for check out both scan-build scripts
> >   and source being checked
> > - scan-build is build from LLVM & Clang trunk, which are also checked out
> > by
> >   multiple SCMs plugin and built when job triggered.  This is designed
> >   by uqs@ at the beginning because we want to use the latest tool to
> >   eliminate false results.
> >
> 
> Thanks, this was the part I was not sure about.
> I will look at the Jenkins job to see how to build scan-build.
> Where did you find out the steps to build scan-build?

I wrote a mail to uqs and he just threw me a tarball. :)

The old repository is available here:

https://github.com/lwhsu/freebsd-scan-build

> Since you are building LLVM & Clang from trunk, does that
> mean you are using the trunk version of Clang to build FreeBSD as well,
> or do you just run scan-build to run the static analysis without building
> the FreeBSD source tree?

scan-build is just a wrapper, see this:

https://github.com/freebsd/freebsd-ci/blob/66c7b75248de37546449b9df8c4e01d239d8e0b3/scan-build/scan-world#L45-L46


Li-Wen

-- 
Li-Wen Hsu <lwhsu at FreeBSD.org>
http://lwhsu.org


More information about the freebsd-testing mailing list