summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason McDonald <[email protected]>2011-05-27 13:20:52 +1000
committerQt Continuous Integration System <[email protected]>2011-05-27 08:41:00 +0200
commita6973e22ff3ec047875d296182c2ac4d106e2ddf (patch)
tree46c2dc9d6c53b47f2ca3627cbb2fb4c4b8b4d201
parentd49973f834fb73c534275f5b1d508329638e2823 (diff)
Use "QT += testlib" consistently
If a project uses "load(qttest_p4)" it doesn't need to add testlib to the CONFIG or QT variables. If a project does not use "load(qttest_p4)", it should add "testlib" to the QT variable. Change-Id: If28353713ccdfe13612682e3e88dadebe2f2eefd Reviewed-on: http://codereview.qt.nokia.com/159 Reviewed-by: Rohan McGovern <[email protected]>
-rw-r--r--examples/qtestlib/tutorial1/tutorial1.pro2
-rw-r--r--examples/qtestlib/tutorial2/tutorial2.pro2
-rw-r--r--examples/qtestlib/tutorial3/tutorial3.pro2
-rw-r--r--examples/qtestlib/tutorial4/tutorial4.pro2
-rw-r--r--examples/qtestlib/tutorial5/tutorial5.pro2
-rw-r--r--tests/auto/qcompleter/qcompleter.pro8
-rw-r--r--tests/auto/qerrormessage/qerrormessage.pro7
-rw-r--r--tests/auto/qlocalsocket/lackey/lackey.pro6
-rw-r--r--tests/auto/qmessagebox/qmessagebox.pro4
-rw-r--r--tests/auto/qtipc/lackey/lackey.pro7
-rw-r--r--tests/auto/uic/uic.pro1
11 files changed, 7 insertions, 36 deletions
diff --git a/examples/qtestlib/tutorial1/tutorial1.pro b/examples/qtestlib/tutorial1/tutorial1.pro
index fdbf2fc3659..6da372bcbba 100644
--- a/examples/qtestlib/tutorial1/tutorial1.pro
+++ b/examples/qtestlib/tutorial1/tutorial1.pro
@@ -1,5 +1,5 @@
SOURCES = testqstring.cpp
-CONFIG += qtestlib
+QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial1
diff --git a/examples/qtestlib/tutorial2/tutorial2.pro b/examples/qtestlib/tutorial2/tutorial2.pro
index 647ddd75ae9..06cf30fae90 100644
--- a/examples/qtestlib/tutorial2/tutorial2.pro
+++ b/examples/qtestlib/tutorial2/tutorial2.pro
@@ -1,5 +1,5 @@
SOURCES = testqstring.cpp
-CONFIG += qtestlib
+QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial2
diff --git a/examples/qtestlib/tutorial3/tutorial3.pro b/examples/qtestlib/tutorial3/tutorial3.pro
index 887fc9a592b..ff39bd40bda 100644
--- a/examples/qtestlib/tutorial3/tutorial3.pro
+++ b/examples/qtestlib/tutorial3/tutorial3.pro
@@ -1,5 +1,5 @@
SOURCES = testgui.cpp
-CONFIG += qtestlib
+QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial3
diff --git a/examples/qtestlib/tutorial4/tutorial4.pro b/examples/qtestlib/tutorial4/tutorial4.pro
index 082a3a3caad..ae84726b834 100644
--- a/examples/qtestlib/tutorial4/tutorial4.pro
+++ b/examples/qtestlib/tutorial4/tutorial4.pro
@@ -1,5 +1,5 @@
SOURCES = testgui.cpp
-CONFIG += qtestlib
+QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial4
diff --git a/examples/qtestlib/tutorial5/tutorial5.pro b/examples/qtestlib/tutorial5/tutorial5.pro
index 4f70284309b..085dfd8b675 100644
--- a/examples/qtestlib/tutorial5/tutorial5.pro
+++ b/examples/qtestlib/tutorial5/tutorial5.pro
@@ -1,5 +1,5 @@
SOURCES = benchmarking.cpp
-CONFIG += qtestlib
+QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial5
diff --git a/tests/auto/qcompleter/qcompleter.pro b/tests/auto/qcompleter/qcompleter.pro
index 39b5dd717ec..bd352d819c8 100644
--- a/tests/auto/qcompleter/qcompleter.pro
+++ b/tests/auto/qcompleter/qcompleter.pro
@@ -1,16 +1,8 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Apr 26 13:53:24 2006
-######################################################################
load(qttest_p4)
TEMPLATE = app
TARGET = tst_qcompleter
DEPENDPATH += .
INCLUDEPATH += . ..
-CONFIG += console qtestlib
-
# Input
SOURCES += tst_qcompleter.cpp
-
-
-
diff --git a/tests/auto/qerrormessage/qerrormessage.pro b/tests/auto/qerrormessage/qerrormessage.pro
index 0db361081bc..1c24aa83cb7 100644
--- a/tests/auto/qerrormessage/qerrormessage.pro
+++ b/tests/auto/qerrormessage/qerrormessage.pro
@@ -1,15 +1,8 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Apr 26 13:53:24 2006
-######################################################################
load(qttest_p4)
TEMPLATE = app
TARGET = tst_qerrormessage
DEPENDPATH += .
INCLUDEPATH += .
-CONFIG += console qtestlib
# Input
SOURCES += tst_qerrormessage.cpp
-
-
-
diff --git a/tests/auto/qlocalsocket/lackey/lackey.pro b/tests/auto/qlocalsocket/lackey/lackey.pro
index 6af58b122ad..2573222c8b4 100644
--- a/tests/auto/qlocalsocket/lackey/lackey.pro
+++ b/tests/auto/qlocalsocket/lackey/lackey.pro
@@ -1,10 +1,6 @@
#include(../src/src.pri)
-QT = core script network
-
-requires(contains(QT_CONFIG,script))
-
-CONFIG += qtestlib
+QT = core script network testlib
DESTDIR = ./
diff --git a/tests/auto/qmessagebox/qmessagebox.pro b/tests/auto/qmessagebox/qmessagebox.pro
index 9fa1738a796..a845e2186aa 100644
--- a/tests/auto/qmessagebox/qmessagebox.pro
+++ b/tests/auto/qmessagebox/qmessagebox.pro
@@ -1,13 +1,9 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Apr 26 13:53:24 2006
-######################################################################
load(qttest_p4)
TEMPLATE = app
TARGET = tst_qmessagebox
DEPENDPATH += .
INCLUDEPATH += .
-CONFIG += console qtestlib
# Input
SOURCES += tst_qmessagebox.cpp
diff --git a/tests/auto/qtipc/lackey/lackey.pro b/tests/auto/qtipc/lackey/lackey.pro
index 2fa364c4c91..91659d701eb 100644
--- a/tests/auto/qtipc/lackey/lackey.pro
+++ b/tests/auto/qtipc/lackey/lackey.pro
@@ -1,17 +1,12 @@
include(../qsharedmemory/src/src.pri)
-QT = core script
-QT += core-private
-
-CONFIG += qtestlib
+QT = core-private script testlib
DESTDIR = ./
win32: CONFIG += console
mac:CONFIG -= app_bundle
-requires(contains(QT_CONFIG,script))
-
DEFINES += QSHAREDMEMORY_DEBUG
DEFINES += QSYSTEMSEMAPHORE_DEBUG
diff --git a/tests/auto/uic/uic.pro b/tests/auto/uic/uic.pro
index 355cb56cea2..00450154578 100644
--- a/tests/auto/uic/uic.pro
+++ b/tests/auto/uic/uic.pro
@@ -1,6 +1,5 @@
load(qttest_p4)
-CONFIG += qtestlib
SOURCES += tst_uic.cpp
TARGET = tst_uic