Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1610fcc

Browse files
committed
Some marginal tweaks to make 'make installcheck' mostly work when
building contrib with USE_PGXS. To make it work all the way, the pg_regress script would need to be included in the installation tree.
1 parent 4fc935a commit 1610fcc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

contrib/contrib-global.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/contrib-global.mk,v 1.9 2005/05/17 18:26:22 tgl Exp $
1+
# $PostgreSQL: pgsql/contrib/contrib-global.mk,v 1.10 2005/09/27 17:43:31 tgl Exp $
22

33
NO_PGXS = 1
4-
REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB)
54
include $(top_srcdir)/src/makefiles/pgxs.mk

src/makefiles/pgxs.mk

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PGXS: PostgreSQL extensions makefile
22

3-
# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.5 2005/08/12 21:02:25 momjian Exp $
3+
# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.6 2005/09/27 17:43:31 tgl Exp $
44

55
# This file contains generic rules to build many kinds of simple
66
# extension modules. You only need to set a few variables and include
@@ -205,6 +205,11 @@ distclean maintainer-clean: clean
205205

206206
ifdef REGRESS
207207

208+
# Calling makefile can set REGRESS_OPTS, but this is the default:
209+
ifndef REGRESS_OPTS
210+
REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB)
211+
endif
212+
208213
# When doing a VPATH build, must copy over the test .sql and .out
209214
# files so that the driver script can find them. We have to use an
210215
# absolute path for the targets, because otherwise make will try to
@@ -224,7 +229,9 @@ endif # VPATH
224229

225230
.PHONY: submake
226231
submake:
232+
ifndef PGXS
227233
$(MAKE) -C $(top_builddir)/src/test/regress pg_regress
234+
endif
228235

229236
# against installed postmaster
230237
installcheck: submake

0 commit comments

Comments
 (0)