blob: 787df6b6484793f2a4bbd842d16e86c2297107e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
TARGET = QtTest
QT = core-private
CONFIG += exceptions
MODULE_CONFIG = console testlib_defines
unix:!embedded:QMAKE_PKGCONFIG_DESCRIPTION = Qt \
Unit \
Testing \
Library
QMAKE_DOCS = $$PWD/doc/qttestlib.qdocconf
HEADERS = \
qabstracttestlogger_p.h \
qbenchmark.h \
qbenchmark_p.h \
qbenchmarkmeasurement_p.h \
qbenchmarktimemeasurers_p.h \
qbenchmarkevent_p.h \
qbenchmarkperfevents_p.h \
qbenchmarkmetric.h \
qbenchmarkmetric_p.h \
qcsvbenchmarklogger_p.h \
qplaintestlogger_p.h \
qsignaldumper_p.h \
qsignalspy.h \
qteamcitylogger_p.h \
qtestaccessible.h \
qtestassert.h \
qtestcase.h \
qtestcoreelement_p.h \
qtestcorelist_p.h \
qtestdata.h \
qtestevent.h \
qtesteventloop.h \
qtest_gui.h \
qtest_network.h \
qtest_widgets.h \
qtest.h \
qtestelement_p.h \
qtestelementattribute_p.h \
qtestkeyboard.h \
qtestlog_p.h \
qtestmouse.h \
qtestresult_p.h \
qtestspontaneevent.h \
qtestsystem.h \
qtesttable_p.h \
qtesttouch.h \
qtestblacklist_p.h \
qtesthelpers_p.h \
qttestglobal.h \
qtestjunitstreamer_p.h \
qtaptestlogger_p.h \
qxmltestlogger_p.h \
qjunittestlogger_p.h
SOURCES = \
qtestcase.cpp \
qtestlog.cpp \
qtesttable.cpp \
qtestdata.cpp \
qtestresult.cpp \
qasciikey.cpp \
qplaintestlogger.cpp \
qxmltestlogger.cpp \
qsignaldumper.cpp \
qabstracttestlogger.cpp \
qbenchmark.cpp \
qbenchmarkmeasurement.cpp \
qbenchmarkevent.cpp \
qbenchmarkperfevents.cpp \
qbenchmarkmetric.cpp \
qcsvbenchmarklogger.cpp \
qteamcitylogger.cpp \
qtestelement.cpp \
qtestelementattribute.cpp \
qtestmouse.cpp \
qtestjunitstreamer.cpp \
qjunittestlogger.cpp \
qtestblacklist.cpp \
qtaptestlogger.cpp
qtConfig(itemmodeltester) {
HEADERS += \
qabstractitemmodeltester.h
SOURCES += \
qabstractitemmodeltester.cpp
}
qtConfig(valgrind) {
HEADERS += \
qbenchmarkvalgrind_p.h
SOURCES += \
qbenchmarkvalgrind.cpp
}
DEFINES *= QT_NO_CAST_TO_ASCII \
QT_NO_CAST_FROM_ASCII \
QT_NO_FOREACH \
QT_NO_DATASTREAM
embedded:QMAKE_CXXFLAGS += -fno-rtti
mac {
LIBS += -framework Security
SOURCES += qappletestlogger.cpp
HEADERS += qappletestlogger_p.h
macos {
HEADERS += qtestutil_macos_p.h
OBJECTIVE_SOURCES += qtestutil_macos.mm
LIBS += -framework Foundation -framework ApplicationServices -framework IOKit -framework AppKit
}
# XCTest support (disabled for now)
false:!lessThan(QMAKE_XCODE_VERSION, "6.0") {
OBJECTIVE_SOURCES += qxctestlogger.mm
HEADERS += qxctestlogger_p.h
DEFINES += HAVE_XCTEST
LIBS += -framework Foundation
load(sdk)
!isEmpty(QMAKE_MAC_SDK_PLATFORM_PATH) {
platform_dev_frameworks_path = $${QMAKE_MAC_SDK_PLATFORM_PATH}/Developer/Library/Frameworks
# We can't put this path into LIBS (so that it propagates to the prl file), as we
# don't know yet if the target that links to testlib will build under Xcode or not.
# The corresponding flags for the target lives in xctest.prf, where we do know.
QMAKE_LFLAGS += -F$${platform_dev_frameworks_path} -weak_framework XCTest
QMAKE_CXXFLAGS += -F$${platform_dev_frameworks_path}
MODULE_CONFIG += xctest
}
}
}
# Exclude these headers from the clean check if their dependencies aren't
# being built
!qtHaveModule(gui) {
HEADERSCLEAN_EXCLUDE += qtest_gui.h \
qtestaccessible.h \
qtestkeyboard.h \
qtestmouse.h \
qtesttouch.h
}
!qtHaveModule(widgets): HEADERSCLEAN_EXCLUDE += qtest_widgets.h
!qtHaveModule(network): HEADERSCLEAN_EXCLUDE += qtest_network.h
include(selfcover.pri)
load(qt_module)
|