summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2011-12-28 20:59:35 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-29 14:56:39 +0100
commit5991bc3b3b7c638592ec5e7060e467f4838201d8 (patch)
treea1a77adcdf1075860c4e30d11d7f3a0eb5f24ff9 /tests
parentf80d04ea96a52090e939a53779aa04d4bd174f24 (diff)
downloadqt4-tools-5991bc3b3b7c638592ec5e7060e467f4838201d8.tar.gz
tests: eliminated usage of qttest_p4.prf [part 2]
qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4. It enables various crufty undocumented magic, of dubious value. Stop using it, and explicitly enable the things from it which we want. Change-Id: I8a0bed9161ea9ac010ef3269f2e9baed7bbc2f41 Reviewed-by: Rohan McGovern Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/headers/headers.pro6
-rw-r--r--tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro6
-rw-r--r--tests/auto/patternistheaders/patternistheaders.pro6
-rw-r--r--tests/auto/qabstractbutton/qabstractbutton.pro7
-rw-r--r--tests/auto/qabstractitemmodel/qabstractitemmodel.pro13
-rw-r--r--tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro6
-rw-r--r--tests/auto/qapplication/test/test.pro5
-rw-r--r--tests/auto/qaudioinput/qaudioinput.pro6
-rw-r--r--tests/auto/qcolordialog/qcolordialog.pro8
-rw-r--r--tests/auto/qdbusservicewatcher/qdbusservicewatcher.pro5
-rw-r--r--tests/auto/qdirmodel/qdirmodel.pro7
-rw-r--r--tests/auto/qdrag/qdrag.pro9
-rw-r--r--tests/auto/qeventloop/qeventloop.pro7
-rw-r--r--tests/auto/qfileopenevent/test/test.pro7
-rw-r--r--tests/auto/qfilesystemmodel/qfilesystemmodel.pro9
-rw-r--r--tests/auto/qgl/qgl.pro12
-rw-r--r--tests/auto/qgraphicseffect/qgraphicseffect.pro5
-rw-r--r--tests/auto/qgraphicslinearlayout/qgraphicslinearlayout.pro6
-rw-r--r--tests/auto/qgraphicspixmapitem/qgraphicspixmapitem.pro4
-rw-r--r--tests/auto/qgridlayout/qgridlayout.pro10
-rw-r--r--tests/auto/qhttpnetworkconnection/qhttpnetworkconnection.pro8
-rw-r--r--tests/auto/qimage/qimage.pro5
-rw-r--r--tests/auto/qitemdelegate/qitemdelegate.pro7
-rw-r--r--tests/auto/qlayout/qlayout.pro9
-rw-r--r--tests/auto/qlistwidget/qlistwidget.pro5
-rw-r--r--tests/auto/qlocale/test/test.pro26
-rw-r--r--tests/auto/qmdiarea/qmdiarea.pro8
-rw-r--r--tests/auto/qmovie/qmovie.pro6
-rw-r--r--tests/auto/qnetworkaccessmanager_and_qprogressdialog/qnetworkaccessmanager_and_qprogressdialog.pro5
-rw-r--r--tests/auto/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro5
-rw-r--r--tests/auto/qnetworkinterface/qnetworkinterface.pro5
-rw-r--r--tests/auto/qpropertyanimation/qpropertyanimation.pro7
-rw-r--r--tests/auto/qringbuffer/qringbuffer.pro8
-rw-r--r--tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro8
-rw-r--r--tests/auto/qscriptengineagent/qscriptengineagent.pro8
-rw-r--r--tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro6
-rw-r--r--tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro5
-rw-r--r--tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro8
-rw-r--r--tests/auto/qscrollarea/qscrollarea.pro10
-rw-r--r--tests/auto/qslider/qslider.pro10
-rw-r--r--tests/auto/qsourcelocation/qsourcelocation.pro5
-rw-r--r--tests/auto/qsql/qsql.pro7
-rw-r--r--tests/auto/qsqldatabase/qsqldatabase.pro5
-rw-r--r--tests/auto/qsqlquerymodel/qsqlquerymodel.pro7
-rw-r--r--tests/auto/qsslcertificate/qsslcertificate.pro7
-rw-r--r--tests/auto/qtableview/qtableview.pro6
-rw-r--r--tests/auto/qtconcurrentrun/qtconcurrentrun.pro7
-rw-r--r--tests/auto/qtconcurrentthreadengine/qtconcurrentthreadengine.pro8
-rw-r--r--tests/auto/qtextdocumentlayout/qtextdocumentlayout.pro7
-rw-r--r--tests/auto/qtextscriptengine/qtextscriptengine.pro7
-rw-r--r--tests/auto/qtextstream/test/test.pro9
-rw-r--r--tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro12
-rw-r--r--tests/auto/qtipc/qsharedmemory/test/test.pro12
-rw-r--r--tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro10
-rw-r--r--tests/auto/qvideosurfaceformat/qvideosurfaceformat.pro6
-rw-r--r--tests/auto/qwindowsurface/qwindowsurface.pro6
-rw-r--r--tests/auto/qwineventnotifier/qwineventnotifier.pro8
-rw-r--r--tests/auto/qwsembedwidget/qwsembedwidget.pro3
-rw-r--r--tests/auto/qx11info/qx11info.pro3
-rw-r--r--tests/auto/qxmlitem/qxmlitem.pro5
-rw-r--r--tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro5
-rw-r--r--tests/auto/qxmlresultitems/qxmlresultitems.pro4
-rw-r--r--tests/auto/qxmlschema/qxmlschema.pro6
-rw-r--r--tests/auto/qzip/qzip.pro5
-rw-r--r--tests/auto/uic/uic.pro6
-rw-r--r--tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro9
66 files changed, 269 insertions, 209 deletions
diff --git a/tests/auto/headers/headers.pro b/tests/auto/headers/headers.pro
index 4bc02fe80c..a143506d21 100644
--- a/tests/auto/headers/headers.pro
+++ b/tests/auto/headers/headers.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_headers
+QT = core testlib
SOURCES += tst_headers.cpp headersclean.cpp
-QT = core
CONFIG+=insignificant_test # QTQAINFRA-428
diff --git a/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro b/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro
index 772c833a7e..d6b8c133e5 100644
--- a/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro
+++ b/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_patternistexamplefiletree
+QT = core testlib
SOURCES += tst_patternistexamplefiletree.cpp
-QT = core
include (../xmlpatterns.pri)
diff --git a/tests/auto/patternistheaders/patternistheaders.pro b/tests/auto/patternistheaders/patternistheaders.pro
index fe4d670565..39a653faa8 100644
--- a/tests/auto/patternistheaders/patternistheaders.pro
+++ b/tests/auto/patternistheaders/patternistheaders.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_patternistheaders
+QT = core testlib
SOURCES += tst_patternistheaders.cpp
-QT = core
include (../xmlpatterns.pri)
diff --git a/tests/auto/qabstractbutton/qabstractbutton.pro b/tests/auto/qabstractbutton/qabstractbutton.pro
index 2e52585700..ffc34df758 100644
--- a/tests/auto/qabstractbutton/qabstractbutton.pro
+++ b/tests/auto/qabstractbutton/qabstractbutton.pro
@@ -1,4 +1,5 @@
-load(qttest_p4)
-SOURCES += tst_qabstractbutton.cpp
-
+CONFIG += testcase
+TARGET = tst_qabstractbutton
+QT += testlib
+SOURCES += tst_qabstractbutton.cpp
diff --git a/tests/auto/qabstractitemmodel/qabstractitemmodel.pro b/tests/auto/qabstractitemmodel/qabstractitemmodel.pro
index 52c4e96f99..f8893ba3fc 100644
--- a/tests/auto/qabstractitemmodel/qabstractitemmodel.pro
+++ b/tests/auto/qabstractitemmodel/qabstractitemmodel.pro
@@ -1,9 +1,8 @@
-load(qttest_p4)
-
-INCLUDEPATH += $$PWD/../modeltest
-
-SOURCES += tst_qabstractitemmodel.cpp ../modeltest/dynamictreemodel.cpp ../modeltest/modeltest.cpp
-HEADERS += ../modeltest/dynamictreemodel.h ../modeltest/modeltest.h
-
+CONFIG += testcase
+TARGET = tst_qabstractitemmodel
+QT += testlib
+SOURCES += tst_qabstractitemmodel.cpp ../modeltest/dynamictreemodel.cpp ../modeltest/modeltest.cpp
+INCLUDEPATH += $$PWD/../modeltest
+HEADERS += ../modeltest/dynamictreemodel.h ../modeltest/modeltest.h
diff --git a/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro b/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro
index 6bc0c59c50..ba75b37c54 100644
--- a/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro
+++ b/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qabstractxmlforwarditerator
+QT = core testlib
SOURCES += tst_qabstractxmlforwarditerator.cpp
-QT = core
include (../xmlpatterns.pri)
diff --git a/tests/auto/qapplication/test/test.pro b/tests/auto/qapplication/test/test.pro
index 27cc0ba732..6452369a1d 100644
--- a/tests/auto/qapplication/test/test.pro
+++ b/tests/auto/qapplication/test/test.pro
@@ -1,7 +1,8 @@
-load(qttest_p4)
+CONFIG += testcase
-SOURCES += ../tst_qapplication.cpp
TARGET = ../tst_qapplication
+QT += testlib
+SOURCES += ../tst_qapplication.cpp
wince* {
additional.files = ../desktopsettingsaware/desktopsettingsaware.exe
diff --git a/tests/auto/qaudioinput/qaudioinput.pro b/tests/auto/qaudioinput/qaudioinput.pro
index d7ae7bc052..db7e228768 100644
--- a/tests/auto/qaudioinput/qaudioinput.pro
+++ b/tests/auto/qaudioinput/qaudioinput.pro
@@ -1,9 +1,9 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qaudioinput
+QT = core multimedia testlib
SOURCES += tst_qaudioinput.cpp
-QT = core multimedia
-
wince* {
deploy.files += 4.wav
DEPLOYMENT += deploy
diff --git a/tests/auto/qcolordialog/qcolordialog.pro b/tests/auto/qcolordialog/qcolordialog.pro
index 830f9fafe2..2900bbc3fa 100644
--- a/tests/auto/qcolordialog/qcolordialog.pro
+++ b/tests/auto/qcolordialog/qcolordialog.pro
@@ -1,5 +1,5 @@
-load(qttest_p4)
-SOURCES += tst_qcolordialog.cpp
-
-
+CONFIG += testcase
+TARGET = tst_qcolordialog
+QT += testlib
+SOURCES += tst_qcolordialog.cpp
diff --git a/tests/auto/qdbusservicewatcher/qdbusservicewatcher.pro b/tests/auto/qdbusservicewatcher/qdbusservicewatcher.pro
index 4970f16863..0a325c9bbd 100644
--- a/tests/auto/qdbusservicewatcher/qdbusservicewatcher.pro
+++ b/tests/auto/qdbusservicewatcher/qdbusservicewatcher.pro
@@ -1,5 +1,6 @@
-load(qttest_p4)
-QT = core
+CONFIG += testcase
+TARGET = tst_qdbusservicewatcher
+QT = core dbus testlib
contains(QT_CONFIG,dbus): {
SOURCES += tst_qdbusservicewatcher.cpp
QT += dbus
diff --git a/tests/auto/qdirmodel/qdirmodel.pro b/tests/auto/qdirmodel/qdirmodel.pro
index 7037a79934..5e6221a821 100644
--- a/tests/auto/qdirmodel/qdirmodel.pro
+++ b/tests/auto/qdirmodel/qdirmodel.pro
@@ -1,5 +1,8 @@
-load(qttest_p4)
-SOURCES += tst_qdirmodel.cpp
+CONFIG += testcase
+
+TARGET = tst_qdirmodel
+QT += testlib
+SOURCES += tst_qdirmodel.cpp
wince*|symbian {
addit.files = dirtest\\test1\\*
diff --git a/tests/auto/qdrag/qdrag.pro b/tests/auto/qdrag/qdrag.pro
index ad36fa5ada..ca1741c570 100644
--- a/tests/auto/qdrag/qdrag.pro
+++ b/tests/auto/qdrag/qdrag.pro
@@ -1,9 +1,6 @@
-############################################################
-# Project file for autotest for file qdrag.h
-############################################################
-
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qdrag
+QT += testlib
SOURCES += tst_qdrag.cpp
-
diff --git a/tests/auto/qeventloop/qeventloop.pro b/tests/auto/qeventloop/qeventloop.pro
index 8e6a962f80..7505c2746d 100644
--- a/tests/auto/qeventloop/qeventloop.pro
+++ b/tests/auto/qeventloop/qeventloop.pro
@@ -1,7 +1,8 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qeventloop
+QT = core network testlib
SOURCES += tst_qeventloop.cpp
-QT -= gui
-QT += network
win32:!wince*:LIBS += -luser32
diff --git a/tests/auto/qfileopenevent/test/test.pro b/tests/auto/qfileopenevent/test/test.pro
index 3f16dcf6ee..8efea0456e 100644
--- a/tests/auto/qfileopenevent/test/test.pro
+++ b/tests/auto/qfileopenevent/test/test.pro
@@ -1,7 +1,10 @@
-load(qttest_p4)
+CONFIG += testcase
+
TARGET = tst_qfileopenevent
-HEADERS +=
+QT += testlib
SOURCES += tst_qfileopenevent.cpp
+
+HEADERS +=
symbian {
LIBS+=-lefsrv -lapgrfx -lapmime
}
diff --git a/tests/auto/qfilesystemmodel/qfilesystemmodel.pro b/tests/auto/qfilesystemmodel/qfilesystemmodel.pro
index 65f25e0549..716f72f5f8 100644
--- a/tests/auto/qfilesystemmodel/qfilesystemmodel.pro
+++ b/tests/auto/qfilesystemmodel/qfilesystemmodel.pro
@@ -1,9 +1,8 @@
-CONFIG += qttest_p4
+CONFIG += testcase
-QT = core gui
-
-SOURCES += tst_qfilesystemmodel.cpp
-TARGET = tst_qfilesystemmodel
+TARGET = tst_qfilesystemmodel
+QT += testlib
+SOURCES += tst_qfilesystemmodel.cpp
symbian: {
HEADERS += ../../../include/qtgui/private/qfileinfogatherer_p.h
diff --git a/tests/auto/qgl/qgl.pro b/tests/auto/qgl/qgl.pro
index ae8fe5428f..7c4b341609 100644
--- a/tests/auto/qgl/qgl.pro
+++ b/tests/auto/qgl/qgl.pro
@@ -1,15 +1,13 @@
-############################################################
-# Project file for autotest for file qgl.h
-############################################################
+CONFIG += testcase
-load(qttest_p4)
-requires(contains(QT_CONFIG,opengl))
-QT += opengl
+TARGET = tst_qgl
+QT += opengl testlib
+SOURCES += tst_qgl.cpp
+requires(contains(QT_CONFIG,opengl))
contains(QT_CONFIG,egl):DEFINES += QGL_EGL
win32:!wince*: DEFINES += QT_NO_EGL
-SOURCES += tst_qgl.cpp
RESOURCES = qgl.qrc
CONFIG+=insignificant_test # QTQAINFRA-428
diff --git a/tests/auto/qgraphicseffect/qgraphicseffect.pro b/tests/auto/qgraphicseffect/qgraphicseffect.pro
index 59084b5c12..f35809c2ca 100644
--- a/tests/auto/qgraphicseffect/qgraphicseffect.pro
+++ b/tests/auto/qgraphicseffect/qgraphicseffect.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qgraphicseffect
+QT += testlib
SOURCES += tst_qgraphicseffect.cpp
CONFIG += parallel_test
diff --git a/tests/auto/qgraphicslinearlayout/qgraphicslinearlayout.pro b/tests/auto/qgraphicslinearlayout/qgraphicslinearlayout.pro
index df5a827787..673f0680e3 100644
--- a/tests/auto/qgraphicslinearlayout/qgraphicslinearlayout.pro
+++ b/tests/auto/qgraphicslinearlayout/qgraphicslinearlayout.pro
@@ -1,4 +1,8 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qgraphicslinearlayout
+QT += testlib
SOURCES += tst_qgraphicslinearlayout.cpp
+
CONFIG += parallel_test
diff --git a/tests/auto/qgraphicspixmapitem/qgraphicspixmapitem.pro b/tests/auto/qgraphicspixmapitem/qgraphicspixmapitem.pro
index 6b4db95ebe..de6e0291a7 100644
--- a/tests/auto/qgraphicspixmapitem/qgraphicspixmapitem.pro
+++ b/tests/auto/qgraphicspixmapitem/qgraphicspixmapitem.pro
@@ -1,4 +1,6 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qgraphicspixmapitem
+QT += testlib
SOURCES += tst_qgraphicspixmapitem.cpp
CONFIG += parallel_test
diff --git a/tests/auto/qgridlayout/qgridlayout.pro b/tests/auto/qgridlayout/qgridlayout.pro
index 00cc5eede7..020d39d425 100644
--- a/tests/auto/qgridlayout/qgridlayout.pro
+++ b/tests/auto/qgridlayout/qgridlayout.pro
@@ -1,6 +1,6 @@
-load(qttest_p4)
-SOURCES += tst_qgridlayout.cpp
-FORMS += sortdialog.ui
-
-
+CONFIG += testcase
+TARGET = tst_qgridlayout
+QT += testlib
+SOURCES += tst_qgridlayout.cpp
+FORMS += sortdialog.ui
diff --git a/tests/auto/qhttpnetworkconnection/qhttpnetworkconnection.pro b/tests/auto/qhttpnetworkconnection/qhttpnetworkconnection.pro
index 223c4e1c96..76a6cee6e0 100644
--- a/tests/auto/qhttpnetworkconnection/qhttpnetworkconnection.pro
+++ b/tests/auto/qhttpnetworkconnection/qhttpnetworkconnection.pro
@@ -1,10 +1,12 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qhttpnetworkconnection
+QT = core network testlib
SOURCES += tst_qhttpnetworkconnection.cpp
+
INCLUDEPATH += $$QT_SOURCE_TREE/src/3rdparty/zlib
requires(contains(QT_CONFIG,private_tests))
-QT = core network
-
symbian: TARGET.CAPABILITY = NetworkServices
symbian: {
INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
diff --git a/tests/auto/qimage/qimage.pro b/tests/auto/qimage/qimage.pro
index 798c82ea2d..475e635ccc 100644
--- a/tests/auto/qimage/qimage.pro
+++ b/tests/auto/qimage/qimage.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qimage
+QT += testlib
SOURCES += tst_qimage.cpp
wince*: {
diff --git a/tests/auto/qitemdelegate/qitemdelegate.pro b/tests/auto/qitemdelegate/qitemdelegate.pro
index 1206976868..90fb32c7e4 100644
--- a/tests/auto/qitemdelegate/qitemdelegate.pro
+++ b/tests/auto/qitemdelegate/qitemdelegate.pro
@@ -1,5 +1,8 @@
-load(qttest_p4)
-SOURCES += tst_qitemdelegate.cpp
+CONFIG += testcase
+
+TARGET = tst_qitemdelegate
+QT += testlib
+SOURCES += tst_qitemdelegate.cpp
win32:!wince*: LIBS += -lUser32
diff --git a/tests/auto/qlayout/qlayout.pro b/tests/auto/qlayout/qlayout.pro
index bb1ae4a322..a541e9fb8e 100644
--- a/tests/auto/qlayout/qlayout.pro
+++ b/tests/auto/qlayout/qlayout.pro
@@ -1,10 +1,9 @@
-############################################################
-# Project file for autotest for file qlayout.h
-############################################################
-
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qlayout
+QT += testlib
SOURCES += tst_qlayout.cpp
+
contains(QT_CONFIG, qt3support): QT += qt3support
wince*|symbian: {
addFiles.files = baseline
diff --git a/tests/auto/qlistwidget/qlistwidget.pro b/tests/auto/qlistwidget/qlistwidget.pro
index 2bc1976a47..2b940d1d85 100644
--- a/tests/auto/qlistwidget/qlistwidget.pro
+++ b/tests/auto/qlistwidget/qlistwidget.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qlistwidget
+QT += testlib
SOURCES += tst_qlistwidget.cpp
CONFIG+=insignificant_test # QTQAINFRA-428
diff --git a/tests/auto/qlocale/test/test.pro b/tests/auto/qlocale/test/test.pro
index 8117708c46..174eade3d2 100644
--- a/tests/auto/qlocale/test/test.pro
+++ b/tests/auto/qlocale/test/test.pro
@@ -1,26 +1,22 @@
-load(qttest_p4)
-SOURCES += ../tst_qlocale.cpp
+CONFIG += testcase
-!wince*: {
TARGET = ../tst_qlocale
+QT = core network testlib
+embedded: QT += gui
+SOURCES += ../tst_qlocale.cpp
-win32: {
- CONFIG(debug, debug|release) {
- TARGET = ../../debug/tst_qlocale
-} else {
- TARGET = ../../release/tst_qlocale
+!wince*: {
+ win32: {
+ CONFIG(debug, debug|release) {
+ TARGET = ../../debug/tst_qlocale
+ } else {
+ TARGET = ../../release/tst_qlocale
+ }
}
-}
} else {
TARGET = tst_qlocale
}
-
-
-QT = core
-QT += network
-embedded: QT += gui
-
wince*: {
addFiles.files = \
../syslocaleapp
diff --git a/tests/auto/qmdiarea/qmdiarea.pro b/tests/auto/qmdiarea/qmdiarea.pro
index 7fa757562a..90fe9f4646 100644
--- a/tests/auto/qmdiarea/qmdiarea.pro
+++ b/tests/auto/qmdiarea/qmdiarea.pro
@@ -1,6 +1,10 @@
-load(qttest_p4)
-INCLUDEPATH += .
+CONFIG += testcase
+
+TARGET = tst_qmdiarea
+QT += testlib
SOURCES += tst_qmdiarea.cpp
+
+INCLUDEPATH += .
DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
contains(QT_CONFIG, opengl):QT += opengl
diff --git a/tests/auto/qmovie/qmovie.pro b/tests/auto/qmovie/qmovie.pro
index 855eb9e17a..3a99c3c829 100644
--- a/tests/auto/qmovie/qmovie.pro
+++ b/tests/auto/qmovie/qmovie.pro
@@ -1,5 +1,9 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qmovie
+QT += testlib
SOURCES += tst_qmovie.cpp
+
MOC_DIR=tmp
!contains(QT_CONFIG, no-gif):DEFINES += QTEST_HAVE_GIF
diff --git a/tests/auto/qnetworkaccessmanager_and_qprogressdialog/qnetworkaccessmanager_and_qprogressdialog.pro b/tests/auto/qnetworkaccessmanager_and_qprogressdialog/qnetworkaccessmanager_and_qprogressdialog.pro
index 378deba11e..d1badaa924 100644
--- a/tests/auto/qnetworkaccessmanager_and_qprogressdialog/qnetworkaccessmanager_and_qprogressdialog.pro
+++ b/tests/auto/qnetworkaccessmanager_and_qprogressdialog/qnetworkaccessmanager_and_qprogressdialog.pro
@@ -1,6 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qnetworkaccessmanager_and_qprogressdialog
SOURCES += tst_qnetworkaccessmanager_and_qprogressdialog.cpp
-QT += network
+QT += network testlib
symbian: TARGET.CAPABILITY = NetworkServices
diff --git a/tests/auto/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro b/tests/auto/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro
index 3ae5122be4..b8f6fd287e 100644
--- a/tests/auto/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro
+++ b/tests/auto/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro
@@ -1,8 +1,9 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qnetworkconfigurationmanager
SOURCES += tst_qnetworkconfigurationmanager.cpp
HEADERS += ../qbearertestcommon.h
-QT = core network
+QT = core network testlib
symbian {
TARGET.CAPABILITY = NetworkServices NetworkControl ReadUserData
diff --git a/tests/auto/qnetworkinterface/qnetworkinterface.pro b/tests/auto/qnetworkinterface/qnetworkinterface.pro
index 1c5feee3f2..85d4388fd2 100644
--- a/tests/auto/qnetworkinterface/qnetworkinterface.pro
+++ b/tests/auto/qnetworkinterface/qnetworkinterface.pro
@@ -1,7 +1,8 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qnetworkinterface
SOURCES += tst_qnetworkinterface.cpp
-QT = core network
+QT = core network testlib
symbian: TARGET.CAPABILITY = NetworkServices
diff --git a/tests/auto/qpropertyanimation/qpropertyanimation.pro b/tests/auto/qpropertyanimation/qpropertyanimation.pro
index 6d6ddbf65b..de9d3e6828 100644
--- a/tests/auto/qpropertyanimation/qpropertyanimation.pro
+++ b/tests/auto/qpropertyanimation/qpropertyanimation.pro
@@ -1,5 +1,6 @@
-load(qttest_p4)
-QT = core gui
-SOURCES += tst_qpropertyanimation.cpp
+CONFIG += testcase
+TARGET = tst_qpropertyanimation
+QT += testlib
+SOURCES += tst_qpropertyanimation.cpp
diff --git a/tests/auto/qringbuffer/qringbuffer.pro b/tests/auto/qringbuffer/qringbuffer.pro
index 2e4f166619..7d822f6d21 100644
--- a/tests/auto/qringbuffer/qringbuffer.pro
+++ b/tests/auto/qringbuffer/qringbuffer.pro
@@ -1,7 +1,7 @@
-load(qttest_p4)
-SOURCES += tst_qringbuffer.cpp
-
-QT = core
+CONFIG += testcase
+TARGET = tst_qringbuffer
+QT = core testlib
+SOURCES += tst_qringbuffer.cpp
CONFIG += parallel_test
diff --git a/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro b/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro
index 24834141bf..01fd007e5d 100644
--- a/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro
+++ b/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro
@@ -1,5 +1,5 @@
-load(qttest_p4)
-QT = core script
-SOURCES += tst_qscriptcontextinfo.cpp
-
+CONFIG += testcase
+TARGET = tst_qscriptcontextinfo
+QT = core script testlib
+SOURCES += tst_qscriptcontextinfo.cpp
diff --git a/tests/auto/qscriptengineagent/qscriptengineagent.pro b/tests/auto/qscriptengineagent/qscriptengineagent.pro
index 34c4280f0f..045a166211 100644
--- a/tests/auto/qscriptengineagent/qscriptengineagent.pro
+++ b/tests/auto/qscriptengineagent/qscriptengineagent.pro
@@ -1,5 +1,5 @@
-load(qttest_p4)
-QT = core script
-SOURCES += tst_qscriptengineagent.cpp
-
+CONFIG += testcase
+TARGET = tst_qscriptengineagent
+QT = core script testlib
+SOURCES += tst_qscriptengineagent.cpp
diff --git a/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro b/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro
index 498fc1acbb..4f7cd3a1d9 100644
--- a/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro
+++ b/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
-QT = core script
+CONFIG += testcase
+
+TARGET = tst_qscriptv8testsuite
+QT = core script testlib
SOURCES += tst_qscriptv8testsuite.cpp
RESOURCES += qscriptv8testsuite.qrc
include(abstracttestsuite.pri)
diff --git a/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro b/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro
index c3e9912f69..b2c3fa75a1 100644
--- a/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro
+++ b/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro
@@ -1,5 +1,6 @@
-load(qttest_p4)
-QT = core gui script
+TARGET = tst_qscriptvaluegenerated
+CONFIG += testcase
+QT = core gui script testlib
SOURCES += tst_qscriptvalue.cpp
HEADERS += tst_qscriptvalue.h
diff --git a/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro b/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro
index 884efa0d46..0710ca046f 100644
--- a/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro
+++ b/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro
@@ -1,5 +1,5 @@
-load(qttest_p4)
-QT = core script
-SOURCES += tst_qscriptvalueiterator.cpp
-
+CONFIG += testcase
+TARGET = tst_qscriptvalueiterator
+QT = core script testlib
+SOURCES += tst_qscriptvalueiterator.cpp
diff --git a/tests/auto/qscrollarea/qscrollarea.pro b/tests/auto/qscrollarea/qscrollarea.pro
index bcb2ff347c..a19f9aef4f 100644
--- a/tests/auto/qscrollarea/qscrollarea.pro
+++ b/tests/auto/qscrollarea/qscrollarea.pro
@@ -1,9 +1,5 @@
-############################################################
-# Project file for autotest for file qscrollarea.h
-############################################################
-
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qscrollarea
+QT += testlib
SOURCES += tst_qscrollarea.cpp
-
-
diff --git a/tests/auto/qslider/qslider.pro b/tests/auto/qslider/qslider.pro
index 32fcc81941..77f9163819 100644
--- a/tests/auto/qslider/qslider.pro
+++ b/tests/auto/qslider/qslider.pro
@@ -1,9 +1,5 @@
-############################################################
-# Project file for autotest for file qslider.h
-############################################################
-
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qslider
+QT += testlib
SOURCES += tst_qslider.cpp
-
-
diff --git a/tests/auto/qsourcelocation/qsourcelocation.pro b/tests/auto/qsourcelocation/qsourcelocation.pro
index 3cfcb46b79..ff39bd3499 100644
--- a/tests/auto/qsourcelocation/qsourcelocation.pro
+++ b/tests/auto/qsourcelocation/qsourcelocation.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qsourcelocation
+QT += testlib
SOURCES += tst_qsourcelocation.cpp
include (../xmlpatterns.pri)
diff --git a/tests/auto/qsql/qsql.pro b/tests/auto/qsql/qsql.pro
index 9bf30f8055..2b492511d2 100644
--- a/tests/auto/qsql/qsql.pro
+++ b/tests/auto/qsql/qsql.pro
@@ -1,7 +1,8 @@
-load(qttest_p4)
-SOURCES += tst_qsql.cpp
+CONFIG += testcase
-QT += sql
+TARGET = tst_qsql
+QT += sql testlib
+SOURCES += tst_qsql.cpp
contains(QT_CONFIG, qt3support): QT += qt3support
diff --git a/tests/auto/qsqldatabase/qsqldatabase.pro b/tests/auto/qsqldatabase/qsqldatabase.pro
index 066c24f395..6561c542d3 100644
--- a/tests/auto/qsqldatabase/qsqldatabase.pro
+++ b/tests/auto/qsqldatabase/qsqldatabase.pro
@@ -1,7 +1,8 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qsqldatabase
SOURCES += tst_qsqldatabase.cpp
-QT += sql
+QT += sql testlib
contains(QT_CONFIG, qt3support): QT += qt3support
diff --git a/tests/auto/qsqlquerymodel/qsqlquerymodel.pro b/tests/auto/qsqlquerymodel/qsqlquerymodel.pro
index 4b23e94715..ec785f5e53 100644
--- a/tests/auto/qsqlquerymodel/qsqlquerymodel.pro
+++ b/tests/auto/qsqlquerymodel/qsqlquerymodel.pro
@@ -1,7 +1,8 @@
-load(qttest_p4)
-SOURCES += tst_qsqlquerymodel.cpp
+CONFIG += testcase
-QT += sql
+TARGET = tst_qsqlquerymodel
+QT += sql testlib
+SOURCES += tst_qsqlquerymodel.cpp
wince*: {
DEPLOYMENT_PLUGIN += qsqlite
diff --git a/tests/auto/qsslcertificate/qsslcertificate.pro b/tests/auto/qsslcertificate/qsslcertificate.pro
index 05cce8e509..827aa4976b 100644
--- a/tests/auto/qsslcertificate/qsslcertificate.pro
+++ b/tests/auto/qsslcertificate/qsslcertificate.pro
@@ -1,10 +1,9 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qsslcertificate
+QT = core network testlib
SOURCES += tst_qsslcertificate.cpp
!wince*:win32:LIBS += -lws2_32
-QT = core network
-
-TARGET = tst_qsslcertificate
win32 {
CONFIG(debug, debug|release) {
diff --git a/tests/auto/qtableview/qtableview.pro b/tests/auto/qtableview/qtableview.pro
index dcda6aee69..cdec41f6eb 100644
--- a/tests/auto/qtableview/qtableview.pro
+++ b/tests/auto/qtableview/qtableview.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
-TARGET.EPOCHEAPSIZE = 0x200000 0x800000
+CONFIG += testcase
+
+TARGET = tst_qtableview
+QT += testlib
SOURCES += tst_qtableview.cpp
CONFIG+=insignificant_test # QTQAINFRA-428
diff --git a/tests/auto/qtconcurrentrun/qtconcurrentrun.pro b/tests/auto/qtconcurrentrun/qtconcurrentrun.pro
index 24576048e9..159b00aec5 100644
--- a/tests/auto/qtconcurrentrun/qtconcurrentrun.pro
+++ b/tests/auto/qtconcurrentrun/qtconcurrentrun.pro
@@ -1,5 +1,6 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qtconcurrentrun
+QT = core testlib
SOURCES += tst_qtconcurrentrun.cpp
-QT = core
-CONFIG += parallel_test
CONFIG += parallel_test
diff --git a/tests/auto/qtconcurrentthreadengine/qtconcurrentthreadengine.pro b/tests/auto/qtconcurrentthreadengine/qtconcurrentthreadengine.pro
index bbfcf5ebe3..f823ac35c7 100644
--- a/tests/auto/qtconcurrentthreadengine/qtconcurrentthreadengine.pro
+++ b/tests/auto/qtconcurrentthreadengine/qtconcurrentthreadengine.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qtconcurrentthreadengine
+QT = core testlib
SOURCES += tst_qtconcurrentthreadengine.cpp
-QT = core
-CONFIG += parallel_test
+
CONFIG += parallel_test
diff --git a/tests/auto/qtextdocumentlayout/qtextdocumentlayout.pro b/tests/auto/qtextdocumentlayout/qtextdocumentlayout.pro
index b2dc6a1f68..f43f735e22 100644
--- a/tests/auto/qtextdocumentlayout/qtextdocumentlayout.pro
+++ b/tests/auto/qtextdocumentlayout/qtextdocumentlayout.pro
@@ -1,4 +1,5 @@
-load(qttest_p4)
-SOURCES += tst_qtextdocumentlayout.cpp
-
+CONFIG += testcase
+TARGET = tst_qtextdocumentlayout
+QT += testlib
+SOURCES += tst_qtextdocumentlayout.cpp
diff --git a/tests/auto/qtextscriptengine/qtextscriptengine.pro b/tests/auto/qtextscriptengine/qtextscriptengine.pro
index f30edc09c6..3e4a2da777 100644
--- a/tests/auto/qtextscriptengine/qtextscriptengine.pro
+++ b/tests/auto/qtextscriptengine/qtextscriptengine.pro
@@ -1,6 +1,9 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qtextscriptengine
+QT += testlib
+SOURCES += tst_qtextscriptengine.cpp
HEADERS +=
-SOURCES += tst_qtextscriptengine.cpp
INCLUDEPATH += $$QT_SOURCE_TREE/src/3rdparty/harfbuzz/src
CONFIG+=insignificant_test # QTQAINFRA-428
diff --git a/tests/auto/qtextstream/test/test.pro b/tests/auto/qtextstream/test/test.pro
index 8805fb9f61..54378c8213 100644
--- a/tests/auto/qtextstream/test/test.pro
+++ b/tests/auto/qtextstream/test/test.pro
@@ -1,12 +1,13 @@
-load(qttest_p4)
-SOURCES += ../tst_qtextstream.cpp
+CONFIG += testcase
TARGET = ../tst_qtextstream
+QT = core network testlib
+SOURCES += ../tst_qtextstream.cpp
win32 {
CONFIG(debug, debug|release) {
TARGET = ../../debug/tst_qtextstream
-} else {
+ } else {
TARGET = ../../release/tst_qtextstream
}
}
@@ -14,8 +15,6 @@ win32 {
RESOURCES += ../qtextstream.qrc
contains(QT_CONFIG, qt3support):QT += qt3support
-QT = core network
-
wince*|symbian: {
addFiles.files = ../rfc3261.txt ../shift-jis.txt ../task113817.txt ../qtextstream.qrc ../tst_qtextstream.cpp
diff --git a/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro b/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro
index e232443a35..88e4312bfc 100644
--- a/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro
+++ b/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro
@@ -1,5 +1,8 @@
-CONFIG += qttest_p4
-#QT = core
+CONFIG += testcase
+
+TARGET = tst_qsystemlock
+QT += testlib
+SOURCES += tst_qsystemlock.cpp
include(../src/src.pri)
win32: CONFIG += console
@@ -15,8 +18,3 @@ DESTDIR = ./
DEFINES += QSHAREDMEMORY_DEBUG
DEFINES += QSYSTEMSEMAPHORE_DEBUG
-
-SOURCES += tst_qsystemlock.cpp
-TARGET = tst_qsystemlock
-
-
diff --git a/tests/auto/qtipc/qsharedmemory/test/test.pro b/tests/auto/qtipc/qsharedmemory/test/test.pro
index 50c266986c..4dea9cea3d 100644
--- a/tests/auto/qtipc/qsharedmemory/test/test.pro
+++ b/tests/auto/qtipc/qsharedmemory/test/test.pro
@@ -1,18 +1,18 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = ../tst_qsharedmemory
+QT = core testlib
+SOURCES += ../tst_qsharedmemory.cpp
include(../src/src.pri)
-QT -= gui
DEFINES += QSHAREDMEMORY_DEBUG
DEFINES += QSYSTEMSEMAPHORE_DEBUG
-SOURCES += ../tst_qsharedmemory.cpp
-TARGET = ../tst_qsharedmemory
-
!wince*:win32 {
CONFIG(debug, debug|release) {
TARGET = ../../debug/tst_qsharedmemory
-} else {
+ } else {
TARGET = ../../release/tst_qsharedmemory
}
}
diff --git a/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro b/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro
index e05b6b878b..f6bc3691df 100644
--- a/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro
+++ b/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro
@@ -1,5 +1,8 @@
-load(qttest_p4)
-#QT = core
+CONFIG += testcase
+
+TARGET = tst_qsystemsemaphore
+QT += testlib
+SOURCES += tst_qsystemsemaphore.cpp
include(../qsharedmemory/src/src.pri)
win32: CONFIG += console
@@ -7,9 +10,6 @@ win32: CONFIG += console
DEFINES += QSHAREDMEMORY_DEBUG
DEFINES += QSYSTEMSEMAPHORE_DEBUG
-SOURCES += tst_qsystemsemaphore.cpp
-TARGET = tst_qsystemsemaphore
-
RESOURCES += files.qrc
wince*: {
diff --git a/tests/auto/qvideosurfaceformat/qvideosurfaceformat.pro b/tests/auto/qvideosurfaceformat/qvideosurfaceformat.pro
index 830b3d7744..26b70d1dba 100644
--- a/tests/auto/qvideosurfaceformat/qvideosurfaceformat.pro
+++ b/tests/auto/qvideosurfaceformat/qvideosurfaceformat.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qvideosurfaceformat
+QT += multimedia testlib
SOURCES += tst_qvideosurfaceformat.cpp
-QT += multimedia
requires(contains(QT_CONFIG, multimedia))
diff --git a/tests/auto/qwindowsurface/qwindowsurface.pro b/tests/auto/qwindowsurface/qwindowsurface.pro
index 83b2a6d887..0f5b29766a 100644
--- a/tests/auto/qwindowsurface/qwindowsurface.pro
+++ b/tests/auto/qwindowsurface/qwindowsurface.pro
@@ -1,7 +1,5 @@
CONFIG += testcase
-TARGET = tst_qwindowsurface
-
-QT += widgets widgets-private testlib
-QT += gui-private
+TARGET = tst_qwindowsurface
+QT += testlib
SOURCES += tst_qwindowsurface.cpp
diff --git a/tests/auto/qwineventnotifier/qwineventnotifier.pro b/tests/auto/qwineventnotifier/qwineventnotifier.pro
index 62da3a33ea..7896c308de 100644
--- a/tests/auto/qwineventnotifier/qwineventnotifier.pro
+++ b/tests/auto/qwineventnotifier/qwineventnotifier.pro
@@ -1,4 +1,6 @@
-load(qttest_p4)
-SOURCES += tst_qwineventnotifier.cpp
-QT = core
+CONFIG += testcase
+
+TARGET = tst_qwineventnotifier
+QT = core testlib
+SOURCES += tst_qwineventnotifier.cpp
CONFIG += parallel_test
diff --git a/tests/auto/qwsembedwidget/qwsembedwidget.pro b/tests/auto/qwsembedwidget/qwsembedwidget.pro
index 97cbf94bf2..ff2b6e8627 100644
--- a/tests/auto/qwsembedwidget/qwsembedwidget.pro
+++ b/tests/auto/qwsembedwidget/qwsembedwidget.pro
@@ -1,4 +1,5 @@
CONFIG += testcase
+
TARGET = tst_qwsembedwidget
-QT += widgets testlib
+QT += testlib
SOURCES += tst_qwsembedwidget.cpp
diff --git a/tests/auto/qx11info/qx11info.pro b/tests/auto/qx11info/qx11info.pro
index 3782644930..5533660e87 100644
--- a/tests/auto/qx11info/qx11info.pro
+++ b/tests/auto/qx11info/qx11info.pro
@@ -1,4 +1,5 @@
CONFIG += testcase
+
TARGET = tst_qx11info
-QT += widgets testlib
+QT += testlib
SOURCES += tst_qx11info.cpp
diff --git a/tests/auto/qxmlitem/qxmlitem.pro b/tests/auto/qxmlitem/qxmlitem.pro
index 54c8969a9f..0afd674f87 100644
--- a/tests/auto/qxmlitem/qxmlitem.pro
+++ b/tests/auto/qxmlitem/qxmlitem.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qxmlitem
+QT += testlib
SOURCES += tst_qxmlitem.cpp
include (../xmlpatterns.pri)
diff --git a/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro b/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro
index 73a5b00a8d..cddda290b7 100644
--- a/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro
+++ b/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qxmlnodemodelindex
+QT += testlib
SOURCES += tst_qxmlnodemodelindex.cpp
include (../xmlpatterns.pri)
diff --git a/tests/auto/qxmlresultitems/qxmlresultitems.pro b/tests/auto/qxmlresultitems/qxmlresultitems.pro
index 7d74c20970..6004e8eb8c 100644
--- a/tests/auto/qxmlresultitems/qxmlresultitems.pro
+++ b/tests/auto/qxmlresultitems/qxmlresultitems.pro
@@ -1,4 +1,6 @@
-load(qttest_p4)
+CONFIG += testcase
+TARGET = tst_qxmlresultitems
+QT += testlib
SOURCES += tst_qxmlresultitems.cpp
include (../xmlpatterns.pri)
diff --git a/tests/auto/qxmlschema/qxmlschema.pro b/tests/auto/qxmlschema/qxmlschema.pro
index f5abe4fd09..93238bc054 100644
--- a/tests/auto/qxmlschema/qxmlschema.pro
+++ b/tests/auto/qxmlschema/qxmlschema.pro
@@ -1,5 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qxmlschema
+QT += network testlib
SOURCES += tst_qxmlschema.cpp
-QT += network
include (../xmlpatterns.pri)
diff --git a/tests/auto/qzip/qzip.pro b/tests/auto/qzip/qzip.pro
index 683da62e37..e8f26a4b01 100644
--- a/tests/auto/qzip/qzip.pro
+++ b/tests/auto/qzip/qzip.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_qzip
+QT += testlib
SOURCES += tst_qzip.cpp
wince*|symbian: {
diff --git a/tests/auto/uic/uic.pro b/tests/auto/uic/uic.pro
index 355cb56cea..10444f6439 100644
--- a/tests/auto/uic/uic.pro
+++ b/tests/auto/uic/uic.pro
@@ -1,8 +1,8 @@
-load(qttest_p4)
+CONFIG += testcase
-CONFIG += qtestlib
-SOURCES += tst_uic.cpp
TARGET = tst_uic
+QT += qtestlib
+SOURCES += tst_uic.cpp
# This test is not run on wince (I think)
DEFINES += SRCDIR=\\\"$$PWD/\\\"
diff --git a/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro b/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro
index 0ced633071..3187999cc7 100644
--- a/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro
+++ b/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro
@@ -1,4 +1,7 @@
-load(qttest_p4)
+CONFIG += testcase
+
+TARGET = tst_xmlpatternsxqts
+QT += xml testlib
SOURCES += tst_xmlpatternsxqts.cpp ../qxmlquery/TestFundament.cpp tst_suitetest.cpp
include(../xmlpatterns.pri)
@@ -16,8 +19,4 @@ INCLUDEPATH += $$(QTDIR)/include/QtXmlPatterns/private \
$$(QTDIR)/tools/xmlpatterns \
../xmlpatternssdk/
-CONFIG += testlib
-QT += xml
-TARGET = tst_xmlpatternsxqts
-
requires(contains(QT_CONFIG,private_tests))