mirror of https://github.com/postgres/postgres
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 <byavuz81@gmail.com> Suggested-by: Andres Freund <andres@anarazel.de> Suggested-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/aKJsWedftW7UX1WM@paquier.xyzpull/249/head
parent
d4c0f91f7d
commit
e429c3cecb
@ -0,0 +1,6 @@ |
|||||||
|
# Generated subdirectories |
||||||
|
/log/ |
||||||
|
/results/ |
||||||
|
/output_iso/ |
||||||
|
/tmp_check/ |
||||||
|
/tmp_check_iso/ |
||||||
@ -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 |
||||||
@ -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', |
||||||
|
], |
||||||
|
}, |
||||||
|
} |
||||||
Loading…
Reference in new issue