aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2025-02-04 17:45:56 -0500
committerAndres Freund <andres@anarazel.de>2025-02-04 17:56:19 -0500
commitf52bc23882779b79f19f0b2a8b0c643c00beb01d (patch)
tree469bb09936036143d7b8ab163d6e5c2004fe1fe3 /src
parent25cb7769412804fe671d1799009b95e46998213b (diff)
downloadpostgresql-f52bc23882779b79f19f0b2a8b0c643c00beb01d.tar.gz
postgresql-f52bc23882779b79f19f0b2a8b0c643c00beb01d.zip
meson: Add pg_regress_ecpg to ecpg test dependencies
This is required to ensure correct test dependencies, previously pg_regress_ecpg would not necessarily be built. The missing dependency was, e.g., visible when doing ninja clean && ninja meson-test-prereq && meson test --no-rebuild --suite setup --suite ecpg Apply this to all branches with meson support, as part of an effort to fix incorrect test dependencies that can lead to test failures. Discussion: https://postgr.es/m/CAGECzQSvM3iSDmjF+=Kof5an6jN8UbkP_4cKKT9w6GZavmb5yQ@mail.gmail.com Discussion: https://postgr.es/m/bdba588f-69a9-4f3e-9b95-62d07210a32e@eisentraut.org Backpatch: 16-, where meson support was added
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/test/meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/test/meson.build b/src/interfaces/ecpg/test/meson.build
index c1e508ccc82..a0d0f38d19a 100644
--- a/src/interfaces/ecpg/test/meson.build
+++ b/src/interfaces/ecpg/test/meson.build
@@ -5,6 +5,8 @@ if meson.is_cross_build()
subdir_done()
endif
+ecpg_test_dependencies = []
+
pg_regress_ecpg_sources = pg_regress_c + files(
'pg_regress_ecpg.c',
)
@@ -23,7 +25,7 @@ pg_regress_ecpg = executable('pg_regress_ecpg',
'install': false
},
)
-testprep_targets += pg_regress_ecpg
+ecpg_test_dependencies += pg_regress_ecpg
# create .c files and executables from .pgc files
ecpg_test_exec_kw = {
@@ -50,8 +52,6 @@ ecpg_preproc_test_command_end = [
'-o', '@OUTPUT@', '@INPUT@'
]
-ecpg_test_dependencies = []
-
subdir('compat_informix')
subdir('compat_oracle')
subdir('connect')