Re: Running a single test

Aleksander Alekseev <aleksander@tigerdata.com>

From: Aleksander Alekseev <aleksander@tigerdata.com>
To: Viktor Holmberg <v@viktorh.net>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-11-17T11:15:52Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. doc: Document how to run a subset of regress tests

Hi Victor,

> Apologies if this is a n00b question - but really can’t find anything about it in the docs.
> I can run all the regression tests with `make test`. But is there a way to run a single specific test?
> It’d be nice to do this for example when adding extra assertions to a test, without touching the code.

I would recommend using Meson. It's much faster and Autotools support
will be removed in the future.

I have a little cheat sheet on the subject [1]. It's in Russian but
Google Translate will help. For instance you can do:

```
meson test -C build --suite postgresql:test_slru 'test_slru/regress'
```

If you believe there is room for improvement in the official
documentation, patches are welcome.

[1]: https://eax.me/2022/2022-12-19-postgresql-meson.html

-- 
Best regards,
Aleksander Alekseev