Re: PXGS vs TAP tests - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: PXGS vs TAP tests
Date
Msg-id 53a6dc1b-f4d8-bec2-d4c4-6ded758f25f9@dunslane.net
Whole thread Raw
In response to Re: PXGS vs TAP tests  (Michael Paquier <michael@paquier.xyz>)
Responses Re: PXGS vs TAP tests  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On 6/21/21 8:23 PM, Michael Paquier wrote:
> On Sun, Jun 20, 2021 at 01:24:04PM -0400, Andrew Dunstan wrote:
>> Tests pass with the attached patch, which puts the setting in the
>> Makefile for the recovery tests. The script itself doesn't need any
>> changing.
> +REGRESS_SHLIB=$(abs_top_builddir)/src/test/regress/regress$(DLSUFFIX)
> +export REGRESS_SHLIB
> It may be better to add a comment here explaning why REGRESS_SHLIB is
> required in this Makefile then?
>
> While on it, could we split those commands into multiple lines and
> reduce the noise of future diffs?  Something as simple as that would
> make those prove commands easier to follow:
> +cd $(srcdir) && TESTDIR='$(CURDIR)' \
> +   $(with_temp_install) \
> +   PGPORT='6$(DEF_PGPORT)' \
> +   PG_REGRESS='$(CURDIR)/$(top_builddir)/src/test/regress/pg_regress' \
> +   REGRESS_SHLIB= '$(abs_top_builddir)/src/test/regress/regress$(DLSUFFIX)' \
> +   $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl)
>
> There are other places where this could happen, but the TAP commands
> are particularly long.


OK, done.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Refactor "mutually exclusive options" error reporting code in parse_subscription_options
Next
From: Dean Rasheed
Date:
Subject: Re: Numeric x^y for negative x