Re: Detection of IPC::Run presence in SSL TAP tests
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>,
Heikki Linnakangas <hlinnaka@iki.fi>
Date: 2017-06-13T14:14:18Z
Lists: pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes: > 001_ssltests.pl in src/test/ssl/ includes the following to skip all > tests should IPC::Run be not available: > ... > In all the other tests or modules we don't bother about such a thing > as prove_check only works if --enable-tap-test is used, and we get a > hard failure anyway if trying to run the TAP tests with the configure > switch but without IPC::Run installed. Heikki, this looks like > unnecessary crafting to me, no? prove_check being enforced in > Makefile.global already gives enough guarantee. Certainly, it's pointless to have a defense only here. And I know very well that make check falls over in an ugly, hard-to-interpret-if-you've- not-seen-it-before fashion if you do --enable-tap-tests and don't have IPC::Run installed. I'd vote for removing this and adding a configure-time check that insists on IPC::Run when --enable-tap-tests is given. regards, tom lane
Commits
-
Make configure check for IPC::Run when --enable-tap-tests is specified.
- c254970ad609 10.0 landed