pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: meson: Prevent installation of test files during main install
Date: Fri, 03 Mar 2023 06:46:42 +0000
Message-ID: <E1pXzBi-001e7l-Gg@gemulon.postgresql.org> (raw)

meson: Prevent installation of test files during main install

Previously, meson installed modules under src/test/modules/ as part of
a normal installation, even though these files are only meant for use
by tests.  This is because there is no way to set up up the build
system to install extra things only when told.

This patch fixes that with a workaround: We don't install these
modules as part of meson install, but we create a new "test" that runs
before the real tests whose action it is to install these files.  The
installation is done by manual copies using a small helper script.

Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/2a039e8e-f31f-31e8-afe7-bab3130ad2de%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b6a0d469cae4410a05b5e109748278065a931b68

Modified Files
--------------
meson.build                                        | 32 +++++++++++++++++++++-
src/backend/meson.build                            |  7 +++++
src/test/modules/delay_execution/meson.build       |  6 ++--
src/test/modules/dummy_index_am/meson.build        |  9 ++----
src/test/modules/dummy_seclabel/meson.build        |  9 ++----
src/test/modules/plsample/meson.build              | 10 ++-----
src/test/modules/spgist_name_ops/meson.build       | 10 ++-----
.../modules/ssl_passphrase_callback/meson.build    |  6 ++--
src/test/modules/test_bloomfilter/meson.build      |  9 ++----
src/test/modules/test_copy_callbacks/meson.build   |  9 ++----
src/test/modules/test_custom_rmgrs/meson.build     |  9 ++----
src/test/modules/test_ddl_deparse/meson.build      |  9 ++----
src/test/modules/test_extensions/meson.build       |  4 +--
src/test/modules/test_ginpostinglist/meson.build   |  9 ++----
src/test/modules/test_integerset/meson.build       |  9 ++----
src/test/modules/test_lfind/meson.build            |  9 ++----
src/test/modules/test_oat_hooks/meson.build        |  6 ++--
src/test/modules/test_parser/meson.build           |  9 ++----
.../modules/test_pg_db_role_setting/meson.build    |  9 ++----
src/test/modules/test_pg_dump/meson.build          |  4 +--
src/test/modules/test_predtest/meson.build         |  9 ++----
src/test/modules/test_rbtree/meson.build           |  9 ++----
src/test/modules/test_regex/meson.build            |  9 ++----
src/test/modules/test_rls_hooks/meson.build        |  6 ++--
src/test/modules/test_shm_mq/meson.build           |  9 ++----
src/test/modules/test_slru/meson.build             |  9 ++----
src/test/modules/worker_spi/meson.build            |  9 ++----
src/test/regress/meson.build                       | 18 ++++--------
src/tools/install_test_files                       | 28 +++++++++++++++++++
29 files changed, 139 insertions(+), 151 deletions(-)



Message-ID: <E1pXzBi-001e7l-Gg@gemulon.postgresql.org>
Permalink:  ../E1pXzBi-001e7l-Gg@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pXzBi-001e7l-Gg@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: meson: Prevent installation of test files during main install
  In-Reply-To: <E1pXzBi-001e7l-Gg@gemulon.postgresql.org>
  References: <E1pXzBi-001e7l-Gg@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