From: | Gabriel Furstenheim Milerud <furstenheim(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Cc: | PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Extension coverage |
Date: | 2017-08-28 19:04:10 |
Message-ID: | CAJN3DWrmeoH10mrHWm98sPqMCmC-fP61jC7pkFN7gY7XxpFm0Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Great thanks, didn't realize that I was already importing coverage from
pgxs.
BTW, it fixed itself alone. At some point it started creating the .gcda
files and making the target.
On 28 August 2017 at 08:34, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
wrote:
> On Sat, Aug 26, 2017 at 6:28 PM, Gabriel Furstenheim Milerud
> <furstenheim(at)gmail(dot)com> wrote:
> > Not sure I follow. Do you have an example that I could check?
> > I have the impression that my problem is that no .gcda files are
> created. If
> > I just run the lcov part:
> > lcov -d . -c -o lcov.info
> >
> > I get
> > Found gcov version: 5.4.0
> > Scanning . for .gcda files ...
> > geninfo: WARNING: no .gcda files found in . - skipping!
> > Finished .info-file creation
> >
> > and an empty file lcov.info is created.
> >
> > Just to check, I've tried running make coverage and make coverage-html on
> > the folder of postgres instead of the extension and that works.
>
> There is no need to complicate your Makefile with a custom coverage
> target, which is, at least it seems to me, the origin of the problems
> you are seeing here. So you could just use the one that Postgres' PGXS
> provides. Here is a simple Makefile I have used for coverage testing
> with an extension:
> https://github.com/michaelpq/pg_plugins/blob/master/decoder_raw/Makefile
> If you enforce abs_top_srcdir=$(pwd) with make coverage, or
> coverage-html if you want, then both are able to work properly. At
> least for me they do.
> --
> Michael
>
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2017-08-28 19:32:19 | Re: Performance with high correlation in group by on PK |
Previous Message | Stephen Frost | 2017-08-28 17:28:44 | Re: Logging the fact that a log was shipped |