pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Make TAP tests work on Windows.
Date: Wed, 29 Jul 2015 16:37:54 +0000
Message-ID: <E1ZKUMc-00082g-AF@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Make TAP tests work on Windows.

On Windows, use listen_address=127.0.0.1 to allow TCP connections. We were
already using "pg_regress --config-auth" to set up HBA appropriately. The
standard_initdb helper function now sets up the server's
unix_socket_directories or listen_addresses in the config file, so that
they don't need to be specified in the pg_ctl command line anymore. That
way, the pg_ctl invocations in test programs don't need to differ between
Windows and Unix.

Add another helper function to configure the server's pg_hba.conf to allow
replication connections. The configuration is done similarly to "pg_regress
--config-auth": trust on domain sockets on Unix, and SSPI authentication on
Windows.

Replace calls to "cat" and "touch" programs with built-in perl code, as
those programs don't normally exist on Windows.

Add instructions in the docs on how to install IPC::Run on Windows. Adjust
vcregress.pl to not replace PERL5LIB completely in vcregress.pl, because
otherwise cannot install IPC::Run in a non-standard location easily.

Michael Paquier, reviewed by Noah Misch, some additional tweaking by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/13d856e177e69083f543d6383eeda9e12ce3c55c

Modified Files
--------------
doc/src/sgml/install-windows.sgml            |   24 +++++
src/Makefile.global.in                       |    2 +-
src/bin/pg_basebackup/t/010_pg_basebackup.pl |  139 +++++++++++++-------------
src/bin/pg_ctl/t/001_start_stop.pl           |   14 ++-
src/bin/pg_ctl/t/002_status.pl               |    4 -
src/bin/pg_rewind/RewindTest.pm              |   21 ++--
src/test/perl/TestLib.pm                     |   76 ++++++++++++--
src/tools/msvc/clean.bat                     |    7 ++
src/tools/msvc/vcregress.pl                  |   46 ++++++++-
9 files changed, 232 insertions(+), 101 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (3+ messages)  latest in thread

Message-ID: <E1ZKUMc-00082g-AF@gemulon.postgresql.org>
Permalink:  ../E1ZKUMc-00082g-AF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZKUMc-00082g-AF@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Make TAP tests work on Windows.
  In-Reply-To: <E1ZKUMc-00082g-AF@gemulon.postgresql.org>
  References: <E1ZKUMc-00082g-AF@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