Fix prove_installcheck to use correct paths when used with PGXS
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 1 Jul 2021 12:48:24 +0000 (08:48 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 1 Jul 2021 12:48:24 +0000 (08:48 -0400)
commit16ed3ddbbbda1edf2511bff508bfd0910a844289
treebfdf349067c3a5bc5d3ca635e8d36072bdf90b1a
parente7be25039e4923a3a28a708d0cc141136e80546e
Fix prove_installcheck to use correct paths when used with PGXS

The prove_installcheck recipe in src/Makefile.global.in was emitting
bogus paths for a couple of elements when used with PGXS. Here we create
a separate recipe for the PGXS case that does it correctly. We also take
the opportunity to make the make the file more readable by breaking up
the prove_installcheck and prove_check recipes across several lines, and
to remove the setting for REGRESS_SHLIB to src/test/recovery/Makefile,
which is the only set of tests that actually need it.

Backpatch to all live branches

Discussion: https://postgr.es/m/f2401388-936b-f4ef-a07c-a0bcc49b3300@dunslane.net
src/Makefile.global.in
src/test/recovery/Makefile