mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-21 06:01:35 +01:00
Previously, the CMake build enabled tests by default, and enabled both
modular and intrusive (embedded) tests with a single option. This is
a really bad idea if anyone is using CMake-built binaries in production.
DBUS_BUILD_TESTS now enables only the modular tests, which are safe to
enable in production builds.
A new DBUS_ENABLE_INTRUSIVE_TESTS option enables the intrusive test
instrumentation.
To preserve existing test coverage, explicitly enable the intrusive
tests in most CMake-based Gitlab-CI jobs (Debian native, openSUSE native,
Windows).
In jobs that have a mirrored pair of production/debug builds (openSUSE
and Debian mingw32/mingw64 cmake), instead we leave the production
build as-is and only build full test coverage in the debug build.
Co-authored-by: Philip Withnall <philip@tecnocode.co.uk>
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| bus | ||
| modules | ||
| bus-test.bat.cmake | ||
| config.h.cmake | ||
| ConfigureChecks.cmake | ||
| dbus-env.bat.cmake | ||
| DBus1Config.cmake.in | ||
| DBus1Config.pkgconfig.in | ||
| DBus1ConfigVersion.cmake.in | ||
| i686-w64-mingw32.cmake | ||
| meson.build | ||
| x86_64-w64-mingw32.cmake | ||