From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Make TAP tests work on Windows. |
Date: | 2015-07-29 16:37:54 |
Message-ID: | E1ZKUMc-00082g-AF@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2015-07-29 16:48:19 | pgsql: Add missing post create and alter hooks to policy objects. |
Previous Message | Robert Haas | 2015-07-29 15:33:17 | pgsql: Document how to build the docs using the website style. |