[Development] Tests, Shadow-Build and Cross-Compilation
Holger Hans Peter Freyther
holger at freyther.de
Mon Jan 30 07:56:49 CET 2012
On 01/29/2012 09:21 PM, Olivier Goffart wrote:
>> The other part/wish would be to always have deployment targets for the
>> testcases and generate a run script or such as part of the installation.
> There is QFINDTESTDATA and QTest::qFindTestData that have been added recently,
> I think for this reason. Have you heard of them?
no I did not hear of it, when trying to resolve the shadow build issue in
xmlpatterns i just grepped qtbase/tests and the SRCDIR solution popped up.
Sadly QFINDTESTDATA is not enough for xmlpatterns, e.g. the checkxmlfiles test
will try to find all .xml/.ui/.xhtml/.qrc... files in the module (this also
means that by moving this test out of Qt there is less test data).
The xml patterns test uses QDir(QL1String("../../../")) to find the files
recursively and QFINDTESTDATA determines that this will work with the build
directory. Should we just call it a crappy test as the testdata is not well
The other question is _should_ all tests be deployed or how do you plan to run
tests on the device?
More information about the Development