8caf9e6b18
In order to be able to build and test a testcase on an iOS device it needs to be a bundle. So the app_bundle config should only be removed if the testcase_no_bundle is set. This is already done by testcase.prf. Task-number: QTBUG-45211 Change-Id: I4f16ea832ccff2a5db5fed0050fa0344b4ac9ad6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
19 lines
538 B
Plaintext
19 lines
538 B
Plaintext
!isEmpty(SOURCES) {
|
|
QT += qml qmltest
|
|
load(testcase)
|
|
DEFINES += QUICK_TEST_SOURCE_DIR=\"\\\"$$_PRO_FILE_PWD_\\\"\"
|
|
} else {
|
|
# Allow a project to run tests without a CPP stub
|
|
TEMPLATE = aux
|
|
QMAKE_EXTRA_TARGETS += check
|
|
qtPrepareTool(QMAKE_QMLTESTRUNNER, qmltestrunner)
|
|
check.commands = $$QMAKE_QMLTESTRUNNER
|
|
}
|
|
|
|
# If the .pro file specified an IMPORTPATH, then add that to
|
|
# the command-line when the test is run.
|
|
!isEmpty(IMPORTPATH) {
|
|
for(import, IMPORTPATH): check.commands += -import \"$$import\"
|
|
}
|
|
|