tests: eliminated usage of qttest_p4.prf
authorRohan McGovern <rohan.mcgovern@nokia.com>
Thu, 6 Oct 2011 23:50:44 +0000 (09:50 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Oct 2011 04:42:15 +0000 (06:42 +0200)
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: Ie775d011e6f63d4d174c2be78cda138d7bbe85ff
Reviewed-on: http://codereview.qt-project.org/6186
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
src/linguist/tests/tests.pro
tests/auto/headersclean/headersclean.pro
tests/auto/linguist/lconvert/lconvert.pro
tests/auto/linguist/lrelease/lrelease.pro
tests/auto/linguist/lupdate/lupdate.pro
tests/auto/qhelpcontentmodel/qhelpcontentmodel.pro
tests/auto/qhelpenginecore/qhelpenginecore.pro
tests/auto/qhelpgenerator/qhelpgenerator.pro
tests/auto/qhelpindexmodel/qhelpindexmodel.pro
tests/auto/qhelpprojectdata/qhelpprojectdata.pro
tests/auto/uiloader/uiloader/uiloader.pro

index a67725c..dc878bb 100644 (file)
@@ -1,6 +1,7 @@
-load(qttest_p4)
+TARGET = tst_tests
+CONFIG += testcase
 
-QT += xml
+QT += xml testlib
 
 HEADERS += \
     tst_linguist.h \
index 4dfe3f8..0851cad 100644 (file)
@@ -1,4 +1,4 @@
-load(qttest_p4)
+TARGET = tst_headersclean
+CONFIG += testcase
 SOURCES  += tst_headersclean.cpp
-QT = core
-QT += designer help
+QT = core designer help testlib
index 517dacd..af29c58 100644 (file)
@@ -1,4 +1,5 @@
-CONFIG += qttest_p4
+CONFIG += testcase
+QT += testlib
 
 TARGET = tst_lconvert
 
index 8006042..ba69b7f 100644 (file)
@@ -1,5 +1,5 @@
-CONFIG += qttest_p4
-CONFIG -= gui
+CONFIG += testcase
+QT = core testlib
 TARGET = tst_lrelease
 
 SOURCES += tst_lrelease.cpp
index 3c69998..34523a6 100644 (file)
@@ -1,4 +1,6 @@
-CONFIG += qttest_p4
+CONFIG += testcase
+QT += testlib
+
 # June 2011: Marked as unstable due to tst_lupdate::good(heuristics) failing
 # due to changes in qtbase/mkspecs/features/qt_config.prf.
 CONFIG+=insignificant_test
index dedd0aa..2e19047 100644 (file)
@@ -1,4 +1,6 @@
-load(qttest_p4)
+TARGET = tst_qhelpcontentmodel
+CONFIG += testcase
+QT += testlib
 SOURCES += tst_qhelpcontentmodel.cpp
 
 CONFIG += help
index 94ef621..0cd8298 100644 (file)
@@ -1,7 +1,8 @@
-load(qttest_p4)
+TARGET = tst_qhelpenginecore
+CONFIG += testcase
 SOURCES += tst_qhelpenginecore.cpp
 CONFIG  += help
-QT      += sql
+QT      += sql testlib
 
 
 DEFINES += QT_USE_USING_NAMESPACE
index b4b07dd..8c9506c 100644 (file)
@@ -1,8 +1,9 @@
-load(qttest_p4)
+TARGET = tst_qhelpgenerator
+CONFIG += testcase
 
 SOURCES += tst_qhelpgenerator.cpp
 CONFIG  += help
-QT      += sql
+QT      += sql testlib
 
 DEFINES += SRCDIR=\\\"$$PWD\\\"
 DEFINES += QT_USE_USING_NAMESPACE
index 927c2e1..730136a 100644 (file)
@@ -1,8 +1,9 @@
-load(qttest_p4)
+TARGET = tst_qhelpindexmodel
+CONFIG += testcase
 
 SOURCES += tst_qhelpindexmodel.cpp
 CONFIG  += help
-QT      += sql
+QT      += sql testlib
 
 DEFINES += SRCDIR=\\\"$$PWD\\\"
 DEFINES += QT_USE_USING_NAMESPACE
index 92dc620..72a91be 100644 (file)
@@ -1,7 +1,9 @@
-load(qttest_p4)
+TARGET = tst_qhelpprojectdata
+CONFIG += testcase
 
 SOURCES += tst_qhelpprojectdata.cpp
 CONFIG  += help
+QT      += testlib
 
 DEFINES += SRCDIR=\\\"$$PWD\\\"
 DEFINES += QT_USE_USING_NAMESPACE
index 1262470..4263310 100644 (file)
@@ -1,4 +1,4 @@
-load(qttest_p4)
+CONFIG += testcase
 
 TEMPLATE = app
 !embedded:CONFIG += uitools
@@ -13,7 +13,7 @@ win32 {
   }
 }
 
-QT += widgets network
+QT += widgets network testlib
 
 wince*|symbian: {
    configuration.files = ../*.ini