pgsql: meson: Prevent installation of test files during main install

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: meson: Prevent installation of test files during main install
Date: 2023-03-03 06:46:42
Message-ID: E1pXzBi-001e7l-Gg@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2023-03-03 16:16:28 Re: pgsql: Harden new test case against force_parallel_mode = regress.
Previous Message Peter Eisentraut 2023-03-03 06:06:29 pgsql: Fix incorrect format placeholders