Re: Unit tests for SLRU

Поиск
Список
Период
Сортировка
От Pavel Borisov
Тема Re: Unit tests for SLRU
Дата
Msg-id CALT9ZEGf5YW7iw90U+CDj7CpwbZSN4Qh+MMJwKm+E1jNY1K78A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Unit tests for SLRU  (Noah Misch <noah@leadboat.com>)
Ответы Re: Unit tests for SLRU  (Aleksander Alekseev <aleksander@timescale.com>)
Список pgsql-hackers
пт, 1 апр. 2022 г. в 07:47, Noah Misch <noah@leadboat.com>:
On Thu, Mar 31, 2022 at 05:30:41PM +0300, Aleksander Alekseev wrote:
> I used src/test/modules/test_* modules as an example.

> If time permits, please take a quick look at the patch and let me know
> if I'm moving the right direction. There will be more tests in the
> final version, but I would appreciate an early feedback.

The default place for this kind of test is regress.c, with plain "make check"
calling the regress.c function.  src/test/modules is for things requiring an
extension module or otherwise unable to run through regress.c.
+1 for placement c functions into regress.c if it's possible for the aim of simplification.

--
Best regards,
Pavel Borisov

Postgres Professional: http://postgrespro.com

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

Предыдущее
От: Matthias van de Meent
Дата:
Сообщение: Re: Preventing indirection for IndexPageGetOpaque for known-size page special areas
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: pg_rewind copies