summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qmltestcase.prf
Commit message (Collapse)AuthorAgeFilesLines
* Say hello to androidtestrunnerBogDan Vatra2019-06-061-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | androidtestrunner is a tool needed to run qt tests on Android. Now you can run tests as simple as you run them on Linux, macOS, Windows. "$ make check" it's all you need to run tests on the default android device. ANDROID_DEVICE_SERIAL env variable can be used to use a specific android serial. Use cases: $ make -j1 check -j1 is needed to make sure we don't run multiple tests in parallel. $ ANDROID_DEVICE_SERIAL="emulator-5554" make check Run the test on "emulator-5554" $ make TESTARGS="-- -xml" check Switch to xml output. All params after -- are passed to test application. $ make TESTARGS="-- -o out.xml,xml -o out.txt,txt -o -,tap -vs" check Create two files out.xml and out.txt in the current folder and print "tap" format to stdout and enable logging of every signal emission. [ChangeLog][Android] Make it easy to run Qt tests on Android. "$ make check" is all it's needed to run a test on an Android device. Change-Id: I1a7f64b62608f7367b5a6aabf5d6c6e7e50242e6 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
* qmltestcase: Fix generation of Visual Studio project filesOliver Wolff2019-01-111-1/+2
| | | | | | | | | Mimicking the approach from testlib_defines.prf, DEFINES containing a path surrounded by quotation marks have to be handled differently for Visual Studio projects. Change-Id: I26f6a45d4df154f599e8be15b3aa3905cf703a1f Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* iOS: Allow building QML based test casesAndy Shaw2018-04-181-1/+0
| | | | | | | | | | 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>
* qmltestcase: Allow a QML-only testcase to not require a C++ harnessRobin Burchell2017-04-061-7/+13
| | | | | | | | [ChangeLog][qmake] If you use CONFIG+=qmltestcase with no SOURCES, 'make check' will now run qmltestrunner for you. Change-Id: Ie9dfaef75494c9b38f6c9a6239754858535d8657 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Distinguish between 'mac' and 'macx' qmake scopesTor Arne Vestbø2013-03-051-1/+1
| | | | | | | | | | | | | | The former applies both on Mac OS X and iOS, but 'macx' is specific to Mac OS X. ios.conf and macx.conf now share most of their settings in the common mac.conf. We set the default QMAKE_MAC_SDK before loading mac.conf, so that any overrides in the device config will apply afterwards. This means configure's mkspec parsing will be able to read the QMAKE_MAC_SDK. Change-Id: I0c7e26a6a0103e19b23ef152aa9e4ab461cee632 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
* Remove declarative from qmltestcase.prf.Friedemann Kleint2012-05-111-1/+1
| | | | | | Change-Id: Ia4bf45132a74ec7bbbb2a918088c176f87a26e76 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Don't build app bundles for qmltestcase applications on Mac OS XCharles Yin2011-10-251-0/+2
| | | | | Change-Id: Ia61f12313908f42f7ff7a43be5443e779300e436 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix shadow build error for qmltestCharles Yin2011-10-211-1/+1
| | | | | | | | | Both $$OUT_PWD and $$PWD can't be used here, the real .pro directory should be $$_PRO_FILE_PWD_ Task-number:QTBUG-22169 Change-Id: I0aebfe7503703fe2b264c7c47b828a8fc4ffac47 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fixed linking against QtQuickTest on mac.Charles Yin2011-05-311-15/+1
| | | | | | | | | | qmltest is now a Qt module, so it's not necessary to configure the include&library paths manually. Change-Id: I1d2baa67138e08ab9007fba9f6adcf8847509ba8 Reviewed-on: http://codereview.qt.nokia.com/163 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* add qmltestcase.prf for QtQuickTestCharles Yin2011-05-211-0/+25
so that 'CONFIG += qmltestcase' works