Re: meson and check-tests - Mailing list pgsql-hackers

From Nazir Bilal Yavuz
Subject Re: meson and check-tests
Date
Msg-id CAN55FZ2JBNNgDn2mLzNB9=2BsW_gueUV7Pwi8GvXqv3dRf9RDw@mail.gmail.com
Whole thread Raw
In response to Re: meson and check-tests  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
List pgsql-hackers
Hi,

On Mon, 23 Sept 2024 at 11:46, Nazir Bilal Yavuz <byavuz81@gmail.com> wrote:
> On Sat, 21 Sept 2024 at 09:01, jian he <jian.universality@gmail.com> wrote:
> > in [1] you mentioned "setup", but that "setup" is more or less like
> > "meson test  --suite setup --suite regress"
> > but originally, I thought was about "src/test/regress/sql/test_setup.sql".
> > for example, now you cannot run src/test/regress/sql/stats_ext.sql
> > without first running test_setup.sql, because some functions (like fipshash)
> > live in test_setup.sql.
>
> Postgres binaries are created at the build step in the make builds so
> these binaries can be used for the tests. But in the meson builds,
> they are created at the 'meson test  --suite setup' for the testing
> ('meson install' command creates binaries as well but they are not for
> testing, they are for installing binaries to the OS). So, 'meson test
> --suite setup' should be run before running regression tests.

The above sentence lacks some information. It appears that if binaries
are not created beforehand (only running configure, not make), they
are generated during tests in the make builds. This also applies to
meson builds when the meson test command is run, as meson executes
setup suite tests first, which creates the binaries. However, if we
specify a different test suite, like regress in this case, the setup
suite tests are not executed, and the binaries are not created,
preventing the tests from running. I am not sure how to configure
meson builds to run setup suite tests if they are not executed
beforehand.

-- 
Regards,
Nazir Bilal Yavuz
Microsoft



pgsql-hackers by date:

Previous
From: Vladlen Popolitov
Date:
Subject: Re: Increase of maintenance_work_mem limit in 64-bit Windows
Next
From: David Rowley
Date:
Subject: Re: PostgreSQL 17 RC1 & GA dates