|From:||Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>|
|Subject:||TAP test module - PostgresClient|
|Views:||Raw Message | Whole Thread | Download mbox|
It would be useful if we have interactive sessions for TAP
tests. My first attempt was apparently unstable one that was
Finally the test for the patch in the thread made not need such a
machinery but it is still potentially useful.
I found that there's already a implementation of Perl client but
I saw it was GPL. So before I see the code of the client, I made
a small set of Perl client (almost only) for the purpose of TAP
testing. (I don't want replace the existing library with this.)
The patch creates two modules PostgresClient and PgResult in
src/test/perl directory. (patch 1)
Typical usage of it is as follows.
my $server = get_new_node('server');
my $session1 = $server->get_new_session('postgres', 'session1');
my $result = $session1->exec("SELECT c1 FROM ft1 LIMIT 1;");
As an usage example, a test for postgres_fdw reconnection
behavior is added as patch 2.
NTT Open Source Software Center
|Next Message||Yugo Nagata||2017-12-28 09:04:22||[PATCH] GET DIAGNOSTICS FUNCTION_NAME|
|Previous Message||Yugo Nagata||2017-12-28 08:26:57||Re: [HACKERS] [PATCH] Lockable views|