pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Make TAP tests work on Windows.
3+ messages / 3 participants
[nested] [flat]

* pgsql: Make TAP tests work on Windows.
@ 2015-07-29 16:37 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  2015-07-29 17:37 ` Re: pgsql: Make TAP tests work on Windows. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Heikki Linnakangas @ 2015-07-29 16:37 UTC (permalink / raw)
  To: 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(-)


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


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

* Re: pgsql: Make TAP tests work on Windows.
  2015-07-29 16:37 pgsql: Make TAP tests work on Windows. Heikki Linnakangas <heikki.linnakangas@iki.fi>
@ 2015-07-29 17:37 ` Tom Lane <tgl@sss.pgh.pa.us>
  2015-07-29 18:03   ` Re: pgsql: Make TAP tests work on Windows. Heikki Linnakangas <hlinnaka@iki.fi>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2015-07-29 17:37 UTC (permalink / raw)
  To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers

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



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

* Re: pgsql: Make TAP tests work on Windows.
  2015-07-29 16:37 pgsql: Make TAP tests work on Windows. Heikki Linnakangas <heikki.linnakangas@iki.fi>
  2015-07-29 17:37 ` Re: pgsql: Make TAP tests work on Windows. Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-07-29 18:03   ` Heikki Linnakangas <hlinnaka@iki.fi>
  0 siblings, 0 replies; 3+ messages in thread

From: Heikki Linnakangas @ 2015-07-29 18:03 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

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



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


end of thread, other threads:[~2015-07-29 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-29 16:37 pgsql: Make TAP tests work on Windows. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-07-29 17:37 ` Tom Lane <tgl@sss.pgh.pa.us>
2015-07-29 18:03   ` Heikki Linnakangas <hlinnaka@iki.fi>

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