Re: Documentation for building with meson

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Documentation for building with meson
Дата
Msg-id 20221027230331.dhl3pkyb3oh25jti@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: Documentation for building with meson  (Jacob Champion <jchampion@timescale.com>)
Ответы Re: Documentation for building with meson  (Jacob Champion <jchampion@timescale.com>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Use pg_pwritev_with_retry() instead of write() in dir_open_for_write() to avoid partial writes?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pg_recvlogical prints bogus error when interrupted