mirror of
https://github.com/postgres/postgres.git
synced 2026-03-10 18:28:35 -04:00
Makefile.global assigns this prerequisite to every target named "check",
but similar targets must mention it explicitly. Affected targets
failed, tested $PATH binaries, or tested a stale temporary installation.
The src/test/modules examples worked properly when called as "make -C
src/test/modules/$FOO check", but "make -j" allowed the test to start
before the temporary installation was in place. Back-patch to 9.5,
where commit dcae5facca introduced the
shared temp-install.
30 lines
710 B
Makefile
30 lines
710 B
Makefile
# src/test/modules/brin/Makefile
|
|
|
|
EXTRA_CLEAN = ./isolation_output
|
|
EXTRA_INSTALL=contrib/pageinspect
|
|
|
|
ISOLATIONCHECKS=summarization-and-inprogress-insertion
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = src/test/modules/brin
|
|
top_builddir = ../../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
check: isolation-check
|
|
|
|
isolation-check: | submake-isolation temp-install
|
|
$(MKDIR_P) isolation_output
|
|
$(pg_isolation_regress_check) \
|
|
--outputdir=./isolation_output \
|
|
$(ISOLATIONCHECKS)
|
|
|
|
.PHONY: check isolation-check
|
|
|
|
submake-isolation:
|
|
$(MAKE) -C $(top_builddir)/src/test/isolation all
|