Re: make coverage-html would fail within build directory separate from source tree

From: walker <failaway(at)qq(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: make coverage-html would fail within build directory separate from source tree
Date: 2021-03-04 14:09:17
Message-ID: tencent_D358E3B0A06716983AFA25CAFE5B9E735209@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The same, the build directory is outside the source tree.

the version of lcov is 1.10

thanks
walker

------------------&nbsp;Original&nbsp;------------------
From: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org&gt;;
Date:&nbsp;Thu, Mar 4, 2021 10:05 PM
To:&nbsp;"walker"<failaway(at)qq(dot)com&gt;;
Cc:&nbsp;"pgsql-hackers"<pgsql-hackers(at)lists(dot)postgresql(dot)org&gt;;
Subject:&nbsp;Re: make coverage-html would fail within build directory separate from source tree

On 2021-Mar-04, walker wrote:

&gt; thanks for your reply. it indeed that there are no .gcon files in source tree directory, they're in build tree directory, which results in failures.
&gt;
&gt;
&gt; That's a bit wired.
&gt;
&gt;
&gt; Add more detailed testing steps:
&gt; mkdir build_dir
&gt; cd build_dir
&gt; /home/postgres/postgresql-13.2/configure -- enable-coverage
&gt; make
&gt; make check
&gt; make coverage-html

Hmm, my build dir is not inside the source dir -- is yours?&nbsp; Maybe that
makes a difference?&nbsp; Also, what version of lcov do you have?

--
Álvaro Herrera&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 39°49'30"S 73°17'W
"Someone said that it is at least an order of magnitude more work to do
production software than a prototype. I think he is wrong by at least
an order of magnitude."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Brian Kernighan)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2021-03-04 14:20:31 Re: make coverage-html would fail within build directory separate from source tree
Previous Message Alvaro Herrera 2021-03-04 14:05:55 Re: make coverage-html would fail within build directory separate from source tree