summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/CMakeLists.txt
blob: 6b7fdb0d5390d5857fa1877e01d376311d73c82d (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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
# Generated from selftests.pro.

# special case begin
# The whole file is written manually.

if(NOT WINRT)
    add_subdirectory(assert)
    add_subdirectory(badxml)
    add_subdirectory(benchlibcallgrind)
    add_subdirectory(benchlibcounting)
    add_subdirectory(benchlibeventcounter)
    add_subdirectory(benchliboptions)
    add_subdirectory(benchlibtickcounter)
    add_subdirectory(benchlibwalltime)
    add_subdirectory(blacklisted)
    add_subdirectory(cmptest)
    add_subdirectory(commandlinedata)
    add_subdirectory(counting)
    add_subdirectory(crashes)
    add_subdirectory(datatable)
    add_subdirectory(datetime)
    add_subdirectory(deleteLater)
    add_subdirectory(deleteLater_noApp)
    add_subdirectory(differentexec)
    add_subdirectory(exceptionthrow)
    add_subdirectory(expectfail)
    add_subdirectory(failcleanup)
    add_subdirectory(faildatatype)
    add_subdirectory(failfetchtype)
    add_subdirectory(failinit)
    add_subdirectory(failinitdata)
    add_subdirectory(fetchbogus)
    add_subdirectory(findtestdata)
    add_subdirectory(float)
    add_subdirectory(globaldata)
    add_subdirectory(longstring)
    add_subdirectory(maxwarnings)
    add_subdirectory(multiexec)
    add_subdirectory(pairdiagnostics)
    add_subdirectory(printdatatags)
    add_subdirectory(printdatatagswithglobaltags)
    add_subdirectory(qexecstringlist)
    add_subdirectory(silent)
    add_subdirectory(signaldumper)
    add_subdirectory(singleskip)
    add_subdirectory(skip)
    add_subdirectory(skipcleanup)
    add_subdirectory(skipinit)
    add_subdirectory(skipinitdata)
    add_subdirectory(sleep)
    add_subdirectory(strcmp)
    add_subdirectory(subtest)
    add_subdirectory(testlib)
    add_subdirectory(tuplediagnostics)
    add_subdirectory(verbose1)
    add_subdirectory(verbose2)
    add_subdirectory(verifyexceptionthrown)
    add_subdirectory(warnings)
    add_subdirectory(watchdog)
    add_subdirectory(xunit)

    if(TARGET Qt::Gui)
        add_subdirectory(keyboard)
        add_subdirectory(mouse)
    endif()
endif()

#####################################################################
## tst_selftests Test:
#####################################################################

add_qt_test(tst_selftests
    SOURCES
        ../../../shared/emulationdetector.h
        tst_selftests.cpp
    INCLUDE_DIRECTORIES
        ../../../shared
    LIBRARIES
        Qt::TestPrivate
)

add_qt_resource(tst_selftests "expected_files" PREFIX "/" FILES
    expected_assert.lightxml
    expected_assert.tap
    expected_assert.teamcity
    expected_assert.txt
    expected_assert.xml
    expected_assert.xunitxml
    expected_badxml.lightxml
    expected_badxml.tap
    expected_badxml.teamcity
    expected_badxml.txt
    expected_badxml.xml
    expected_badxml.xunitxml
    expected_benchlibcallgrind_0.txt
    expected_benchlibcallgrind_1.txt
    expected_benchlibcallgrind.csv
    expected_benchlibcallgrind.lightxml
    expected_benchlibcallgrind.tap
    expected_benchlibcallgrind.teamcity
    expected_benchlibcallgrind.xml
    expected_benchlibcallgrind.xunitxml
    expected_benchlibcounting.csv
    expected_benchlibcounting.lightxml
    expected_benchlibcounting.tap
    expected_benchlibcounting.teamcity
    expected_benchlibcounting.txt
    expected_benchlibcounting.xml
    expected_benchlibcounting.xunitxml
    expected_benchlibeventcounter.csv
    expected_benchlibeventcounter.lightxml
    expected_benchlibeventcounter.tap
    expected_benchlibeventcounter.teamcity
    expected_benchlibeventcounter.txt
    expected_benchlibeventcounter.xml
    expected_benchlibeventcounter.xunitxml
    expected_benchliboptions.csv
    expected_benchliboptions.lightxml
    expected_benchliboptions.tap
    expected_benchliboptions.teamcity
    expected_benchliboptions.txt
    expected_benchliboptions.xml
    expected_benchliboptions.xunitxml
    expected_benchlibtickcounter.csv
    expected_benchlibtickcounter.lightxml
    expected_benchlibtickcounter.tap
    expected_benchlibtickcounter.teamcity
    expected_benchlibtickcounter.txt
    expected_benchlibtickcounter.xml
    expected_benchlibtickcounter.xunitxml
    expected_benchlibwalltime.csv
    expected_benchlibwalltime.lightxml
    expected_benchlibwalltime.tap
    expected_benchlibwalltime.teamcity
    expected_benchlibwalltime.txt
    expected_benchlibwalltime.xml
    expected_benchlibwalltime.xunitxml
    expected_blacklisted.lightxml
    expected_blacklisted.tap
    expected_blacklisted.teamcity
    expected_blacklisted.txt
    expected_blacklisted.xml
    expected_blacklisted.xunitxml
    expected_cmptest.lightxml
    expected_cmptest.tap
    expected_cmptest.teamcity
    expected_cmptest.txt
    expected_cmptest.xml
    expected_cmptest.xunitxml
    expected_commandlinedata.lightxml
    expected_commandlinedata.tap
    expected_commandlinedata.teamcity
    expected_commandlinedata.txt
    expected_commandlinedata.xml
    expected_commandlinedata.xunitxml
    expected_counting.lightxml
    expected_counting.tap
    expected_counting.teamcity
    expected_counting.txt
    expected_counting.xml
    expected_counting.xunitxml
    expected_crashes_1.txt
    expected_crashes_2.txt
    expected_crashes_3.txt
    expected_crashes_4.txt
    expected_crashes_5.txt
    expected_datatable.lightxml
    expected_datatable.tap
    expected_datatable.teamcity
    expected_datatable.txt
    expected_datatable.xml
    expected_datatable.xunitxml
    expected_datetime.lightxml
    expected_datetime.tap
    expected_datetime.teamcity
    expected_datetime.txt
    expected_datetime.xml
    expected_datetime.xunitxml
    expected_differentexec.lightxml
    expected_differentexec.tap
    expected_differentexec.teamcity
    expected_differentexec.txt
    expected_differentexec.xml
    expected_differentexec.xunitxml
    expected_exceptionthrow.lightxml
    expected_exceptionthrow.tap
    expected_exceptionthrow.teamcity
    expected_exceptionthrow.txt
    expected_exceptionthrow.xml
    expected_exceptionthrow.xunitxml
    expected_expectfail.lightxml
    expected_expectfail.tap
    expected_expectfail.teamcity
    expected_expectfail.txt
    expected_expectfail.xml
    expected_expectfail.xunitxml
    expected_failcleanup.lightxml
    expected_failcleanup.tap
    expected_failcleanup.teamcity
    expected_failcleanup.txt
    expected_failcleanup.xml
    expected_failcleanup.xunitxml
    expected_faildatatype.lightxml
    expected_faildatatype.tap
    expected_faildatatype.teamcity
    expected_faildatatype.txt
    expected_faildatatype.xml
    expected_faildatatype.xunitxml
    expected_failfetchtype.lightxml
    expected_failfetchtype.tap
    expected_failfetchtype.teamcity
    expected_failfetchtype.txt
    expected_failfetchtype.xml
    expected_failfetchtype.xunitxml
    expected_failinitdata.lightxml
    expected_failinitdata.tap
    expected_failinitdata.teamcity
    expected_failinitdata.txt
    expected_failinitdata.xml
    expected_failinitdata.xunitxml
    expected_failinit.lightxml
    expected_failinit.tap
    expected_failinit.teamcity
    expected_failinit.txt
    expected_failinit.xml
    expected_failinit.xunitxml
    expected_fetchbogus.lightxml
    expected_fetchbogus.tap
    expected_fetchbogus.teamcity
    expected_fetchbogus.txt
    expected_fetchbogus.xml
    expected_fetchbogus.xunitxml
    expected_findtestdata.lightxml
    expected_findtestdata.tap
    expected_findtestdata.teamcity
    expected_findtestdata.txt
    expected_findtestdata.xml
    expected_findtestdata.xunitxml
    expected_float.lightxml
    expected_float.tap
    expected_float.teamcity
    expected_float.txt
    expected_float.xml
    expected_float.xunitxml
    expected_globaldata.lightxml
    expected_globaldata.tap
    expected_globaldata.teamcity
    expected_globaldata.txt
    expected_globaldata.xml
    expected_globaldata.xunitxml
    expected_keyboard.lightxml
    expected_keyboard.tap
    expected_keyboard.teamcity
    expected_keyboard.txt
    expected_keyboard.xml
    expected_keyboard.xunitxml
    expected_longstring.lightxml
    expected_longstring.tap
    expected_longstring.teamcity
    expected_longstring.txt
    expected_longstring.xml
    expected_longstring.xunitxml
    expected_maxwarnings.lightxml
    expected_maxwarnings.tap
    expected_maxwarnings.teamcity
    expected_maxwarnings.txt
    expected_maxwarnings.xml
    expected_maxwarnings.xunitxml
    expected_multiexec.lightxml
    expected_multiexec.tap
    expected_multiexec.teamcity
    expected_multiexec.txt
    expected_multiexec.xml
    expected_multiexec.xunitxml
    expected_pairdiagnostics.lightxml
    expected_pairdiagnostics.tap
    expected_pairdiagnostics.teamcity
    expected_pairdiagnostics.txt
    expected_pairdiagnostics.xml
    expected_pairdiagnostics.xunitxml
    expected_printdatatags.txt
    expected_printdatatagswithglobaltags.txt
    expected_qexecstringlist.lightxml
    expected_qexecstringlist.tap
    expected_qexecstringlist.teamcity
    expected_qexecstringlist.txt
    expected_qexecstringlist.xml
    expected_qexecstringlist.xunitxml
    expected_signaldumper.lightxml
    expected_signaldumper.tap
    expected_signaldumper.teamcity
    expected_signaldumper.txt
    expected_signaldumper.xml
    expected_signaldumper.xunitxml
    expected_silent.lightxml
    expected_silent.tap
    expected_silent.teamcity
    expected_silent.txt
    expected_silent.xml
    expected_silent.xunitxml
    expected_singleskip.lightxml
    expected_singleskip.tap
    expected_singleskip.teamcity
    expected_singleskip.txt
    expected_singleskip.xml
    expected_singleskip.xunitxml
    expected_skipcleanup.lightxml
    expected_skipcleanup.tap
    expected_skipcleanup.teamcity
    expected_skipcleanup.txt
    expected_skipcleanup.xml
    expected_skipcleanup.xunitxml
    expected_skipinitdata.lightxml
    expected_skipinitdata.tap
    expected_skipinitdata.teamcity
    expected_skipinitdata.txt
    expected_skipinitdata.xml
    expected_skipinitdata.xunitxml
    expected_skipinit.lightxml
    expected_skipinit.tap
    expected_skipinit.teamcity
    expected_skipinit.txt
    expected_skipinit.xml
    expected_skipinit.xunitxml
    expected_skip.lightxml
    expected_skip.tap
    expected_skip.teamcity
    expected_skip.txt
    expected_skip.xml
    expected_skip.xunitxml
    expected_sleep.lightxml
    expected_sleep.tap
    expected_sleep.teamcity
    expected_sleep.txt
    expected_sleep.xml
    expected_sleep.xunitxml
    expected_strcmp.lightxml
    expected_strcmp.tap
    expected_strcmp.teamcity
    expected_strcmp.txt
    expected_strcmp.xml
    expected_strcmp.xunitxml
    expected_subtest.lightxml
    expected_subtest.tap
    expected_subtest.teamcity
    expected_subtest.txt
    expected_subtest.xml
    expected_subtest.xunitxml
    expected_testlib.lightxml
    expected_testlib.tap
    expected_testlib.teamcity
    expected_testlib.txt
    expected_testlib.xml
    expected_testlib.xunitxml
    expected_tuplediagnostics.lightxml
    expected_tuplediagnostics.tap
    expected_tuplediagnostics.teamcity
    expected_tuplediagnostics.txt
    expected_tuplediagnostics.xml
    expected_tuplediagnostics.xunitxml
    expected_verbose1.lightxml
    expected_verbose1.tap
    expected_verbose1.teamcity
    expected_verbose1.txt
    expected_verbose1.xml
    expected_verbose1.xunitxml
    expected_verbose2.lightxml
    expected_verbose2.tap
    expected_verbose2.teamcity
    expected_verbose2.txt
    expected_verbose2.xml
    expected_verbose2.xunitxml
    expected_verifyexceptionthrown.lightxml
    expected_verifyexceptionthrown.tap
    expected_verifyexceptionthrown.teamcity
    expected_verifyexceptionthrown.txt
    expected_verifyexceptionthrown.xml
    expected_verifyexceptionthrown.xunitxml
    expected_warnings.lightxml
    expected_warnings.tap
    expected_warnings.teamcity
    expected_warnings.txt
    expected_warnings.xml
    expected_warnings.xunitxml
    expected_watchdog.lightxml
    expected_watchdog.tap
    expected_watchdog.teamcity
    expected_watchdog.txt
    expected_watchdog.xml
    expected_watchdog.xunitxml
    expected_xunit.lightxml
    expected_xunit.tap
    expected_xunit.teamcity
    expected_xunit.txt
    expected_xunit.xml
    expected_xunit.xunitxml
)


#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# CONFIG = "testcase"
# expected_files.base = "$$PWD/.."
# expected_files.files = "$$files$$PWD/../expected_*"

## Scopes:
#####################################################################

#### Keys ignored in scope 5:.:.:test.pro:NOT ANDROID AND NOT WINRT AND for(file,SUBPROGRAMS):
# TEST_HELPER_INSTALLS = "../$${file}/$${file}"

# special case end