From: Michael Paquier <michael.paquier@gmail.com>
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Add TAP tests for password-based authentication methods.
Date: Sat, 18 Mar 2017 21:55:26 +0900
Message-ID: <CAB7nPqRZ_LNTCJ7gGjE_SpRanGoALfTgsxdauNsKq+LBRH9fxg@mail.gmail.com> (raw)
In-Reply-To: <E1cooJj-0005Tu-Ky@gemulon.postgresql.org>
References: <E1cooJj-0005Tu-Ky@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On Fri, Mar 17, 2017 at 6:37 PM, Heikki Linnakangas
<heikki.linnakangas@iki.fi> wrote:
> Add TAP tests for password-based authentication methods.
>
> Tests all combinations of users with MD5, plaintext and SCRAM verifiers
> stored in pg_authid, with plain 'password', 'md5' and 'scram'
> authentication methods.
This patch has forgotten two things:
1) src/test/authentication/.gitignore.
2) A refresh of vcregress.pl to run this test suite on Windows.
Please find attached a patch to address both issues.
--
Michael
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackersAttachments:auth-test-fixes.patch (text/x-patch, 2.7K) downloaddiff --git a/doc/src/sgml/install-windows.sgml b/doc/src/sgml/install-windows.sgmlindex ecec0a60c7..4ef8d31f8e 100644--- a/doc/src/sgml/install-windows.sgml+++ b/doc/src/sgml/install-windows.sgml@@ -451,6 +451,7 @@ $ENV{CONFIG}="Debug";
<userinput>vcregress ecpgcheck</userinput>
<userinput>vcregress isolationcheck</userinput>
<userinput>vcregress bincheck</userinput>
+<userinput>vcregress authcheck</userinput>
<userinput>vcregress recoverycheck</userinput>
<userinput>vcregress upgradecheck</userinput>
</screen>
@@ -467,8 +468,9 @@ $ENV{CONFIG}="Debug";
<para>
Running the regression tests on client programs, with
- <command>vcregress bincheck</>, or on recovery tests, with- <command>vcregress recoverycheck</>, requires an additional Perl module+ <command>vcregress bincheck</>, on recovery tests, with+ <command>vcregress recoverycheck</>, or on authentication tests with+ <command>vcregress authcheck</> requires an additional Perl module
to be installed:
<variablelist>
<varlistentry>
diff --git a/src/test/authentication/.gitignore b/src/test/authentication/.gitignorenew file mode 100644index 0000000000..871e943d50--- /dev/null+++ b/src/test/authentication/.gitignore@@ -0,0 +1,2 @@+# Generated by test suite+/tmp_check/diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.plindex f1b9819cd2..c3cb4d0c74 100644--- a/src/tools/msvc/vcregress.pl+++ b/src/tools/msvc/vcregress.pl@@ -34,7 +34,7 @@ if (-e "src/tools/msvc/buildenv.pl")
my $what = shift || "";
if ($what =~
-/^(check|installcheck|plcheck|contribcheck|modulescheck|ecpgcheck|isolationcheck|upgradecheck|bincheck|recoverycheck)$/i+/^(check|installcheck|plcheck|contribcheck|modulescheck|ecpgcheck|isolationcheck|upgradecheck|bincheck|recoverycheck|authcheck)$/i
)
{
$what = uc $what;
@@ -90,6 +90,7 @@ my %command = (
ISOLATIONCHECK => \&isolationcheck,
BINCHECK => \&bincheck,
RECOVERYCHECK => \&recoverycheck,
+ AUTHCHECK => \&authcheck,
UPGRADECHECK => \&upgradecheck,);
my $proc = $command{$what};
@@ -373,6 +374,16 @@ sub recoverycheck
exit $status if $status;
}
+sub authcheck+{+ InstallTemp();++ my $mstat = 0;+ my $dir = "$topdir/src/test/authentication";+ my $status = tap_check($dir);+ exit $status if $status;+}+
# Run "initdb", then reconfigure authentication.
sub standard_initdb
{
@@ -599,6 +610,7 @@ sub usage
print STDERR
"Usage: vcregress.pl <mode> [ <schedule> ]\n\n",
"Options for <mode>:\n",
+ " authcheck run authentication test suite\n",
" bincheck run tests of utilities in src/bin/\n",
" check deploy instance and run regression tests on it\n",
" contribcheck run tests of modules in contrib/\n",
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael.paquier@gmail.com, heikki.linnakangas@iki.fi, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Add TAP tests for password-based authentication methods.
In-Reply-To: <CAB7nPqRZ_LNTCJ7gGjE_SpRanGoALfTgsxdauNsKq+LBRH9fxg@mail.gmail.com>
References: <E1cooJj-0005Tu-Ky@gemulon.postgresql.org> <CAB7nPqRZ_LNTCJ7gGjE_SpRanGoALfTgsxdauNsKq+LBRH9fxg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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