From 0644fe7814930cb11f0fc2749b01beff86838bfd Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Fri, 10 Dec 2010 10:10:04 +1000 Subject: Handle import paths in the test harness The -import option can be supplied to the test harness to add extra import directories. --- features/qmltestcase.prf | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'features') 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\" +} -- cgit v1.2.3