diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2023-03-03 07:18:20 +0100 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2023-03-03 07:45:52 +0100 |
| commit | b6a0d469cae4410a05b5e109748278065a931b68 (patch) | |
| tree | 6324fe8028daa362b870740439c719bf71fa0116 /src/test/modules/delay_execution | |
| parent | b1307b8b60111be8ddd8d6127701883c047bed15 (diff) | |
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
Diffstat (limited to 'src/test/modules/delay_execution')
| -rw-r--r-- | src/test/modules/delay_execution/meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/modules/delay_execution/meson.build b/src/test/modules/delay_execution/meson.build index a7165d7506a..9f33b19cb7b 100644 --- a/src/test/modules/delay_execution/meson.build +++ b/src/test/modules/delay_execution/meson.build @@ -1,7 +1,5 @@ # Copyright (c) 2022-2023, PostgreSQL Global Development Group -# FIXME: prevent install during main install, but not during test :/ - delay_execution_sources = files( 'delay_execution.c', ) @@ -14,9 +12,9 @@ endif delay_execution = shared_module('delay_execution', delay_execution_sources, - kwargs: pg_mod_args, + kwargs: pg_test_mod_args, ) -testprep_targets += delay_execution +test_install_libs += delay_execution tests += { 'name': 'delay_execution', |
