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

BogDan bog_dan_ro at yahoo.com
Thu Nov 27 08:44:34 CET 2014


Hi,

You need to use qtbase/tests/auto/android/runtests_androiddeployqt.pl tool.

Cheers,
BogDan.




----- Original Message -----
From: Pekka Nikander <pekka.nikander at iki.fi>
To: android-development at qt-project.org
Cc: 
Sent: Thursday, November 27, 2014 7:54 AM
Subject: [Android-development] How to run Qt unit tests under Android?

[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

_______________________________________________
Android-development mailing list
Android-development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/android-development



More information about the Android-development mailing list