pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add module build directory to the PATH for TAP tests
2+ messages / 1 participants
[nested] [flat]

* pgsql: Add module build directory to the PATH for TAP tests
@ 2021-10-22 13:50 Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Dunstan @ 2021-10-22 13:50 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f4ce6c4d3a30ec3a12c7f64b90a6fc82887ddd7b

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add module build directory to the PATH for TAP tests
@ 2021-10-22 13:50 Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Dunstan @ 2021-10-22 13:50 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-10-22 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 13:50 pgsql: Add module build directory to the PATH for TAP tests Andrew Dunstan <andrew@dunslane.net>
2021-10-22 13:50 pgsql: Add module build directory to the PATH for TAP tests Andrew Dunstan <andrew@dunslane.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox