From: Michael Paquier Date: Mon, 24 Nov 2025 10:33:51 +0000 (+0900) Subject: Move isolation test index-killtuples to src/test/modules/index/ X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=refs%2Fremotes%2Fgithub%2Fmaster;p=postgresql.git Move isolation test index-killtuples to src/test/modules/index/ index-killtuples test depends on the contrib modules btree_gin and btree_gist, which would not be installed in a temporary installation with an execution of the main isolation test suite like this one: make -C src/test/isolation/ check src/test/isolation/ should not depend on contrib/, and EXTRA_INSTALL has no effect in this case as this test suite uses its own Makefile rules. This commit moves index-killtuples into its new module, called "index", whose name looks like the best fit there can be as it depends on more than one index AM. btree_gin and btree_gist are now pulled in the temporary installation with EXTRA_INSTALL. The test is renamed to "killtuples", for simplicity. Author: Nazir Bilal Yavuz Suggested-by: Andres Freund Suggested-by: Michael Paquier Discussion: https://postgr.es/m/aKJsWedftW7UX1WM@paquier.xyz --- diff --git a/src/test/isolation/isolation_schedule b/src/test/isolation/isolation_schedule index 5afae33d370..112f05a3677 100644 --- a/src/test/isolation/isolation_schedule +++ b/src/test/isolation/isolation_schedule @@ -16,7 +16,6 @@ test: ri-trigger test: partial-index test: two-ids test: multiple-row-versions -test: index-killtuples test: index-only-scan test: index-only-bitmapscan test: predicate-lock-hot-tuple diff --git a/src/test/modules/Makefile b/src/test/modules/Makefile index 902a7954101..d079b91b1a2 100644 --- a/src/test/modules/Makefile +++ b/src/test/modules/Makefile @@ -10,6 +10,7 @@ SUBDIRS = \ delay_execution \ dummy_index_am \ dummy_seclabel \ + index \ libpq_pipeline \ oauth_validator \ plsample \ diff --git a/src/test/modules/index/.gitignore b/src/test/modules/index/.gitignore new file mode 100644 index 00000000000..b4903eba657 --- /dev/null +++ b/src/test/modules/index/.gitignore @@ -0,0 +1,6 @@ +# Generated subdirectories +/log/ +/results/ +/output_iso/ +/tmp_check/ +/tmp_check_iso/ diff --git a/src/test/modules/index/Makefile b/src/test/modules/index/Makefile new file mode 100644 index 00000000000..29047044ede --- /dev/null +++ b/src/test/modules/index/Makefile @@ -0,0 +1,16 @@ +# src/test/modules/index/Makefile + +EXTRA_INSTALL = contrib/btree_gin contrib/btree_gist + +ISOLATION = killtuples + +ifdef USE_PGXS +PG_CONFIG = pg_config +PGXS := $(shell $(PG_CONFIG) --pgxs) +include $(PGXS) +else +subdir = src/test/modules/index +top_builddir = ../../../.. +include $(top_builddir)/src/Makefile.global +include $(top_srcdir)/contrib/contrib-global.mk +endif diff --git a/src/test/isolation/expected/index-killtuples.out b/src/test/modules/index/expected/killtuples.out similarity index 100% rename from src/test/isolation/expected/index-killtuples.out rename to src/test/modules/index/expected/killtuples.out diff --git a/src/test/modules/index/meson.build b/src/test/modules/index/meson.build new file mode 100644 index 00000000000..1b3c42d8a2f --- /dev/null +++ b/src/test/modules/index/meson.build @@ -0,0 +1,12 @@ +# Copyright (c) 2025, PostgreSQL Global Development Group + +tests += { + 'name': 'index', + 'sd': meson.current_source_dir(), + 'bd': meson.current_build_dir(), + 'isolation': { + 'specs': [ + 'killtuples', + ], + }, +} diff --git a/src/test/isolation/specs/index-killtuples.spec b/src/test/modules/index/specs/killtuples.spec similarity index 100% rename from src/test/isolation/specs/index-killtuples.spec rename to src/test/modules/index/specs/killtuples.spec diff --git a/src/test/modules/meson.build b/src/test/modules/meson.build index 14fc761c4cf..f5114469b92 100644 --- a/src/test/modules/meson.build +++ b/src/test/modules/meson.build @@ -6,6 +6,7 @@ subdir('delay_execution') subdir('dummy_index_am') subdir('dummy_seclabel') subdir('gin') +subdir('index') subdir('injection_points') subdir('ldap_password_func') subdir('libpq_pipeline')