RE: how to use valgrind for TAP tests

Поиск
Список
Период
Сортировка
От osumi.takamichi@fujitsu.com
Тема RE: how to use valgrind for TAP tests
Дата
Msg-id OSBPR01MB48882F53E1A912FC77A90F6CEDDD0@OSBPR01MB4888.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на Re: how to use valgrind for TAP tests  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello

On Saturday, December 19, 2020 1:03 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com> writes:
> > 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 standard solution is
>
> (1) Build normally (well, with -DUSE_VALGRIND)
> (2) Move the postgres executable aside, say
>     mv src/backend/postgres src/backend/postgres.orig
> (3) Replace the executable with a wrapper script that invokes
>     valgrind on the original executable
> (4) Now you can run "make check" with a valgrind'ed server,
>     as well as things that depend on "make check", such as TAP tests
>
> The script I use for (3) is attached; adjust paths and options to taste.
Thank you so much.
I couldn't come up with the idea to prepare a wrapper script.
This worked successfully.


Best,
    Takamichi Osumi



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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: New Table Access Methods for Multi and Single Inserts
Следующее
От: "osumi.takamichi@fujitsu.com"
Дата:
Сообщение: RE: how to use valgrind for TAP tests