tests: fix private header inclusion in qtbase autotests

Any test which needs private headers from some Qt module must do:

  QT += modulename-private

Reviewed-by: Jason McDonald
Change-Id: I6924a577a960e4990f4379b02bca4822d8248fb4
This commit is contained in:
Rohan McGovern 2011-05-11 14:02:54 +10:00
parent 838cf9abd9
commit fda40e37df
62 changed files with 132 additions and 38 deletions

View File

@ -1,3 +1,4 @@
load(qttest_p4)
QT += core-private
SOURCES += tst_languagechange.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
SOURCES += tst_nativeimagehandleprovider.cpp
symbian {
LIBS += -lfbscli -lbitgdi

View File

@ -1,5 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += ../tst_qapplication.cpp
TARGET = ../tst_qapplication

View File

@ -2,7 +2,7 @@ load(qttest_p4)
SOURCES += tst_qbytearray.cpp
QT = core
QT = core core-private
wince*|symbian {
addFile.files = rfc3252.txt

View File

@ -1,7 +1,7 @@
load(qttest_p4)
SOURCES += tst_qchar.cpp
QT = core
QT = core core-private
wince*|symbian: {
deploy.files += NormalizationTest.txt

View File

@ -1,4 +1,5 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qcomplextext.cpp
INCLUDEPATH += $$QT_SOURCE_TREE/src/3rdparty/harfbuzz/src

View File

@ -1,7 +1,7 @@
load(qttest_p4)
SOURCES += tst_qdatetime.cpp
QT = core
QT = core core-private
# For some reason using optimization here triggers a compiler issue, which causes an exception
# However, the code is correct

View File

@ -1,5 +1,5 @@
load(qttest_p4)
QT = core
QT = core core-private
contains(QT_CONFIG,dbus): {
TEMPLATE = subdirs
CONFIG += ordered

View File

@ -3,5 +3,4 @@ SOURCES += ../tst_qdbusabstractadaptor.cpp
HEADERS += ../myobject.h
TARGET = ../tst_qdbusabstractadaptor
QT = core
QT += dbus
QT = core core-private dbus

View File

@ -3,5 +3,4 @@ SOURCES += ../tst_qdbusinterface.cpp
HEADERS += ../myobject.h
TARGET = ../tst_qdbusinterface
QT = core
QT += dbus
QT = core core-private dbus

View File

@ -4,6 +4,8 @@ contains(QT_CONFIG,dbus): {
CONFIG += ordered
SUBDIRS = qpong test
QT += core-private
requires(contains(QT_CONFIG,private_tests))
} else {
SOURCES += dummy.cpp

View File

@ -2,7 +2,7 @@ load(qttest_p4)
QT = core
contains(QT_CONFIG,dbus): {
SOURCES += tst_qdbusmetaobject.cpp
QT += dbus
QT += dbus dbus-private
} else {
SOURCES += ../qdbusmarshall/dummy.cpp
}

View File

@ -1,8 +1,8 @@
load(qttest_p4)
QT = core
QT = core core-private
contains(QT_CONFIG,dbus): {
SOURCES += tst_qdbustype.cpp
QT += dbus
QT += dbus dbus-private
QMAKE_CXXFLAGS += $$QT_CFLAGS_DBUS
LIBS_PRIVATE += $$QT_LIBS_DBUS
} else {

View File

@ -1,8 +1,8 @@
load(qttest_p4)
QT = core
QT = core core-private
contains(QT_CONFIG,dbus): {
SOURCES += tst_qdbusxmlparser.cpp
QT += dbus
QT += dbus dbus-private
} else {
SOURCES += ../qdbusmarshall/dummy.cpp
}

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qdockwidget.cpp

View File

@ -1,9 +1,7 @@
############################################################
# Project file for autotest for file qfiledialog.h
############################################################
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qfiledialog2.cpp
wince*|symbian {

View File

@ -3,6 +3,6 @@ load(qttest_p4)
SOURCES += tst_qfilesystementry.cpp \
../../../src/corelib/io/qfilesystementry.cpp
HEADERS += ../../../src/corelib/io/qfilesystementry_p.h
QT = core
QT = core core-private
CONFIG += parallel_test

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qfontdialog.cpp
mac {

View File

@ -2,7 +2,7 @@ load(qttest_p4)
SOURCES += tst_qftp.cpp
QT = core network
QT = core network network-private
wince*: {
addFiles.files = rfc3252.txt

View File

@ -1,5 +1,5 @@
load(qttest_p4)
DEFINES += QT_STRICT_ITERATORS
SOURCES += tst_qfuture.cpp
QT = core
QT = core core-private
CONFIG += parallel_test

View File

@ -1,4 +1,4 @@
load(qttest_p4)
SOURCES += tst_qfuturewatcher.cpp
QT = core
QT = core core-private
CONFIG += parallel_test

View File

@ -1,3 +1,6 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qgraphicseffect.cpp
CONFIG += parallel_test

View File

@ -1,3 +1,6 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qgraphicseffectsource.cpp
CONFIG += parallel_test

View File

@ -1,3 +1,6 @@
load(qttest_p4)
QT += core-private
SOURCES += tst_qgraphicsobject.cpp
CONFIG += parallel_test
CONFIG += parallel_test

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qgraphicsproxywidget.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qgraphicsview.cpp tst_qgraphicsview_2.cpp
DEFINES += QT_NO_CAST_TO_ASCII

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qgraphicswidget.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qgridlayout.cpp
FORMS += sortdialog.ui

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qheaderview.cpp

View File

@ -1,6 +1,8 @@
load(qttest_p4)
SOURCES += tst_qimage.cpp
QT += core-private gui-private
wince*: {
addImages.files = images/*
addImages.path = images

View File

@ -1,7 +1,7 @@
load(qttest_p4)
SOURCES += tst_qimagereader.cpp
MOC_DIR=tmp
QT += network
QT += core-private gui-private network
RESOURCES += qimagereader.qrc
!symbian:DEFINES += SRCDIR=\\\"$$PWD\\\"

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qkeysequence.cpp
RESOURCES += qkeysequence.qrc
RESOURCES += qkeysequence.qrc

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qlabel.cpp
wince*::DEFINES += SRCDIR=\\\"\\\"
else:!symbian:DEFINES += SRCDIR=\\\"$$PWD/\\\"

View File

@ -1,9 +1,7 @@
############################################################
# Project file for autotest for file qlayout.h
############################################################
load(qttest_p4)
QT += gui-private
SOURCES += tst_qlayout.cpp
contains(QT_CONFIG, qt3support): QT += qt3support
wince*|symbian: {

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
INCLUDEPATH += .
SOURCES += tst_qmdiarea.cpp
DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII

View File

@ -1,5 +1,5 @@
load(qttest_p4)
SOURCES += tst_qnetworkcookiejar.cpp
QT = core network
QT = core core-private network network-private
symbian: TARGET.CAPABILITY = NetworkServices

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
contains(QT_CONFIG, qt3support): QT += qt3support
SOURCES += tst_qpainter.cpp
wince*|symbian: {

View File

@ -1,5 +1,5 @@
load(qttest_p4)
QT = core gui
QT = core core-private gui gui-private
SOURCES += tst_qpauseanimation.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qpixmap.cpp
contains(QT_CONFIG, qt3support): QT += qt3support
wince*|symbian: {

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
SOURCES += tst_qpixmapfilter.cpp
wince*: {

View File

@ -1,5 +1,7 @@
load(qttest_p4)
QT += gui-private
INCLUDEPATH += ../
HEADERS +=

View File

@ -1,5 +1,6 @@
load(qttest_p4)
QT = core gui
QT = core core-private gui gui-private
SOURCES += \
tst_qrawfont.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
SOURCES += tst_qregion.cpp

View File

@ -1,7 +1,7 @@
load(qttest_p4)
SOURCES += tst_qringbuffer.cpp
QT = core
QT = core core-private
CONFIG += parallel_test

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private
SOURCES += tst_qsettings.cpp
RESOURCES += qsettings.qrc

View File

@ -1,7 +1,7 @@
load(qttest_p4)
SOURCES += tst_qsql.cpp
QT += sql
QT += sql sql-private
contains(QT_CONFIG, qt3support): QT += qt3support

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qstandarditemmodel.cpp

View File

@ -1,4 +1,4 @@
load(qttest_p4)
QT = core gui
QT = core core-private gui
SOURCES += tst_qstatemachine.cpp

View File

@ -1,4 +1,4 @@
load(qttest_p4)
QT = core gui
QT = core core-private gui gui-private
SOURCES += tst_qstatictext.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
TARGET.EPOCHEAPSIZE = 0x200000 0x800000
SOURCES += tst_qtableview.cpp

View File

@ -1,5 +1,7 @@
load(qttest_p4)
QT += gui-private
INCLUDEPATH += ../
HEADERS +=

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
SOURCES += tst_tessellator.cpp testtessellator.cpp oldtessellator.cpp utils.cpp simple.cpp dataparser.cpp arc.cpp
HEADERS += oldtessellator.h testtessellator.h utils.h XRenderFake.h simple.h qnum.h dataparser.h arc.h

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qtextblock.cpp

View File

@ -1,5 +1,5 @@
load(qttest_p4)
QT += xml
QT += core-private gui-private xml
HEADERS += common.h
SOURCES += tst_qtextdocument.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qtextdocumentfragment.cpp

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qtextlist.cpp
HEADERS += ../qtextdocument/common.h

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
HEADERS +=
SOURCES += tst_qtextscriptengine.cpp
INCLUDEPATH += $$QT_SOURCE_TREE/src/3rdparty/harfbuzz/src

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
SOURCES += tst_qvolatileimage.cpp
symbian {

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += core-private gui-private
SOURCES += tst_qwidget.cpp
RESOURCES = qwidget.qrc

View File

@ -1,4 +1,7 @@
load(qttest_p4)
QT += gui-private
SOURCES += tst_qwindowsurface.cpp

View File

@ -1,6 +1,6 @@
load(qttest_p4)
SOURCES += tst_benchlibtickcounter.cpp
QT = core
QT = core testlib-private
mac:CONFIG -= app_bundle
CONFIG -= debug_and_release_target

View File

@ -1,6 +1,6 @@
load(qttest_p4)
SOURCES += ../tst_selftests.cpp
QT += core xml
QT += core xml testlib-private
TARGET = ../tst_selftests