summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/qmltestcase.prf7
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\"
+}