Import auth-test-fixes.patch scram-leftovers
authorHeikki Linnakangas <[email protected]>
Mon, 20 Mar 2017 06:19:57 +0000 (08:19 +0200)
committerHeikki Linnakangas <[email protected]>
Mon, 20 Mar 2017 06:19:57 +0000 (08:19 +0200)
doc/src/sgml/install-windows.sgml
src/tools/msvc/vcregress.pl

index ecec0a60c7e00d4936a1e6496927cfb22a38d3ab..4ef8d31f8eb8d4ef6fbac4554b95652ce250e6ba 100644 (file)
@@ -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>
index f1b9819cd2e34f5d68198ab69f501cfb64753f8c..c3cb4d0c74aed0b47ccb4311025e2ce95c204192 100644 (file)
@@ -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",