]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add module build directory to the PATH for TAP tests
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 22 Oct 2021 13:11:52 +0000 (09:11 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 22 Oct 2021 13:50:16 +0000 (09:50 -0400)
commit52c0c11367fdac78a59997de2b24031c0501fbe7
treeb54fdf48f1a3cc9de989e28339d6aa580318f4d4
parent9e84f6a7213314f6f6dcb66651525d1b7eda8591
Add module build directory to the PATH for TAP tests

For non-MSVC builds this is make's $(CURDIR), while for MSVC builds it
is $topdir/$Config/$module. The directory is added as the second element
in the PATH, so that the install location takes precedence, but the
added PATH element takes precedence over the rest of the PATH.

The reason for this is to allow tests to find built products that are
not installed, such as the libpq_pipeline test driver.

The libpq_pipeline test is adjusted to take advantage of this.

Based on a suggestion from Andres Freund.

Backpatch to release 14.

Discussion: https://postgr.es/m/4941f5a5-2d50-1a0e-6701-14c5fefe92d6@dunslane.net
src/Makefile.global.in
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
src/tools/msvc/vcregress.pl