1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add PG_TEST_EXTRA to control optional test suites

The SSL and LDAP test suites are not run by default, as they are not
secure for multi-user environments.  This commit adds an extra make
variable to optionally enable them, for example:

make check-world PG_TEST_EXTRA='ldap ssl'

Author: Michael Paquier <michael@paquier.xyz>
This commit is contained in:
Peter Eisentraut
2018-03-03 01:29:51 -05:00
parent 0b1d1a038b
commit fdb34824e0
5 changed files with 61 additions and 5 deletions

View File

@ -211,6 +211,44 @@ make installcheck-world
option <option>--enable-tap-tests</option>. This is recommended for
development, but can be omitted if there is no suitable Perl installation.
</para>
<para>
Some test suites are not run by default, either because they are not secure
to run on a multiuser system or because they require special software. You
can decide which test suites to run additionally by setting the
<command>make</command> or environment variable
<varname>PG_TEST_EXTRA</varname> to a whitespace-separated list, for
example:
<programlisting>
make check-world PG_TEST_EXTRA='ldap ssl'
</programlisting>
The following values are currently supported:
<variablelist>
<varlistentry>
<term><literal>ldap</literal></term>
<listitem>
<para>
Runs the test suite under <filename>src/test/ldap</filename>. This
requires an <productname>OpenLDAP</productname> installation and opens
TCP/IP listen sockets.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>ssl</literal></term>
<listitem>
<para>
Runs the test suite under <filename>src/test/ssl</filename>. This opens TCP/IP listen sockets.
</para>
</listitem>
</varlistentry>
</variablelist>
Tests for features that are not supported by the current build
configuration are not run even if they are mentioned in
<varname>PG_TEST_EXTRA</varname>.
</para>
</sect2>
<sect2>