Add 'tap_tests' flag in config_default.pl
authorAlvaro Herrera
Fri, 4 Mar 2016 15:59:47 +0000 (12:59 -0300)
committerAlvaro Herrera
Fri, 4 Mar 2016 16:06:19 +0000 (13:06 -0300)
This makes the flag more visible for testers using the default file as a
template, increasing the likelyhood that the test suite will be run.
Also have the flag be displayed in the fake "configure" output, if set.

This patch is two new lines only, but perltidy decides to shift things
around which makes it appear a bit bigger.

Author: Michaël Paquier
Reviewed-by: Craig Ringer
Discussion: https://www.postgresql.org/message-id/CAB7nPqRet6UAP2APhZAZw%3DVhJ6w-Q-gGLdZkrOqFgd2vc9-ZDw%40mail.gmail.com

src/tools/msvc/Solution.pm
src/tools/msvc/config_default.pl

index 24dcd995413ea0708f50d9427e540469f362885a..9493fb675fa4a1bb853ccb639243876399dad8dc 100644 (file)
@@ -627,6 +627,7 @@ sub GetFakeConfigure
    $cfg .= ' --enable-integer-datetimes'
      if ($self->{options}->{integer_datetimes});
    $cfg .= ' --enable-nls' if ($self->{options}->{nls});
+   $cfg .= ' --enable-tap-tests' if ($self->{options}->{tap_tests});
    $cfg .= ' --with-ldap'  if ($self->{options}->{ldap});
    $cfg .= ' --without-zlib' unless ($self->{options}->{zlib});
    $cfg .= ' --with-extra-version' if ($self->{options}->{extraver});
index b9f2ff41f7309b48d7d4138d00385504b447da87..e50be7e42d23d672fdaaf1dfb6aea601fcad897a 100644 (file)
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 
 our $config = {
-   asserts => 0,    # --enable-cassert
+   asserts  => 0,    # --enable-cassert
      # integer_datetimes=>1,   # --enable-integer-datetimes - on is now default
      # float4byval=>1,         # --disable-float4-byval, on by default
 
@@ -13,18 +13,19 @@ our $config = {
    # blocksize => 8,         # --with-blocksize, 8kB by default
    # wal_blocksize => 8,     # --with-wal-blocksize, 8kB by default
    # wal_segsize => 16,      # --with-wal-segsize, 16MB by default
-   ldap     => 1,        # --with-ldap
-   extraver => undef,    # --with-extra-version=
-   nls      => undef,    # --enable-nls=
-   tcl      => undef,    # --with-tls=
-   perl     => undef,    # --with-perl
-   python   => undef,    # --with-python=
-   openssl  => undef,    # --with-openssl=
-   uuid     => undef,    # --with-ossp-uuid
-   xml      => undef,    # --with-libxml=
-   xslt     => undef,    # --with-libxslt=
-   iconv    => undef,    # (not in configure, path to iconv)
-   zlib     => undef     # --with-zlib=
+   ldap      => 1,        # --with-ldap
+   extraver  => undef,    # --with-extra-version=
+   nls       => undef,    # --enable-nls=
+   tap_tests => undef,    # --enable-tap-tests
+   tcl       => undef,    # --with-tls=
+   perl      => undef,    # --with-perl
+   python    => undef,    # --with-python=
+   openssl   => undef,    # --with-openssl=
+   uuid      => undef,    # --with-ossp-uuid
+   xml       => undef,    # --with-libxml=
+   xslt      => undef,    # --with-libxslt=
+   iconv     => undef,    # (not in configure, path to iconv)
+   zlib      => undef     # --with-zlib=
 };
 
 1;