mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
Respect TEMP_CONFIG when pg_regress_check and friends are called
This reverts commit 9117985b6ba9beda4f280f596035649fc23b6233 in favor of a more general solution.
This commit is contained in:
parent
c9578135f7
commit
87cc6b57a9
@ -1,9 +1,4 @@
|
|||||||
# contrib/contrib-global.mk
|
# contrib/contrib-global.mk
|
||||||
|
|
||||||
# file with extra config for temp build
|
|
||||||
ifdef TEMP_CONFIG
|
|
||||||
REGRESS_OPTS += --temp-config=$(TEMP_CONFIG)
|
|
||||||
endif
|
|
||||||
|
|
||||||
NO_PGXS = 1
|
NO_PGXS = 1
|
||||||
include $(top_srcdir)/src/makefiles/pgxs.mk
|
include $(top_srcdir)/src/makefiles/pgxs.mk
|
||||||
|
@ -524,14 +524,20 @@ ifdef NO_LOCALE
|
|||||||
NOLOCALE += --no-locale
|
NOLOCALE += --no-locale
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# file with extra config for temp build
|
||||||
|
TEMP_CONF =
|
||||||
|
ifdef TEMP_CONFIG
|
||||||
|
TEMP_CONF += --temp-config=$(TEMP_CONFIG)
|
||||||
|
endif
|
||||||
|
|
||||||
pg_regress_locale_flags = $(if $(ENCODING),--encoding=$(ENCODING)) $(NOLOCALE)
|
pg_regress_locale_flags = $(if $(ENCODING),--encoding=$(ENCODING)) $(NOLOCALE)
|
||||||
|
|
||||||
pg_regress_check = $(with_temp_install) $(top_builddir)/src/test/regress/pg_regress --inputdir=$(srcdir) --temp-instance=./tmp_check --bindir= $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
pg_regress_check = $(with_temp_install) $(top_builddir)/src/test/regress/pg_regress --inputdir=$(srcdir) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
||||||
pg_regress_installcheck = $(top_builddir)/src/test/regress/pg_regress --inputdir=$(srcdir) --bindir='$(bindir)' $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
pg_regress_installcheck = $(top_builddir)/src/test/regress/pg_regress --inputdir=$(srcdir) --bindir='$(bindir)' $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
||||||
|
|
||||||
pg_regress_clean_files = results/ regression.diffs regression.out tmp_check/ log/
|
pg_regress_clean_files = results/ regression.diffs regression.out tmp_check/ log/
|
||||||
|
|
||||||
pg_isolation_regress_check = $(with_temp_install) $(top_builddir)/src/test/isolation/pg_isolation_regress --inputdir=$(srcdir) --temp-instance=./tmp_check --bindir= $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
pg_isolation_regress_check = $(with_temp_install) $(top_builddir)/src/test/isolation/pg_isolation_regress --inputdir=$(srcdir) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
||||||
pg_isolation_regress_installcheck = $(top_builddir)/src/test/isolation/pg_isolation_regress --inputdir=$(srcdir) $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
pg_isolation_regress_installcheck = $(top_builddir)/src/test/isolation/pg_isolation_regress --inputdir=$(srcdir) $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS)
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
@ -78,11 +78,11 @@ endif
|
|||||||
REGRESS_OPTS = --dbname=regress1,connectdb --create-role=connectuser,connectdb $(EXTRA_REGRESS_OPTS)
|
REGRESS_OPTS = --dbname=regress1,connectdb --create-role=connectuser,connectdb $(EXTRA_REGRESS_OPTS)
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule
|
$(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule
|
||||||
|
|
||||||
# the same options, but with --listen-on-tcp
|
# the same options, but with --listen-on-tcp
|
||||||
checktcp: all
|
checktcp: all
|
||||||
$(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --host=localhost
|
$(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --host=localhost
|
||||||
|
|
||||||
installcheck: all
|
installcheck: all
|
||||||
./pg_regress $(REGRESS_OPTS) --bindir='$(bindir)' $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule
|
./pg_regress $(REGRESS_OPTS) --bindir='$(bindir)' $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule
|
||||||
|
@ -55,7 +55,7 @@ installcheck: all
|
|||||||
./pg_isolation_regress --bindir='$(bindir)' $(EXTRA_REGRESS_OPTS) --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule
|
./pg_isolation_regress --bindir='$(bindir)' $(EXTRA_REGRESS_OPTS) --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(with_temp_install) ./pg_isolation_regress --temp-instance=./tmp_check --inputdir=$(srcdir) --bindir= $(EXTRA_REGRESS_OPTS) --schedule=$(srcdir)/isolation_schedule
|
$(with_temp_install) ./pg_isolation_regress --temp-instance=./tmp_check $(TEMP_CONF) --inputdir=$(srcdir) --bindir= $(EXTRA_REGRESS_OPTS) --schedule=$(srcdir)/isolation_schedule
|
||||||
|
|
||||||
# Versions of the check tests that include the prepared_transactions test
|
# Versions of the check tests that include the prepared_transactions test
|
||||||
# It only makes sense to run these if set up to use prepared transactions,
|
# It only makes sense to run these if set up to use prepared transactions,
|
||||||
@ -65,4 +65,4 @@ installcheck-prepared-txns: all temp-install
|
|||||||
./pg_isolation_regress --bindir='$(bindir)' $(EXTRA_REGRESS_OPTS) --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule prepared-transactions
|
./pg_isolation_regress --bindir='$(bindir)' $(EXTRA_REGRESS_OPTS) --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule prepared-transactions
|
||||||
|
|
||||||
check-prepared-txns: all temp-install
|
check-prepared-txns: all temp-install
|
||||||
./pg_isolation_regress --temp-instance=./tmp_check $(EXTRA_REGRESS_OPTS) --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule prepared-transactions
|
./pg_isolation_regress --temp-instance=./tmp_check $(TEMP_CONF) $(EXTRA_REGRESS_OPTS) --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule prepared-transactions
|
||||||
|
@ -17,12 +17,6 @@ subdir = src/test/regress
|
|||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
# file with extra config for temp build
|
|
||||||
TEMP_CONF =
|
|
||||||
ifdef TEMP_CONFIG
|
|
||||||
TEMP_CONF += --temp-config=$(TEMP_CONFIG)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# maximum simultaneous connections for parallel tests
|
# maximum simultaneous connections for parallel tests
|
||||||
MAXCONNOPT =
|
MAXCONNOPT =
|
||||||
ifdef MAX_CONNECTIONS
|
ifdef MAX_CONNECTIONS
|
||||||
@ -131,10 +125,10 @@ tablespace-setup:
|
|||||||
REGRESS_OPTS = --dlpath=. $(EXTRA_REGRESS_OPTS)
|
REGRESS_OPTS = --dlpath=. $(EXTRA_REGRESS_OPTS)
|
||||||
|
|
||||||
check: all tablespace-setup
|
check: all tablespace-setup
|
||||||
$(pg_regress_check) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(TEMP_CONF) $(EXTRA_TESTS)
|
$(pg_regress_check) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS)
|
||||||
|
|
||||||
check-tests: all tablespace-setup
|
check-tests: all tablespace-setup
|
||||||
$(pg_regress_check) $(REGRESS_OPTS) $(MAXCONNOPT) $(TEMP_CONF) $(TESTS) $(EXTRA_TESTS)
|
$(pg_regress_check) $(REGRESS_OPTS) $(MAXCONNOPT) $(TESTS) $(EXTRA_TESTS)
|
||||||
|
|
||||||
installcheck: all tablespace-setup
|
installcheck: all tablespace-setup
|
||||||
$(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS)
|
$(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user