mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Allow using Unix-domain sockets on Windows in tests
The test suites currently don't use Unix-domain sockets on Windows. This optionally allows enabling that by setting the environment variable PG_TEST_USE_UNIX_SOCKETS. This should currently be considered experimental. In particular, pg_regress.c contains some comments that the cleanup code for Unix-domain sockets doesn't work correctly under Windows, which hasn't been an problem until now. But it's good enough for locally supervised testing of the functionality. Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com> Discussion: https://www.postgresql.org/message-id/flat/54bde68c-d134-4eb8-5bd3-8af33b72a010@2ndquadrant.com
This commit is contained in:
@@ -3,17 +3,16 @@
|
||||
# - Plain
|
||||
# - MD5-encrypted
|
||||
# - SCRAM-encrypted
|
||||
# This test cannot run on Windows as Postgres cannot be set up with Unix
|
||||
# sockets and needs to go through SSPI.
|
||||
# This test can only run with Unix-domain sockets.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use PostgresNode;
|
||||
use TestLib;
|
||||
use Test::More;
|
||||
if ($windows_os)
|
||||
if (!$use_unix_sockets)
|
||||
{
|
||||
plan skip_all => "authentication tests cannot run on Windows";
|
||||
plan skip_all => "authentication tests cannot run without Unix-domain sockets";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -1,16 +1,15 @@
|
||||
# Test password normalization in SCRAM.
|
||||
#
|
||||
# This test cannot run on Windows as Postgres cannot be set up with Unix
|
||||
# sockets and needs to go through SSPI.
|
||||
# This test can only run with Unix-domain sockets.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use PostgresNode;
|
||||
use TestLib;
|
||||
use Test::More;
|
||||
if ($windows_os)
|
||||
if (!$use_unix_sockets)
|
||||
{
|
||||
plan skip_all => "authentication tests cannot run on Windows";
|
||||
plan skip_all => "authentication tests cannot run without Unix-domain sockets";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user