Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZO7e-0005tU-Ty for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2015 19:00:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZZO7e-0000pT-B6 for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2015 19:00:02 +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 1ZZO6J-0007mQ-Sb for pgsql-hackers@postgresql.org; Tue, 08 Sep 2015 18:58:40 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZZO6H-0005Vr-13 for pgsql-hackers@postgresql.org; Tue, 08 Sep 2015 18:58:38 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6D88D5F7A0; Tue, 8 Sep 2015 14:58:36 -0400 (EDT) Date: Tue, 8 Sep 2015 14:58:36 -0400 From: Stephen Frost To: Andrew Dunstan Cc: pgsql-hackers@postgresql.org Subject: Re: pgsql: Improve logging of TAP tests. Message-ID: <20150908185836.GK3685@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j5jlT4vaqTqcf+Qe" Content-Disposition: inline In-Reply-To: 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: 14:53:19 up 35 days, 3:23, 9 users, load average: 0.04, 0.13, 0.13 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 --j5jlT4vaqTqcf+Qe Content-Type: multipart/mixed; boundary="THr9lkkFelwAx3fI" Content-Disposition: inline --THr9lkkFelwAx3fI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Andrew Dunstan (andrew@dunslane.net) wrote: > Improve logging of TAP tests. [...] 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. The attached seems to fix it. Would be great to get feedback on it as I'm no Makefile expert (it took me far too long to run down what was happening and work out what seemed like the right fix..). Thanks! Stephen --THr9lkkFelwAx3fI Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix-makefile-tap-9.4.patch" Content-Transfer-Encoding: quoted-printable =46rom 79630d53ff16499651a10ade78372c301052306c Mon Sep 17 00:00:00 2001 =46rom: Stephen Frost Date: Tue, 8 Sep 2015 14:18:49 -0400 Subject: [PATCH] Add temp-check, with_temp_install definition - 9.4 Commit fa4a4df93c8c28d5684cacb1677fbd13f58bb9f2 attempted to backpatch to 9.4 a change to improve the logging of TAP tests. Unfortunately, due to how 9.4 and 9.5 had diverged, the backpatch to 9.4 depended on a few things which didn't exist in 9.4 (but did in 9.5), specifically, the 'temp-check' production and the 'with_temp_install' definition (which also required 'abs_top_builddir'). Add these definitions into REL9_4_STABLE to allow the TAP tests to run correctly under 'make check'. --- src/Makefile.global.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 13d4aa3..bea05ad 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -59,6 +59,7 @@ 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) @@ -316,6 +317,19 @@ 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 @@ -330,6 +344,10 @@ 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 --=20 1.9.1 --THr9lkkFelwAx3fI-- --j5jlT4vaqTqcf+Qe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJV7y/cAAoJEO1sijiDR2RVXdAP/iWlZclUl3LGOApmuPWlcKE8 v/PWGXDEpv7B6akT8NcyUU9EW4NAwnclflM/yjSiRxwVNeGuq10PqJ1faPshdXaX 969I8a2EOMpRqB6SPQij+RuUjWqLLto1uRbHbwXQ9yc5S2+EVBI5FtgTfW695FYj phTx7LsXSutxP4AO1DHNYWTIH3/RmJUYGiZ3kEBlCi4g2zAfDkbqHa/PN6oCxnhz OvsKCyfTP1Wkz3daayd5SO9tvdsfqoWUd6zyUPjyWspf0dO4MIcVxRXDefmGG2Op Lm0+H2JXAt0GgsoItYUBAqOYncdwMGs46HNR4yyrXOHQtq12rBj5eUaG7W0P5H6h VV7NS+gEMEnjK7eeyRQKhupXSSDXpIViXkLS1cwnrWyCF/Ed0mGe3QzxSRaSPNos jkOgau3TpgSeuiddoa54WPX2LUfTEdplM6CbVbUkgS6cYvQQrdBiko9+SLhEe/Ml 0MmUR4zS6PdBK3KMeZ8vRZPW7czU9KmExaRnzStMzfLPIHjr/1VMCe41EGKE03NJ tCajW/mQ/gvjBFOBdowYuc5yU3zP5+JJBx9/Aza+WEaCHDWa7ff7zNATwHIiScc8 dWCOYiSGehfxa2yHNKjwKa/ANn/WSBl0TRf2XNQZyTZOKi2IV0sGYvSoqdrEjglU L4W/wIAkMJVsPVxpQWZ7 =CgSN -----END PGP SIGNATURE----- --j5jlT4vaqTqcf+Qe--