Coverage in admin/

George Staikos staikos at kde.org
Thu Dec 2 09:09:04 GMT 2004


On Thursday 02 December 2004 04:08, Stephan Kulow wrote:
> Am Wednesday 01 December 2004 23:25 schrieb George Staikos:
> > Could we add something like this to admin/ to make gcov coverage testing
> > a bit easier?  (read: does anyone object?)  I'm using this in kst right
> > now on both gcc2.95 and gcc 3.3 and it works well for me.
> >
> > Maybe my code isn't quite perfect, but you get the idea...
> >
> > AC_ARG_WITH(coverage,
> >     AC_HELP_STRING([--with-coverage],[use gcc coverage testing]),
> >     [
> >        if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
> >            ac_coverage_compiler="-g3 -fprofile-arcs -ftest-coverage -O0
> > -fno-inline"
> >            ac_coverage_linker="-lgcc"
> >        elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
> >            ac_coverage_compiler="-g3 -fprofile-arcs -ftest-coverage -O0
> > -fno-inline"
> >            ac_coverage_linker=""
>
> gcc 2.95 supported -fprofile-arcs?

  gcc version 2.95.4 20010319 (prerelease/franzo/20011204)

  This one does anyway...

> I think your -g3 and -O0 are wrong, you 
> should change to require --enable-debug=full to be passed also. Otherwise
> you're just copying code.

  Ok.  Other than that, does it look good?

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/




More information about the kde-core-devel mailing list