Re: Documentation for building with meson - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Documentation for building with meson
Date
Msg-id 20221027230331.dhl3pkyb3oh25jti@awork3.anarazel.de
Whole thread Raw
In response to Re: Documentation for building with meson  (Jacob Champion <jchampion@timescale.com>)
Responses Re: Documentation for building with meson  (Jacob Champion <jchampion@timescale.com>)
List pgsql-hackers
Hi,

On 2022-10-27 14:15:32 -0700, Jacob Champion wrote:
> On Thu, Oct 27, 2022 at 1:04 AM John Naylor
> <john.naylor@enterprisedb.com> wrote:
> > This does not work for me in a fresh install until running
> >
> > meson test --suite setup
> >
> > In fact, we see in
> >
> > https://wiki.postgresql.org/wiki/Meson
> >
> > meson test --suite setup --suite main
> 
> (Is there a way to declare a dependency on the setup suite in Meson,
> so that we don't have to specify it manually? I was bitten by this
> recently; if you make a code change and forget to run setup, it'll
> recompile locally but then skip reinstallation, giving false test
> results.)

Tests can have dependencies, and they're correctly built. The problem however
is that, for historical reasons if I understand correctly, dependencies of
tests are automatically included in the default 'all' target. Which means if
you just type in 'ninja', it'd automatically create the test installation -
which is probably not what we want, given that that's not a fast step on some
platforms.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Use pg_pwritev_with_retry() instead of write() in dir_open_for_write() to avoid partial writes?
Next
From: Andres Freund
Date:
Subject: Re: pg_recvlogical prints bogus error when interrupted