Re: Supporting TAP tests with MSVC and Windows
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Noah Misch <noah@leadboat.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2015-04-10T02:29:57Z
Lists: pgsql-hackers
Attachments
- 0001-Add-support-for-TAP-tests-on-Windows.patch (text/x-patch) patch 0001
(Thanks Noah for pointing out that the patch did not reach the MLs..) On Fri, Apr 3, 2015 at 3:40 PM, Michael Paquier wrote: >> That's not a complete review, just some highlights. > > Thanks again. Here is a v2 with the following changes: - Use an environment variable to define where pg_regress is located. - Use SSPI to access a node in the tests, to secure the test environment. - Rebase on latest HEAD - SSL tests are run only if build is configured with openssl A couple of things to note: - pg_rewind tests are still disabled, waiting for the outcome of 5519F169.8030406@gmx.net. They will need some tweaks. - SSL tests can work if an equivalent of cp is available, like something installed with msysgit... IMO the scripts in src/test/ssl should be patched to be made more portable (see http://www.postgresql.org/message-id/CAB7nPqQivFxnSjPwkyapa8=HTGm0hfDNvdGcM3=hkK6fPT0+Pg@mail.gmail.com) - I tested the scripts with MinGW and this patch and got them working. As prove can fail because of a bad perl interpreter, pointing to /usr/bin/perl, it is necessary to enforce "PROVE = c:\Perl64\bin\perl c:\Perl64\bin\prove" or similar. That's not beautiful, but it works, and the t/ scripts need no further modifications. At least I checked that. Regards, -- Michael
Commits
-
Account for IPC::Run::result() Windows behavior change.
- 50bee42021b5 9.4 (unreleased) landed
- 877cfeb4fb11 9.5 (unreleased) landed
- 7298b904b885 9.6 (unreleased) landed
- ec6ba191ce5a 10 (unreleased) landed
- 791dd7579149 11.19 landed
- 36dd0074af9f 12.14 landed
- d419d391fc21 13.10 landed
- aaf28c906544 14.7 landed
- 41afaa1ed4d4 15.2 landed
- aca93b5f189a 16.0 landed
-
Make TAP tests work on Windows.
- 13d856e177e6 9.6.0 cited