From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add module build directory to the PATH for TAP tests |
Date: | 2021-10-22 13:50:58 |
Message-ID: | E1mduwk-0000hl-N7@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/52c0c11367fdac78a59997de2b24031c0501fbe7
Modified Files
--------------
src/Makefile.global.in | 10 +++++-----
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl | 7 +++----
src/tools/msvc/vcregress.pl | 3 +++
3 files changed, 11 insertions(+), 9 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-10-22 19:22:49 | pgsql: pg_dump: fix mis-dumping of non-global default privileges. |
Previous Message | Tom Lane | 2021-10-21 21:09:17 | pgsql: Doc: clarify a critical and undocumented aspect of simplehash.h. |