tests: Add support for adding internal tests

If the internal_tests option is enabled we build some internal tests
into the binary. These are added to the tests we run in testlibrary.

This is not intended to be enabled in production, as it adds size to
the real binary, but is useful for CI and development.
This commit is contained in:
Alexander Larsson
2025-07-04 10:46:28 +02:00
committed by Sebastian Wick
parent 14bfb56ba3
commit 5c12cd83a1
6 changed files with 56 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ jobs:
-Dgtkdoc=disabled \
-Dhttp_backend=curl \
-Dinternal_checks=true \
-Dinternal_tests=true \
-Dsystem_dbus_proxy=xdg-dbus-proxy \
_build
env:
@@ -123,6 +124,7 @@ jobs:
-Dgtkdoc=disabled \
-Dhttp_backend=soup \
-Dinternal_checks=true \
-Dinternal_tests=true \
_build
env:
CFLAGS: -O2 -Wp,-D_FORTIFY_SOURCE=2