diff options
author | dac <qt-info@nokia.com> | 2010-06-11 11:46:10 +1000 |
---|---|---|
committer | dac <qt-info@nokia.com> | 2010-06-11 11:46:10 +1000 |
commit | f7322a5b28500c43af9f2acbe4fe9d92067fa301 (patch) | |
tree | 8945695018f66491964e55d1de3e7c232bea64db /features | |
parent | 22cb28276882c6cd82b83dcbf5e29153d1f1eee6 (diff) |
Enable "make test" - tested on Linux only at this stage.
Diffstat (limited to 'features')
-rw-r--r-- | features/systemtest.prf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/features/systemtest.prf b/features/systemtest.prf new file mode 100644 index 0000000..44a2898 --- /dev/null +++ b/features/systemtest.prf @@ -0,0 +1,24 @@ +SRCDIR=$$replace(OUT_PWD, $$BUILDROOT, $$SRCROOT) +BUILDDIR=$$OUT_PWD + +TEMPLATE=subdirs + +unix:!mac:!symbian { + test.commands = $$[QT_INSTALL_BINS]/qtuitestrunner $$SRCDIR/$$SOURCES $(ARGS) + QMAKE_EXTRA_TARGETS+=test + + storetest.commands = PATH=$$[QT_INSTALL_BINS]:$$BUILDDIR:\$\$PATH BUILDDIR=$$BUILDDIR $$SRCROOT/scripts/storetest $$SRCDIR/$$SOURCES $(ARGS) + QMAKE_EXTRA_TARGETS+=storetest +} + +mac { + test.commands = $$[QT_INSTALL_BINS]/qtuitestrunner $$BUILDDIR/$$SOURCES $(ARGS) + QMAKE_EXTRA_TARGETS+=test +} + +win32 { + WIN_SRCDIR=$$replace(SRCDIR,/,\) + + test.commands=cmd /c $$[QT_INSTALL_BINS]\\qtuitestrunner $${WIN_SRCDIR}\\$${SOURCES} + QMAKE_EXTRA_TARGETS+=test +} |