pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow using Unix-domain sockets on Windows in tests
Date: Mon, 30 Mar 2020 15:39:09 +0000
Message-ID: <E1jIwVJ-0001uL-Dz@gemulon.postgresql.org> (raw)

Allow using Unix-domain sockets on Windows in tests

The test suites currently don't use Unix-domain sockets on Windows.
This optionally allows enabling that by setting the environment
variable PG_TEST_USE_UNIX_SOCKETS.

This should currently be considered experimental.  In particular,
pg_regress.c contains some comments that the cleanup code for
Unix-domain sockets doesn't work correctly under Windows, which hasn't
been an problem until now.  But it's good enough for locally
supervised testing of the functionality.

Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/54bde68c-d134-4eb8-5bd3-8af33b72a010@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d53432ff940b789c2431ba476a2a6e2db3edf84

Modified Files
--------------
src/bin/pg_ctl/t/001_start_stop.pl        |  2 +-
src/test/authentication/t/001_password.pl |  7 +++---
src/test/authentication/t/002_saslprep.pl |  7 +++---
src/test/perl/PostgresNode.pm             |  4 ++--
src/test/perl/TestLib.pm                  |  8 ++++++-
src/test/regress/pg_regress.c             | 40 ++++++++++++++++++++-----------
6 files changed, 42 insertions(+), 26 deletions(-)



Message-ID: <E1jIwVJ-0001uL-Dz@gemulon.postgresql.org>
Permalink:  ../E1jIwVJ-0001uL-Dz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jIwVJ-0001uL-Dz@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Allow using Unix-domain sockets on Windows in tests
  In-Reply-To: <E1jIwVJ-0001uL-Dz@gemulon.postgresql.org>
  References: <E1jIwVJ-0001uL-Dz@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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