Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZeie-0007WC-1I for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2015 12:43:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZZeid-0004Ov-Ig for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2015 12:43:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZZehJ-0002tA-Uq for pgsql-hackers@postgresql.org; Wed, 09 Sep 2015 12:41:58 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZZehG-000719-OE for pgsql-hackers@postgresql.org; Wed, 09 Sep 2015 12:41:56 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 076465F7A0; Wed, 9 Sep 2015 08:41:53 -0400 (EDT) Date: Wed, 9 Sep 2015 08:41:53 -0400 From: Stephen Frost To: Noah Misch Cc: Andrew Dunstan , pgsql-hackers@postgresql.org Subject: Re: pgsql: Improve logging of TAP tests. Message-ID: <20150909124153.GZ3685@tamriel.snowman.net> References: <20150908185836.GK3685@tamriel.snowman.net> <20150909005440.GA3169795@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t/I1ocpmHybUt8D6" Content-Disposition: inline In-Reply-To: <20150909005440.GA3169795@tornado.leadboat.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 08:30:50 up 35 days, 21:01, 11 users, load average: 0.00, 0.01, 0.07 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --t/I1ocpmHybUt8D6 Content-Type: multipart/mixed; boundary="FR3k3qL2wj0LIzqF" Content-Disposition: inline --FR3k3qL2wj0LIzqF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Noah, * Noah Misch (noah@leadboat.com) wrote: > On Tue, Sep 08, 2015 at 02:58:36PM -0400, Stephen Frost wrote: > > * Andrew Dunstan (andrew@dunslane.net) wrote: > > > Improve logging of TAP tests. > >=20 > > [...] > >=20 > > This broke 'make check' for REL9_4_STABLE with --enable-tap-tests > > because it added a reference to 'with_temp_install' but didn't actually > > define it. >=20 > The corresponding commits for HEAD (1ea0620) and 9.5 (fa4a4df) added just= an > "rm" invocation to that Makefile. Commit ef57b98 had no occasion to do m= ore; > I suspect a merge accident. Best to revert the extra change: >=20 > --- a/src/Makefile.global.in > +++ b/src/Makefile.global.in > @@ -357,5 +357,7 @@ endef > define prove_check > rm -rf $(CURDIR)/tmp_check/log > -cd $(srcdir) && TESTDIR=3D'$(CURDIR)' $(with_temp_install) PGPORT=3D'6$(= DEF_PGPORT)' top_builddir=3D'$(CURDIR)/$(top_builddir)' $(PROVE) $(PG_PROVE= _FLAGS) $(PROVE_FLAGS) t/*.pl > +$(MKDIR_P) tmp_check/log > +$(MAKE) -C $(top_builddir) DESTDIR=3D'$(CURDIR)'/tmp_check/install insta= ll >'$(CURDIR)'/tmp_check/log/install.log 2>&1 > +cd $(srcdir) && TESTDIR=3D'$(CURDIR)' PATH=3D"$(CURDIR)/tmp_check/instal= l$(bindir):$$PATH" $(call add_to_path,$(ld_library_path_var),$(CURDIR)/tmp_= check/install$(libdir)) top_builddir=3D'$(CURDIR)/$(top_builddir)' PGPORT= =3D'6$(DEF_PGPORT)' $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) t/*.pl > endef Yup, reverting mine and applying the above appears to work based on my testing. Patch attached for review. Barring objections, I'll commit this in a few hours. Thanks! Stephen --FR3k3qL2wj0LIzqF Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix-makefile-tap-9.4-2.patch" Content-Transfer-Encoding: quoted-printable =46rom 78a6aa0e7db6b8b4ac731119932b2878450972df Mon Sep 17 00:00:00 2001 =46rom: Stephen Frost Date: Wed, 9 Sep 2015 08:31:35 -0400 Subject: [PATCH] Revert ed47666 and part of ef57b98 This reverts ed47666, which ended up adding a second tempoary installation for all 'make check' runs, and reverts the part of ef57b98 that changed the TAP 'prove_check' section, which appears to have been unintentional to begin with on this branch. Analysis and patch by Noah. --- src/Makefile.global.in | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/src/Makefile.global.in b/src/Makefile.global.in index bea05ad..eaa3ec4 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -59,7 +59,6 @@ endif endif else # not PGXS vpath_build =3D @vpath_build@ -abs_top_builddir =3D @abs_top_builddir@ abs_top_srcdir =3D @abs_top_srcdir@ =20 ifneq ($(vpath_build),yes) @@ -317,19 +316,6 @@ BZIP2 =3D bzip2 =20 # Testing =20 -check: temp-install - -.PHONY: temp-install -temp-install: -ifndef NO_TEMP_INSTALL -ifeq ($(MAKELEVEL),0) - rm -rf '$(abs_top_builddir)'/tmp_install - $(MKDIR_P) '$(abs_top_builddir)'/tmp_install/log - $(MAKE) -C '$(top_builddir)' DESTDIR=3D'$(abs_top_builddir)'/tmp_install = install >'$(abs_top_builddir)'/tmp_install/log/install.log 2>&1 -endif - $(if $(EXTRA_INSTALL),for extra in $(EXTRA_INSTALL); do $(MAKE) -C '$(top= _builddir)'/$$extra DESTDIR=3D'$(abs_top_builddir)'/tmp_install install >>'= $(abs_top_builddir)'/tmp_install/log/install.log || exit; done) -endif - PROVE =3D @PROVE@ PG_PROVE_FLAGS =3D -I $(top_srcdir)/src/test/perl/ PROVE_FLAGS =3D --verbose @@ -344,10 +330,6 @@ define ld_library_path_var $(if $(filter $(PORTNAME),darwin),DYLD_LIBRARY_PATH,$(if $(filter $(PORTNA= ME),aix),LIBPATH,LD_LIBRARY_PATH)) endef =20 -define with_temp_install -PATH=3D"$(abs_top_builddir)/tmp_install$(bindir):$$PATH" $(call add_to_pat= h,$(ld_library_path_var),$(abs_top_builddir)/tmp_install$(libdir)) -endef - ifeq ($(enable_tap_tests),yes) =20 define prove_installcheck @@ -356,7 +338,9 @@ endef =20 define prove_check rm -rf $(CURDIR)/tmp_check/log -cd $(srcdir) && TESTDIR=3D'$(CURDIR)' $(with_temp_install) PGPORT=3D'6$(DE= F_PGPORT)' top_builddir=3D'$(CURDIR)/$(top_builddir)' $(PROVE) $(PG_PROVE_F= LAGS) $(PROVE_FLAGS) t/*.pl +$(MKDIR_P) tmp_check/log +$(MAKE) -C $(top_builddir) DESTDIR=3D'$(CURDIR)'/tmp_check/install install= >'$(CURDIR)'/tmp_check/log/install.log 2>&1 +cd $(srcdir) && TESTDIR=3D'$(CURDIR)' PATH=3D"$(CURDIR)/tmp_check/install$= (bindir):$$PATH" $(call add_to_path,$(ld_library_path_var),$(CURDIR)/tmp_ch= eck/install$(libdir)) top_builddir=3D'$(CURDIR)/$(top_builddir)' PGPORT=3D'= 6$(DEF_PGPORT)' $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) t/*.pl endef =20 else --=20 1.9.1 --FR3k3qL2wj0LIzqF-- --t/I1ocpmHybUt8D6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJV8CkRAAoJEO1sijiDR2RVs/MP/21oBqkjJHshQ08lMHuaetGH bp7/x789RTmAVW0iwrlApMSFdCtazVBc2A6E8wqi2v2PwDQRoK8erf86h2kmuXBY O+pJn+RAq3ev4ySIYnPqrpkvOnUE4P10GZBq7zQfXlQbGj+EQ0lYgLPLpg3hTADh rgI/CRmvDkmjQoYWH2uxSTHcDzPhmTk4hEZ0oxHT2Xf9lfp80xfNxTgi4Ckgtlr9 XOVmWAbheTU7Tqbeqf01i/dDbILH7UCdRN44jT1WHj6u/NdalrlNg+bUtt0px2YL 5unWRBrKVK2UBegAUwdbatLuMtGWoJanDnXDc5li7HazxrTDwvbOfD246oK/GGRJ i+qargJPX+ykWQE6fgiHmzj1/5a9NVyfOWk8cYXb2yFyLBrrKthHHB8CqnbChlXL wByLk10IhZRuqFhM2vagh9Ix+a0w0Y/82yT00cU/NpLYcdrqDW6hcv3v/ncJvxvz 4afgnA2GWOpZWigSglQXm0G7aoFTs/EKNAbLsYzYV6nuyqKAyIGuAaPU9aylnrwF n+oNntxFxV6NfPOzkdLuypGao3PiTuNh3PghVjEMTE26SYYMCcUOF4oKkEZnMjgD t7mpF7h6RHqQuiVkWhP2te23u4ub9q+9Y9hd4pstNzcKjcRaC8Xmh0DyWPj35kEF Q+TP1wr4WxZh/m6afjG6 =IoQs -----END PGP SIGNATURE----- --t/I1ocpmHybUt8D6--