]> granicus.if.org Git - postgresql/commit
Make TAP tests work on Windows.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Jul 2015 16:17:02 +0000 (19:17 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Jul 2015 16:17:02 +0000 (19:17 +0300)
commit13d856e177e69083f543d6383eeda9e12ce3c55c
tree996a28e65f66ad64dd78f5b2495349a84db9040e
parent5f1066074cd85b829371a4123839d16f52553c3d
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.
doc/src/sgml/install-windows.sgml
src/Makefile.global.in
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_ctl/t/001_start_stop.pl
src/bin/pg_ctl/t/002_status.pl
src/bin/pg_rewind/RewindTest.pm
src/test/perl/TestLib.pm
src/tools/msvc/clean.bat
src/tools/msvc/vcregress.pl