On Wed, 2020-09-09 at 16:09 +0200, Pavel Hrdina wrote:
On Wed, Sep 09, 2020 at 03:56:08PM +0200, Andrea Bolognani wrote:
> Taking a step back,
> what are the reasons one might want to call either meson or ninja to
> run the test suite?
It might be more natural for users to run `ninja && ninja test` but
since meson 0.54.0 it is possible to run `meson compile && meson test`.
So the technically the only reason to use `meson test` instead of
`ninja test` is to use all the options of meson test.
It looks like you can even do 'meson install', so basically you can
do everything without ever invoking ninja directly.
Interestingly, the %meson RPMs macros, at least in the form they
currently exist in Fedora, seem to only use meson instead of ninja
for running tests in addition to the setup phase, where of course
using ninja is not an option. I wonder if, over time, that will
change...
--
Andrea Bolognani / Red Hat / Virtualization