Re: Add support for EXTRA_REGRESS_OPTS for meson

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Rustam ALLAKOV <rustamallakov(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add support for EXTRA_REGRESS_OPTS for meson
Date: 2026-01-14 01:17:30
Message-ID: 2b3554b9-d365-4b8a-ada1-ce81144a9c84@proxel.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 1/13/26 11:06 PM, Rustam ALLAKOV wrote:
>>> in addition to the above, might be worth to add some documentation like
>>>
>>> Environment Variables Supported:
>>> EXTRA_REGRESS_OPTS: Additional options to pass to regression, isolation, or ecpg tests.
>>> TEMP_CONFIG: Specify a temporary configuration file for testing purposes.
>>> Example Usage:
>>> # Use EXTRA_REGRESS_OPTS to load an extension
>>> EXTRA_REGRESS_OPTS="--load-extension=pgcrypto" meson test
>>> # Use TEMP_CONFIG to specify a temporary configuration file
>>> TEMP_CONFIG="path/to/test.conf" meson test
>>> # Use both EXTRA_REGRESS_OPTS and TEMP_CONFIG together
>>> TEMP_CONFIG="path/to/test.conf" EXTRA_REGRESS_OPTS="--load-extension=pgcrypto" meson test
>>
>> Yeah, we probably should. But not sure where, maybe at
>> https://www.postgresql.org/docs/current/install-meson.html or did you
>> imagine somewhere else?
>
> Either at docs or/and directly in file /src/tools/testwrap as comments
> Regards.

If we add it to the documentation the question is if we should also
document environment variables for builds with make. But maybe that is
for a separate patch.

As for documenting it in testwrap: that does not feel very useful to me
since people who know that this is where they should look likely already
knows about these. It is a pretty hidden place. Hmm, not sure where such
information belongs.

Andreas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marcos Magueta 2026-01-14 01:23:03 Re: WIP - xmlvalidate implementation from TODO list
Previous Message Fujii Masao 2026-01-14 01:14:28 Re: Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication