diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-12-10 10:10:04 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-12-10 10:10:04 +1000 |
commit | 0644fe7814930cb11f0fc2749b01beff86838bfd (patch) | |
tree | b154e6bf8a88a9e836b6ac88d1f55cf933b785f4 /features | |
parent | 200a8ac92afa0d8c5ff54c929a345dd3e05d3dd7 (diff) |
Handle import paths in the test harness
The -import option can be supplied to the test harness to
add extra import directories.
Diffstat (limited to 'features')
-rw-r--r-- | features/qmltestcase.prf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/features/qmltestcase.prf b/features/qmltestcase.prf index d5cbedc..de3c641 100644 --- a/features/qmltestcase.prf +++ b/features/qmltestcase.prf @@ -15,3 +15,10 @@ win32:CONFIG(debug, debug|release) { } else { LIBS += -lQtQuickTest$${QT_LIBINFIX} } + +# If the .pro file specified an IMPORTPATH, then add that to +# the command-line when the test is run. +!isEmpty(IMPORTPATH) { + load(testcase) + for(import, IMPORTPATH): check.commands += -import \"$$import\" +} |