pgsql: Make TAP tests work on Windows.

Started by Heikki Linnakangasalmost 11 years ago3 messagescomitters
Jump to latest
#1Heikki Linnakangas
heikki.linnakangas@enterprisedb.com

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Heikki Linnakangas (#1)
Re: pgsql: Make TAP tests work on Windows.

Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:

Make TAP tests work on Windows.

I think this might've broken buildfarm member crake.

regards, tom lane

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

#3Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Tom Lane (#2)
Re: pgsql: Make TAP tests work on Windows.

On 07/29/2015 08:37 PM, Tom Lane wrote:

Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:

Make TAP tests work on Windows.

I think this might've broken buildfarm member crake.

Oh, I didn't realize the TAP tests can also run in "make installcheck"
mode. Fixed, I hope..

- Heikki

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