File tree Expand file tree Collapse file tree 5 files changed +14
-19
lines changed Expand file tree Collapse file tree 5 files changed +14
-19
lines changed Original file line number Diff line number Diff line change 11# contrib/contrib-global.mk
22
3- # file with extra config for temp build
4- ifdef TEMP_CONFIG
5- REGRESS_OPTS += --temp-config=$(TEMP_CONFIG )
6- endif
7-
83NO_PGXS = 1
94include $(top_srcdir ) /src/makefiles/pgxs.mk
Original file line number Diff line number Diff line change @@ -524,14 +524,20 @@ ifdef NO_LOCALE
524524NOLOCALE += --no-locale
525525endif
526526
527+ # file with extra config for temp build
528+ TEMP_CONF =
529+ ifdef TEMP_CONFIG
530+ TEMP_CONF += --temp-config=$(TEMP_CONFIG )
531+ endif
532+
527533pg_regress_locale_flags = $(if $(ENCODING ) ,--encoding=$(ENCODING ) ) $(NOLOCALE )
528534
529- 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 )
535+ 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 )
530536pg_regress_installcheck = $(top_builddir ) /src/test/regress/pg_regress --inputdir=$(srcdir ) --bindir='$(bindir ) ' $(pg_regress_locale_flags ) $(EXTRA_REGRESS_OPTS )
531537
532538pg_regress_clean_files = results/ regression.diffs regression.out tmp_check/ log/
533539
534- 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 )
540+ 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 )
535541pg_isolation_regress_installcheck = $(top_builddir ) /src/test/isolation/pg_isolation_regress --inputdir=$(srcdir ) $(pg_regress_locale_flags ) $(EXTRA_REGRESS_OPTS )
536542
537543# #########################################################################
Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ endif
7878REGRESS_OPTS = --dbname=regress1,connectdb --create-role=connectuser,connectdb $(EXTRA_REGRESS_OPTS )
7979
8080check : all
81- $(with_temp_install ) ./pg_regress $(REGRESS_OPTS ) --temp-instance=./tmp_check --bindir= $(pg_regress_locale_flags ) $(THREAD ) --schedule=$(srcdir ) /ecpg_schedule
81+ $(with_temp_install ) ./pg_regress $(REGRESS_OPTS ) --temp-instance=./tmp_check $( TEMP_CONF ) --bindir= $(pg_regress_locale_flags ) $(THREAD ) --schedule=$(srcdir ) /ecpg_schedule
8282
8383# the same options, but with --listen-on-tcp
8484checktcp : all
85- $(with_temp_install ) ./pg_regress $(REGRESS_OPTS ) --temp-instance=./tmp_check --bindir= $(pg_regress_locale_flags ) $(THREAD ) --schedule=$(srcdir ) /ecpg_schedule_tcp --host=localhost
85+ $(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
8686
8787installcheck : all
8888 ./pg_regress $(REGRESS_OPTS ) --bindir=' $(bindir)' $(pg_regress_locale_flags ) $(THREAD ) --schedule=$(srcdir ) /ecpg_schedule
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ installcheck: all
5555 ./pg_isolation_regress --bindir=' $(bindir)' $(EXTRA_REGRESS_OPTS ) --inputdir=$(srcdir ) --schedule=$(srcdir ) /isolation_schedule
5656
5757check : all
58- $(with_temp_install ) ./pg_isolation_regress --temp-instance=./tmp_check --inputdir=$(srcdir ) --bindir= $(EXTRA_REGRESS_OPTS ) --schedule=$(srcdir ) /isolation_schedule
58+ $(with_temp_install ) ./pg_isolation_regress --temp-instance=./tmp_check $( TEMP_CONF ) --inputdir=$(srcdir ) --bindir= $(EXTRA_REGRESS_OPTS ) --schedule=$(srcdir ) /isolation_schedule
5959
6060# Versions of the check tests that include the prepared_transactions test
6161# It only makes sense to run these if set up to use prepared transactions,
@@ -65,4 +65,4 @@ installcheck-prepared-txns: all temp-install
6565 ./pg_isolation_regress --bindir=' $(bindir)' $(EXTRA_REGRESS_OPTS ) --inputdir=$(srcdir ) --schedule=$(srcdir ) /isolation_schedule prepared-transactions
6666
6767check-prepared-txns : all temp-install
68- ./pg_isolation_regress --temp-instance=./tmp_check $(EXTRA_REGRESS_OPTS ) --inputdir=$(srcdir ) --schedule=$(srcdir ) /isolation_schedule prepared-transactions
68+ ./pg_isolation_regress --temp-instance=./tmp_check $(TEMP_CONF ) $( EXTRA_REGRESS_OPTS ) --inputdir=$(srcdir ) --schedule=$(srcdir ) /isolation_schedule prepared-transactions
Original file line number Diff line number Diff line change @@ -17,12 +17,6 @@ subdir = src/test/regress
1717top_builddir = ../../..
1818include $(top_builddir ) /src/Makefile.global
1919
20- # file with extra config for temp build
21- TEMP_CONF =
22- ifdef TEMP_CONFIG
23- TEMP_CONF += --temp-config=$(TEMP_CONFIG )
24- endif
25-
2620# maximum simultaneous connections for parallel tests
2721MAXCONNOPT =
2822ifdef MAX_CONNECTIONS
@@ -131,10 +125,10 @@ tablespace-setup:
131125REGRESS_OPTS = --dlpath=. $(EXTRA_REGRESS_OPTS )
132126
133127check : all tablespace-setup
134- $(pg_regress_check ) $(REGRESS_OPTS ) --schedule=$(srcdir ) /parallel_schedule $(MAXCONNOPT ) $(TEMP_CONF ) $( EXTRA_TESTS )
128+ $(pg_regress_check ) $(REGRESS_OPTS ) --schedule=$(srcdir ) /parallel_schedule $(MAXCONNOPT ) $(EXTRA_TESTS )
135129
136130check-tests : all tablespace-setup
137- $(pg_regress_check ) $(REGRESS_OPTS ) $(MAXCONNOPT ) $(TEMP_CONF ) $( TESTS ) $(EXTRA_TESTS )
131+ $(pg_regress_check ) $(REGRESS_OPTS ) $(MAXCONNOPT ) $(TESTS ) $(EXTRA_TESTS )
138132
139133installcheck : all tablespace-setup
140134 $(pg_regress_installcheck ) $(REGRESS_OPTS ) --schedule=$(srcdir ) /serial_schedule $(EXTRA_TESTS )
You can’t perform that action at this time.
0 commit comments