[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Test code coverage

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Sun, 25 Nov 2012 23:17:38 +0100

Hi there,

I was wondering whether we could have one or two of
our UNIX build bots create a code coverage profile
and make the results available online.

Here is what I use in my test runner script:

[[[
env CFLAGS='-fprofile-arcs -ftest-coverage' ./configure --disable-shared
--enable-maintainer-mode $moreopts

make -sj 2> /dev/null > /dev/null
make svnserveautocheck PARALLEL=1

lcov -d . -b . -c -o tests.lcov > lcov.log
genhtml tests.lcov -o html > genhtml.log
]]]

So, it's just 1 changed and 2 extra lines.

-- Stefan^2.

-- 
Certified & Supported Apache Subversion Downloads:
*
http://www.wandisco.com/subversion/download
*
Received on 2012-11-25 23:18:10 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.