Re: how to use valgrind for TAP tests

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: how to use valgrind for TAP tests
Дата
Msg-id 10dae4a1-e714-601d-7518-c19414255180@gmail.com
обсуждение исходный текст
Ответ на Re: how to use valgrind for TAP tests  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы RE: how to use valgrind for TAP tests  ("osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com>)
Список pgsql-hackers
Hello,

18.12.2020 19:02, Tom Lane 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.
I use the attached patch for this purpose, that slightly simplifies
things and covers all the other binaries:
git apply .../install-vrunner.patch
CPPFLAGS="-DUSE_VALGRIND -Og" ./configure --enable-tap-tests
--enable-debug --enable-cassert && make && make check
`make check-world` is possible too, with
src/bin/pg_ctl/t/001_start_stop.pl disabled (removed).

Best regards,
Alexander

Вложения

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

Предыдущее
От: "Joel Jacobson"
Дата:
Сообщение: Re: Weird special case in jsonb_concat()
Следующее
От: Etsuro Fujita
Дата:
Сообщение: Re: Asynchronous Append on postgres_fdw nodes.