Re: Document how to run only specific regress tests

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Document how to run only specific regress tests
Date: 2024-10-29 08:39:00
Message-ID: CACJufxE85YK_i9dDJdPk8HiaFAyHBVO7AEqDZOrqQ19WVJ=eEA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tue, Oct 29, 2024 at 12:40 PM Paul A Jungwirth
<pj(at)illuminatedcomputing(dot)com> wrote:
>
> I never knew this was possible, but I ran across a note on the meson
> wiki page[1]. I wish I knew about it years ago!
>
> This patch adds a note to
> https://www.postgresql.org/docs/current/regress-run.html so that other
> hackers and potential hackers will know about it.
>
> [1] https://wiki.postgresql.org/wiki/Meson

Thanks for your patch!
you can also check meson TESTS patch in
https://postgr.es/m/CAN55FZ3dSdvujT8yup1C=YOfTATrBrWcLtHmtXupcbog7Va-Xw@mail.gmail.com

Since this is mostly for postgres development, slightly expanding it
would be better.
I think we can also mention that:
1. all the available regress tests are on src/test/regress/sql.
2. regress test name is the same as these files omit file format.
For example "src/test/regress/sql/partition_join.sql" corresponding
regression test name is partition_join
3. individual tests will be executed in that specific order.
TESTS="test_setup copy'
will first execute 'test_setup' then 'copy'
4. Many tests depend on test_setup, some tests depend on create_index.
5. specify duplicate tests may make the tests fail.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message hubert depesz lubaczewski 2024-10-29 11:24:29 Re: psql command
Previous Message Daniel Gustafsson 2024-10-29 08:28:23 Re: Document how to run only specific regress tests