how to use valgrind for TAP tests

From: "osumi(dot)takamichi(at)fujitsu(dot)com" <osumi(dot)takamichi(at)fujitsu(dot)com>
To: "'pgsql-hackers(at)lists(dot)postgresql(dot)org'" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: how to use valgrind for TAP tests
Date: 2020-12-18 08:45:24
Message-ID: OSBPR01MB4888D6D521201EE6DABC018AEDC30@OSBPR01MB4888.jpnprd01.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello, hackers

I have a question about how to execute valgrind with TAP tests
in order to check some patches in the community.
My main interest is testing src/test/subscription now but
is there any general way to do it ?

The documentation [1] says
"It's important to realize that the TAP tests will start test server(s) even when you say make installcheck".
Then, when I executed postgres that is launched by valgrind, it didn't react to the test execution of "make installcheck".

In other words, I can execute make installcheck without starting up my instance,
because TAP tests create their own servers
at least in terms of the case of my interested test, src/test/subscription.

[1] - https://www.postgresql.org/docs/13/regress-tap.html

Could someone give me an advice ?

Best Regards,
Takamichi Osumi

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2020-12-18 08:59:33 Re: pgbench failed when -f option contains a char '@'
Previous Message Kyotaro Horiguchi 2020-12-18 08:30:56 Re: Minor documentation error regarding streaming replication protocol