mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Extend and improve use of EXTRA_REGRESS_OPTS.
This is now used by ecpg tests, and not clobbered by pg_upgrade tests. This change won't affect anything that doesn't set this environment variable, but will enable the buildfarm to control exactly what port regression test installs will be running on, and thus to detect possible rogue postmasters more easily. Backpatch to release 9.2 where EXTRA_REGRESS_OPTS was first used.
This commit is contained in:
parent
31f38f28b0
commit
4ae5ee6c9b
@ -47,8 +47,9 @@ if [ "$1" = '--install' ]; then
|
|||||||
# We need to make it use psql from our temporary installation,
|
# We need to make it use psql from our temporary installation,
|
||||||
# because otherwise the installcheck run below would try to
|
# because otherwise the installcheck run below would try to
|
||||||
# use psql from the proper installation directory, which might
|
# use psql from the proper installation directory, which might
|
||||||
# be outdated or missing.
|
# be outdated or missing. But don't override anything else that's
|
||||||
EXTRA_REGRESS_OPTS=--psqldir=$bindir
|
# already in EXTRA_REGRESS_OPTS.
|
||||||
|
EXTRA_REGRESS_OPTS="$EXTRA_REGRESS_OPTS --psqldir=$bindir"
|
||||||
export EXTRA_REGRESS_OPTS
|
export EXTRA_REGRESS_OPTS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -75,13 +75,15 @@ $(remaining_files_build): $(abs_builddir)/%: $(srcdir)/%
|
|||||||
ln -s $< $@
|
ln -s $< $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Common options for tests. Also pick up anything passed in EXTRA_REGRESS_OPTS
|
||||||
|
REGRESS_OPTS = --dbname=regress1,connectdb --create-role=connectuser,connectdb $(EXTRA_REGRESS_OPTS)
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
./pg_regress --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb
|
./pg_regress $(REGRESS_OPTS) --top-builddir=$(top_builddir) --temp-install=./tmp_check $(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
|
||||||
./pg_regress --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --create-role=connectuser,connectdb --host=localhost
|
./pg_regress $(REGRESS_OPTS) --top-builddir=$(top_builddir) --temp-install=./tmp_check $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --host=localhost
|
||||||
|
|
||||||
installcheck: all
|
installcheck: all
|
||||||
./pg_regress --psqldir='$(PSQLDIR)' --dbname=regress1,connectdb --top-builddir=$(top_builddir) $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb
|
./pg_regress $(REGRESS_OPTS) --psqldir='$(PSQLDIR)' --top-builddir=$(top_builddir) $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule
|
||||||
|
Loading…
Reference in New Issue
Block a user