meson: Optionally disable installation of test modules

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: meson: Optionally disable installation of test modules
Date: 2023-01-30 07:37:42
Message-ID: 2a039e8e-f31f-31e8-afe7-bab3130ad2de@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

One open issue (IMO) with the meson build system is that it installs the
test modules under src/test/modules/ as part of a normal installation.
This is because there is no way to set up up the build system to install
extra things only when told. I think we still need a way to disable
this somehow, so that building a production installation doesn't end up
with a bunch of extra files.

The attached simple patch is a starting point for discussion. It just
disables the subdirectory src/test/modules/ based on some Boolean
setting. This could be some new top-level option, or maybe part of
PG_TEST_EXTRA, or something else? With this, I get an identical set of
installed files from meson. I imagine this option would be false by
default and developers would enable it.

Thoughts?

Attachment Content-Type Size
v1-0001-meson-Option-to-not-install-test-modules.patch text/plain 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2023-01-30 07:51:38 Re: recovery modules
Previous Message houzj.fnst@fujitsu.com 2023-01-30 07:30:04 RE: Deadlock between logrep apply worker and tablesync worker