Fix prove_installcheck to use correct paths when used with PGXS
authorAndrew Dunstan <[email protected]>
Thu, 1 Jul 2021 12:29:10 +0000 (08:29 -0400)
committerAndrew Dunstan <[email protected]>
Thu, 1 Jul 2021 13:02:46 +0000 (09:02 -0400)
commita0fc813266467d666b8f09ccccaccb700326a296
tree141bfab322868cbaf7167105337108eb36509d9b
parentc8bf5098cbc4f32ca724d830d45d5ceb2ad7f96d
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