Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAPsupport - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAPsupport
Date
Msg-id 20180210000753.GA1748@paquier.xyz
Whole thread Raw
In response to Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAP support  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAP support  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
On Thu, Feb 08, 2018 at 09:28:10AM -0500, Tom Lane wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
> That seems like possibly not such a great idea.  If somebody were using
> a run of src/test/ssl to check their build, they would now get no
> notification if they'd forgotten to build --with-openssl.
>
> Perhaps we could introduce some new targets, "check-if-enabled" or so,
> that act like you want.

Per this argument, we need to do something even for check and
installcheck anyway, no?  Except that what you are suggesting is to make
the tests fail instead of silently being bypassed.  Copying an
expression you used recently, this boils down to not spend CPU cycles
for nothing.  The TAP tests showing in red all over your screen don't
show any useful information either as one may be building with SSL
support, and still getting failures because he/she is working on an
SSL-related feature.

I prefer making the tests personally not fail, as when building without
SSL one needs to move down to run ./configure again, so he likely knows
what is is doing.  Bypassing them also has the advantage to not do
failure check dances, particularly in bash when using temporarily set
+e/-e to avoid a problem, so this makes things easier for most cases.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Ryan Pedela
Date:
Subject: Re: Built-in connection pooling
Next
From: Michael Paquier
Date:
Subject: Re: Wait event names mismatch: oldserxid