Hi Alex,
I ran a few builds disabling CMake DBUILD_TESTING and the build time was about
the same. I'm not sure if by building plenty of recipes we can see a difference
in build time, since bitbake needs to build all the recipe dependencies that
use cmake bbclass.
Looking for some recipes that use ptest, I see examples like this:
- meta/recipes-multimedia/gstreamer/gstreamer1.0_1.24.3.bb: PACKAGECONFIG ??=
"${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
- meta/recipes-core/glib-networking/glib-networking_2.78.1.bb: PACKAGECONFIG
??= "gnutls environment ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '',
d)}"
- meta/recipes-support/libnl/libnl_3.9.0.bb: do_compile_ptest to compile only
when PTEST_ENABLED is enabled
- ... (and several more)
- one interesting one is meta/recipes-devtools/flex/flex_2.6.4.bb:
${@bb.utils.contains('PTEST_ENABLED', '1', '', 'file://disable-tests.patch', d)}
they decided to apply a patch to disable tests when ptest is off
Based on this, I would say that we don't want to build tests unless ptests are
enabled (so the argument that building tests also tests the code is moot). In
turn, it may be sensible to use the default CMake option to disable building of
tests.
Thanks,
Fabio
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200240):
https://lists.openembedded.org/g/openembedded-core/message/200240
Mute This Topic: https://lists.openembedded.org/mt/105688417/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-