[GENERAL] Extension coverage - Mailing list pgsql-general

From Gabriel Furstenheim Milerud
Subject [GENERAL] Extension coverage
Date
Msg-id CAJN3DWoU5JgWNAoKLhht-wop+X59T_==B+H7DwnkDJFRKck8Bw@mail.gmail.com
Whole thread Raw
Responses Re: [GENERAL] Extension coverage  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-general
Hello,

I'm trying to measure test coverage on an extension. I've built postgres with the --enable-coverage flag:

    $ cd $POSTGRES_SOURCE_DIR
    $ ./configure --enable-coverage
    $ make
    $ make install

The I built my extension against this postgres server
  
   $ cd $EXTENSION_SOURCE_DIR
   $ make install && make installcheck

the extension is built fine and the test run. However, I see no difference with a normal installation without the flag.

   coverage:
       lcov --no-external -d .  -c -o lcov.info
       genhtml --show-details --legend --output-directory=coverage --title=PostgreSQL --num-spaces=4 --prefix=./src/ `find . -name lcov.info -print`

But it complains that there are no .gcda files
    geninfo: WARNING: no .gcda files found in . - skipping!
and it errors.
   genhtml: ERROR: no valid records found in tracefile ./lcov.info


Is this the way to measure coverage on an extension? Am I missing some step?

Thanks in advance
Gabriel Fürstenheim



pgsql-general by date:

Previous
From: Harry Ambrose
Date:
Subject: Re: [GENERAL] ERROR: unexpected chunk number 0 (expected 1) for toastvalue 76753264 in pg_toast_10920100
Next
From: Moreno Andreo
Date:
Subject: [GENERAL] Invalid magic number 0000 in log file