[Android-development] How to run Qt unit tests under Android?

Pekka Nikander pekka.nikander at iki.fi
Thu Nov 27 06:54:30 CET 2014


[My apologies if this has been discussed already, but I didn't find anything from the archives or elsewhere.  I'm myself newbie to Qt even though I have over 30 years of programming experience overall.]

I'm developing some Android-specific functionality for Qt, and would like to test it.  I've figured out how to write unit tests with QtTest/QTest, and I'm able to compile the test cases with qmake & make.  Each test case seems to compile into a separate ARM .so file. 

Now, how do I run these?  I presume I must run them in the emulator or on a real device, but "make checks" tries to simply run them on the host instead of uploading them and presumably running some wrapper that uses dynamic linker to open and run them.

What I am missing?

--Pekka Nikander

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4827 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20141127/2acb007b/attachment.bin>


More information about the Android-development mailing list