Provision of enabling tests for frameworks

Sharaf Zaman shzam at sdf.org
Thu Jan 12 19:49:13 GMT 2023


Aleix Pol <aleixpol at kde.org> writes:

> On Thu, Jan 12, 2023 at 7:22 PM Sharaf Zaman <shzam at sdf.org> wrote:
>>
>> Volker Krause <vkrause at kde.org> writes:
>>
>> > On Dienstag, 10. Januar 2023 19:10:24 CET Sharaf Zaman wrote:
>> >> Today I encountered a bug with KConfig [1], which surfaced because of the
>> >> quirks of QSaveFile and Android. Even though these bugs are trivial [2],
>> >> but having them in code is bad (especially since, saving files, configs can
>> >> be serious if not done properly).
>> >>
>> >> So, I’d like to ask, is there somebody who is working on getting unit tests
>> >> etc to work on Android for kde-frameworks? If not, do you think it would be
>> >> a good idea to think about it right now? Given more and more KDE apps are
>> >> getting on mobile platform.
>> >
>> > I absolutely would like to have Android unit tests! Having fixed some of those
>> > file I/O issue in Qt and KDE code myself I feel your pain there.
>> >
>> > As Aleix said, the main challenge is figuring out how to do that. It might help
>> > if we do CI builds for x86 rather than/in addition to ARM? Craft can do that,
>> > even if the current CI image might not contain that configuration. That might
>> > be easier to execute in the Android emulator then, which presumably is how we
>> > would run tests on the CI?
>> >
>> > Regards,
>> > Volker
>> >
>>
>> > It might help if we do CI builds for x86 rather than/in addition to ARM?
>>
>> Yes, I think it will be wise to have x86 image since the metrics will be more
>> realistic than emulation of ARM on x86.
>>
>> > Craft can do that, even if the current CI image might not contain that>
>> > configuration.
>>
>> You mean Craft can build x86 images or it can build _tests_? (which will make me
>> jump to try it :) )
>
> Building tests is easy, running them is the hard part as they’re weird
> .so files.
> Would we have to turn them all into apks? If that’s what it needs
> (which wouldn’t be entirely weird), we will need to do some work on
> it.
>
> Aleix


> Would we have to turn them all into apks? If that’s what it needs
> (which wouldn’t be entirely weird), we will need to do some work on
> it.

Good question. Previously in past I’ve run simple binaries straight from
/data/local/tmp using adb. Maybe it won’t be necessary to build APK for all but
a few tests that depend on say libQt5Gui.so?


More information about the KDE-Android mailing list