libvirt/src/access
Andrea Bolognani 87f14badd0 meson: Disable all tests when tests are disabled
Currently, passing -Dtests=disabled only disables a subset of
tests: those that are written in C and thus require compilation.
Other tests, such as the syntax-check ones and those that are
implemented as scripts, are always enabled.

There's a potentially dangerous consequence of this behavior:
when tests are disabled, 'meson test' will succeed as if they
had been enabled. No indication of this will be shown, so the
user will likely make the reasonable assumption that everything
is fine when in fact the significantly reduced coverage might
be hiding failures.

To solve this issues, disable *all* tests when asked to do so,
and inject an intentionally failing test to ensure that 'meson
test' doesn't succeed.

Best viewed with 'git show -w'.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2023-10-26 11:31:24 +02:00
..
meson.build meson: Disable all tests when tests are disabled 2023-10-26 11:31:24 +02:00
viraccessdriver.h access: Remove unused includes 2022-06-16 06:43:55 +02:00
viraccessdrivernop.c lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
viraccessdrivernop.h src/access: use #pragma once in headers 2019-06-13 17:05:08 +02:00
viraccessdriverpolkit.c access: Update format strings in translated messages 2023-04-01 11:40:31 +02:00
viraccessdriverpolkit.h src/access: use #pragma once in headers 2019-06-13 17:05:08 +02:00
viraccessdriverstack.c access: Remove unused includes 2022-06-16 06:43:55 +02:00
viraccessdriverstack.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
viraccessmanager.c access: Update format strings in translated messages 2023-04-01 11:40:31 +02:00
viraccessmanager.h access: Remove unused includes 2022-06-16 06:43:55 +02:00
viraccessperm.c api: add virNodeDeviceUndefine() 2021-04-07 15:13:32 -05:00
viraccessperm.h access: Allow 'node-device.read' permission for anonymous users 2023-02-20 09:22:51 +01:00