Add support for EXTRA_REGRESS_OPTS for meson

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Add support for EXTRA_REGRESS_OPTS for meson
Date: 2025-02-27 12:53:17
Message-ID: fce84be6-3158-4b9c-9b40-a403c49d2966@proxel.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

We use EXTRA_REGRESS_OPTS to make sure the whole test suite passes with
our extension loaded and since I prefer develop in meson over using
autotools and make the lack of support for EXTRA_REGRESS_OPTS in meson
has bugged me for a while.

I have implemented support for it as an environment variable we read in
the testwrap script instead of adding it as a configuration option to
meson.build. The reason for this is that I do not like having to run
"meson reconfigure" all the time plus that for the PG_TEST_EXTRA we
ended up having to add an environment variable anyway.

To use this run e.g. the following:

EXTRA_REGRESS_OPTS="--load-extension=pgcrypto" meson test

Question: Would it make sense to rename it to PG_REGRESS_EXTRA_OPTS or
something similar while we already touch touch this code to make the
various options easier to remember?

Andreas

Attachment Content-Type Size
0001-meson-Add-support-for-EXTRA_REGRESS_OPTS.patch text/x-patch 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-02-27 13:21:22 Re: Add support for EXTRA_REGRESS_OPTS for meson
Previous Message Pavel Stehule 2025-02-27 12:43:50 Re: SQLFunctionCache and generic plans