Coverage in admin/

Stephan Kulow coolo at kde.org
Thu Dec 2 09:08:15 GMT 2004


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? 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. 

Greetings, Stephan




More information about the kde-core-devel mailing list