Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAPsupport

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAPsupport
Дата
Msg-id 20180210000753.GA1748@paquier.xyz
обсуждение исходный текст
Ответ на Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAP support  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAP support
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ryan Pedela
Дата:
Сообщение: Re: Built-in connection pooling
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Wait event names mismatch: oldserxid