pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make PG_TEST_EXTRA env var override the "meson setup" option
Date: Mon, 04 Nov 2024 12:25:37 +0000
Message-ID: <E1t7w9I-0007vD-R1@gemulon.postgresql.org> (raw)

Make PG_TEST_EXTRA env var override the "meson setup" option

"meson test" used to ignore the PG_TEST_EXTRA environment variable,
which meant that in order to run additional tests, you had to run
"meson setup -DPG_TEST_EXTRA=...". That's somewhat expensive, and not
consistent with autoconf builds. Allow PG_TEST_EXTRA environment
variable to override the setup-time option at run time, so that you
can do "PG_TEST_EXTRA=... meson test".

To implement this, the configuration time value is passed as an extra
"--pg-test-extra" argument to testwrap instead of adding it to the
test environment. If the environment variable is set at the time of
running test, testwrap uses the value from the environment variable
and ignores the --pg-test-extra option.

Now that "meson test" obeys the environment variable, we can remove it
from the "meson setup" steps in the CI script. It will now be picked
up from the environment variable like with "make check".

Author: Nazir Bilal Yavuzk, Ashutosh Bapat
Reviewed-by: Ashutosh Bapat with inputs from Tom Lane and Andrew Dunstan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3d1aec225ac4a1199079150dabfd0d34c5054127

Modified Files
--------------
.cirrus.tasks.yml              |  6 +-----
doc/src/sgml/installation.sgml | 10 +++++++---
meson.build                    | 10 +++++-----
meson_options.txt              |  2 +-
src/tools/testwrap             | 10 ++++++++++
5 files changed, 24 insertions(+), 14 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1t7w9I-0007vD-R1@gemulon.postgresql.org>
Permalink:  ../E1t7w9I-0007vD-R1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t7w9I-0007vD-R1@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Make PG_TEST_EXTRA env var override the "meson setup" option
  In-Reply-To: <E1t7w9I-0007vD-R1@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox