summaryrefslogtreecommitdiff
path: root/test/pacman/meson.build
blob: 3ad1fcd0afdc793529143bdfa5064d9d5414cf3f (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
pacman_tests = [
  { 'name': 'tests/backup001.py' },
  { 'name': 'tests/clean001.py' },
  { 'name': 'tests/clean002.py' },
  { 'name': 'tests/clean003.py' },
  { 'name': 'tests/clean004.py' },
  { 'name': 'tests/clean005.py' },
  { 'name': 'tests/config001.py' },
  { 'name': 'tests/config002.py' },
  { 'name': 'tests/database001.py' },
  { 'name': 'tests/database002.py' },
  { 'name': 'tests/database010.py' },
  { 'name': 'tests/database011.py' },
  { 'name': 'tests/database012.py' },
  { 'name': 'tests/dbonly-extracted-files.py' },
  { 'name': 'tests/depconflict100.py' },
  { 'name': 'tests/depconflict110.py' },
  { 'name': 'tests/depconflict111.py' },
  { 'name': 'tests/depconflict120.py' },
  { 'name': 'tests/dependency-cycle-fixed-by-upgrade.py' },
  { 'name': 'tests/deprange001.py',
    'should_fail': true },
  { 'name': 'tests/deptest001.py' },
  { 'name': 'tests/dummy001.py' },
  { 'name': 'tests/epoch001.py' },
  { 'name': 'tests/epoch002.py' },
  { 'name': 'tests/epoch003.py' },
  { 'name': 'tests/epoch004.py' },
  { 'name': 'tests/epoch005.py' },
  { 'name': 'tests/epoch010.py' },
  { 'name': 'tests/epoch011.py' },
  { 'name': 'tests/epoch012.py' },
  { 'name': 'tests/file-conflict-with-installed-pkg.py' },
  { 'name': 'tests/fileconflict001.py' },
  { 'name': 'tests/fileconflict002.py' },
  { 'name': 'tests/fileconflict003.py' },
  { 'name': 'tests/fileconflict004.py' },
  { 'name': 'tests/fileconflict005.py' },
  { 'name': 'tests/fileconflict006.py' },
  { 'name': 'tests/fileconflict007.py' },
  { 'name': 'tests/fileconflict008.py' },
  { 'name': 'tests/fileconflict009.py' },
  { 'name': 'tests/fileconflict010.py' },
  { 'name': 'tests/fileconflict011.py' },
  { 'name': 'tests/fileconflict012.py' },
  { 'name': 'tests/fileconflict013.py' },
  { 'name': 'tests/fileconflict015.py' },
  { 'name': 'tests/fileconflict016.py' },
  { 'name': 'tests/fileconflict017.py' },
  { 'name': 'tests/fileconflict020.py' },
  { 'name': 'tests/fileconflict021.py' },
  { 'name': 'tests/fileconflict022.py' },
  { 'name': 'tests/fileconflict023.py' },
  { 'name': 'tests/fileconflict024.py' },
  { 'name': 'tests/fileconflict025.py' },
  { 'name': 'tests/fileconflict030.py' },
  { 'name': 'tests/fileconflict031.py' },
  { 'name': 'tests/fileconflict032.py' },
  { 'name': 'tests/hook-abortonfail.py' },
  { 'name': 'tests/hook-description-reused.py' },
  { 'name': 'tests/hook-exec-reused.py' },
  { 'name': 'tests/hook-exec-with-arguments.py' },
  { 'name': 'tests/hook-file-change-packages.py' },
  { 'name': 'tests/hook-file-remove-trigger-match.py' },
  { 'name': 'tests/hook-file-upgrade-nomatch.py' },
  { 'name': 'tests/hook-invalid-trigger.py' },
  { 'name': 'tests/hook-pkg-install-trigger-match.py' },
  { 'name': 'tests/hook-pkg-postinstall-trigger-match.py' },
  { 'name': 'tests/hook-pkg-remove-trigger-match.py' },
  { 'name': 'tests/hook-pkg-upgrade-trigger-match.py' },
  { 'name': 'tests/hook-target-list.py' },
  { 'name': 'tests/hook-type-reused.py' },
  { 'name': 'tests/hook-upgrade-trigger-no-match.py' },
  { 'name': 'tests/hook-when-reused.py' },
  { 'name': 'tests/ignore001.py' },
  { 'name': 'tests/ignore002.py' },
  { 'name': 'tests/ignore003.py' },
  { 'name': 'tests/ignore004.py' },
  { 'name': 'tests/ignore005.py' },
  { 'name': 'tests/ignore006.py' },
  { 'name': 'tests/ignore007.py' },
  { 'name': 'tests/ignore008.py' },
  { 'name': 'tests/ldconfig001.py' },
  { 'name': 'tests/ldconfig002.py' },
  { 'name': 'tests/ldconfig003.py' },
  { 'name': 'tests/mode001.py' },
  { 'name': 'tests/mode002.py' },
  { 'name': 'tests/mode003.py' },
  { 'name': 'tests/noupgrade-inverted.py' },
  { 'name': 'tests/overwrite-files-match-negated.py' },
  { 'name': 'tests/overwrite-files-match.py' },
  { 'name': 'tests/overwrite-files-nonmatch.py' },
  { 'name': 'tests/pacman001.py' },
  { 'name': 'tests/pacman002.py' },
  { 'name': 'tests/pacman003.py' },
  { 'name': 'tests/pacman004.py' },
  { 'name': 'tests/pacman005.py' },
  { 'name': 'tests/provision001.py' },
  { 'name': 'tests/provision002.py' },
  { 'name': 'tests/provision003.py' },
  { 'name': 'tests/provision004.py' },
  { 'name': 'tests/provision010.py' },
  { 'name': 'tests/provision011.py' },
  { 'name': 'tests/provision012.py' },
  { 'name': 'tests/provision020.py' },
  { 'name': 'tests/provision021.py' },
  { 'name': 'tests/provision022.py' },
  { 'name': 'tests/query001.py' },
  { 'name': 'tests/query002.py' },
  { 'name': 'tests/query003.py' },
  { 'name': 'tests/query004.py' },
  { 'name': 'tests/query005.py' },
  { 'name': 'tests/query006.py',
    # expect failure on 32 bit machines
    'should_fail': cc.sizeof('ssize_t') < 8 },
  { 'name': 'tests/query007.py' },
  { 'name': 'tests/query010.py' },
  { 'name': 'tests/query011.py' },
  { 'name': 'tests/query012.py' },
  { 'name': 'tests/querycheck001.py' },
  { 'name': 'tests/querycheck002.py' },
  { 'name': 'tests/querycheck_fast_file_type.py' },
  { 'name': 'tests/reason001.py' },
  { 'name': 'tests/remove-assumeinstalled.py' },
  { 'name': 'tests/remove-directory-replaced-with-symlink.py' },
  { 'name': 'tests/remove-optdepend-of-installed-package.py' },
  { 'name': 'tests/remove-recursive-cycle.py' },
  { 'name': 'tests/remove001.py' },
  { 'name': 'tests/remove002.py' },
  { 'name': 'tests/remove010.py' },
  { 'name': 'tests/remove011.py' },
  { 'name': 'tests/remove012.py' },
  { 'name': 'tests/remove020.py' },
  { 'name': 'tests/remove021.py' },
  { 'name': 'tests/remove030.py' },
  { 'name': 'tests/remove031.py' },
  { 'name': 'tests/remove040.py' },
  { 'name': 'tests/remove041.py' },
  { 'name': 'tests/remove042.py' },
  { 'name': 'tests/remove043.py' },
  { 'name': 'tests/remove044.py' },
  { 'name': 'tests/remove045.py' },
  { 'name': 'tests/remove047.py' },
  { 'name': 'tests/remove049.py' },
  { 'name': 'tests/remove050.py' },
  { 'name': 'tests/remove051.py' },
  { 'name': 'tests/remove052.py' },
  { 'name': 'tests/remove060.py' },
  { 'name': 'tests/remove070.py' },
  { 'name': 'tests/remove071.py' },
  { 'name': 'tests/replace-and-upgrade-package.py' },
  { 'name': 'tests/replace100.py' },
  { 'name': 'tests/replace101.py' },
  { 'name': 'tests/replace102.py' },
  { 'name': 'tests/replace103.py' },
  { 'name': 'tests/replace104.py' },
  { 'name': 'tests/replace110.py',
    'should_fail': true },
  { 'name': 'tests/scriptlet001.py' },
  { 'name': 'tests/scriptlet002.py' },
  { 'name': 'tests/scriptlet-signal-handling.py' },
  { 'name': 'tests/scriptlet-signal-reset.py' },
  { 'name': 'tests/sign001.py' },
  { 'name': 'tests/sign002.py' },
  { 'name': 'tests/skip-remove-with-glob-chars.py' },
  { 'name': 'tests/smoke001.py' },
  { 'name': 'tests/smoke002.py' },
  { 'name': 'tests/smoke003.py' },
  { 'name': 'tests/smoke004.py' },
  { 'name': 'tests/symlink-replace-with-dir.py' },
  { 'name': 'tests/symlink001.py' },
  { 'name': 'tests/symlink002.py' },
  { 'name': 'tests/symlink010.py' },
  { 'name': 'tests/symlink011.py' },
  { 'name': 'tests/symlink012.py' },
  { 'name': 'tests/symlink020.py' },
  { 'name': 'tests/symlink021.py' },
  { 'name': 'tests/sync-install-assumeinstalled.py' },
  { 'name': 'tests/sync-nodepversion01.py' },
  { 'name': 'tests/sync-nodepversion02.py' },
  { 'name': 'tests/sync-nodepversion03.py' },
  { 'name': 'tests/sync-nodepversion04.py' },
  { 'name': 'tests/sync-nodepversion05.py' },
  { 'name': 'tests/sync-nodepversion06.py' },
  { 'name': 'tests/sync-sysupgrade-print-replaced-packages.py' },
  { 'name': 'tests/sync-update-assumeinstalled.py' },
  { 'name': 'tests/sync-update-package-removing-required-provides.py',
    'should_fail': true },
  { 'name': 'tests/sync001.py' },
  { 'name': 'tests/sync002.py' },
  { 'name': 'tests/sync003.py' },
  { 'name': 'tests/sync009.py' },
  { 'name': 'tests/sync010.py' },
  { 'name': 'tests/sync011.py' },
  { 'name': 'tests/sync012.py' },
  { 'name': 'tests/sync020.py' },
  { 'name': 'tests/sync021.py' },
  { 'name': 'tests/sync022.py' },
  { 'name': 'tests/sync023.py' },
  { 'name': 'tests/sync024.py' },
  { 'name': 'tests/sync030.py' },
  { 'name': 'tests/sync031.py' },
  { 'name': 'tests/sync040.py' },
  { 'name': 'tests/sync041.py' },
  { 'name': 'tests/sync042.py' },
  { 'name': 'tests/sync043.py' },
  { 'name': 'tests/sync044.py' },
  { 'name': 'tests/sync045.py' },
  { 'name': 'tests/sync046.py' },
  { 'name': 'tests/sync050.py' },
  { 'name': 'tests/sync051.py' },
  { 'name': 'tests/sync052.py' },
  { 'name': 'tests/sync100.py' },
  { 'name': 'tests/sync1000.py' },
  { 'name': 'tests/sync1003.py' },
  { 'name': 'tests/sync1004.py' },
  { 'name': 'tests/sync1008.py' },
  { 'name': 'tests/sync101.py' },
  { 'name': 'tests/sync102.py' },
  { 'name': 'tests/sync103.py' },
  { 'name': 'tests/sync104.py' },
  { 'name': 'tests/sync110.py' },
  { 'name': 'tests/sync1100.py' },
  { 'name': 'tests/sync1101.py' },
  { 'name': 'tests/sync1102.py' },
  { 'name': 'tests/sync1103.py' },
  { 'name': 'tests/sync1104.py' },
  { 'name': 'tests/sync1105.py' },
  { 'name': 'tests/sync120.py' },
  { 'name': 'tests/sync130.py' },
  { 'name': 'tests/sync131.py' },
  { 'name': 'tests/sync132.py' },
  { 'name': 'tests/sync133.py' },
  { 'name': 'tests/sync134.py' },
  { 'name': 'tests/sync135.py' },
  { 'name': 'tests/sync136.py' },
  { 'name': 'tests/sync137.py' },
  { 'name': 'tests/sync138.py' },
  { 'name': 'tests/sync139.py' },
  { 'name': 'tests/sync140.py' },
  { 'name': 'tests/sync141.py' },
  { 'name': 'tests/sync150.py' },
  { 'name': 'tests/sync200.py' },
  { 'name': 'tests/sync300.py' },
  { 'name': 'tests/sync306.py' },
  { 'name': 'tests/sync400.py' },
  { 'name': 'tests/sync401.py' },
  { 'name': 'tests/sync402.py' },
  { 'name': 'tests/sync403.py',
    'should_fail': true },
  { 'name': 'tests/sync404.py' },
  { 'name': 'tests/sync405.py' },
  { 'name': 'tests/sync406.py',
    'should_fail': true },
  { 'name': 'tests/sync407.py' },
  { 'name': 'tests/sync500.py' },
  { 'name': 'tests/sync501.py' },
  { 'name': 'tests/sync502.py' },
  { 'name': 'tests/sync503.py' },
  { 'name': 'tests/sync600.py' },
  { 'name': 'tests/sync700.py' },
  { 'name': 'tests/sync701.py' },
  { 'name': 'tests/sync702.py' },
  { 'name': 'tests/sync890.py' },
  { 'name': 'tests/sync891.py' },
  { 'name': 'tests/sync892.py' },
  { 'name': 'tests/sync893.py' },
  { 'name': 'tests/sync895.py' },
  { 'name': 'tests/sync896.py' },
  { 'name': 'tests/sync897.py' },
  { 'name': 'tests/sync898.py' },
  { 'name': 'tests/sync899.py' },
  { 'name': 'tests/sync900.py' },
  { 'name': 'tests/sync901.py' },
  { 'name': 'tests/sync990.py' },
  { 'name': 'tests/sync992.py' },
  { 'name': 'tests/sync993.py' },
  { 'name': 'tests/sync999.py' },
  { 'name': 'tests/trans001.py' },
  { 'name': 'tests/type001.py' },
  { 'name': 'tests/unresolvable001.py' },
  { 'name': 'tests/upgrade001.py' },
  { 'name': 'tests/upgrade002.py' },
  { 'name': 'tests/upgrade003.py' },
  { 'name': 'tests/upgrade004.py' },
  { 'name': 'tests/upgrade005.py' },
  { 'name': 'tests/upgrade006.py' },
  { 'name': 'tests/upgrade010.py' },
  { 'name': 'tests/upgrade011.py' },
  { 'name': 'tests/upgrade013.py' },
  { 'name': 'tests/upgrade020.py' },
  { 'name': 'tests/upgrade021.py' },
  { 'name': 'tests/upgrade022.py' },
  { 'name': 'tests/upgrade023.py' },
  { 'name': 'tests/upgrade024.py' },
  { 'name': 'tests/upgrade025.py' },
  { 'name': 'tests/upgrade026.py' },
  { 'name': 'tests/upgrade027.py' },
  { 'name': 'tests/upgrade028.py' },
  { 'name': 'tests/upgrade029.py' },
  { 'name': 'tests/upgrade030.py' },
  { 'name': 'tests/upgrade031.py' },
  { 'name': 'tests/upgrade032.py' },
  { 'name': 'tests/upgrade040.py' },
  { 'name': 'tests/upgrade041.py' },
  { 'name': 'tests/upgrade042.py' },
  { 'name': 'tests/upgrade043.py' },
  { 'name': 'tests/upgrade045.py' },
  { 'name': 'tests/upgrade050.py' },
  { 'name': 'tests/upgrade051.py' },
  { 'name': 'tests/upgrade052.py' },
  { 'name': 'tests/upgrade053.py' },
  { 'name': 'tests/upgrade054.py' },
  { 'name': 'tests/upgrade055.py' },
  { 'name': 'tests/upgrade056.py' },
  { 'name': 'tests/upgrade057.py' },
  { 'name': 'tests/upgrade058.py' },
  { 'name': 'tests/upgrade059.py' },
  { 'name': 'tests/upgrade060.py' },
  { 'name': 'tests/upgrade061.py' },
  { 'name': 'tests/upgrade070.py' },
  { 'name': 'tests/upgrade071.py' },
  { 'name': 'tests/upgrade072.py' },
  { 'name': 'tests/upgrade073.py' },
  { 'name': 'tests/upgrade074.py' },
  { 'name': 'tests/upgrade075.py' },
  { 'name': 'tests/upgrade076.py' },
  { 'name': 'tests/upgrade077.py' },
  { 'name': 'tests/upgrade078.py',
    'should_fail': true },
  { 'name': 'tests/upgrade080.py' },
  { 'name': 'tests/upgrade081.py' },
  { 'name': 'tests/upgrade082.py' },
  { 'name': 'tests/upgrade083.py' },
  { 'name': 'tests/upgrade084.py' },
  { 'name': 'tests/upgrade090.py' },
  { 'name': 'tests/upgrade100.py' },
  { 'name': 'tests/xfercommand001.py' },
]

foreach testobj : pacman_tests
  input = testobj.get('name')
  test_name = input.split('/')[1]
  should_fail = testobj.get('should_fail', false)

  test(
    test_name,
    PYTHON,
    args : [
      join_paths(meson.source_root(), 'build-aux/tap-driver.py'),
      join_paths(meson.current_source_dir(), 'pactest.py'),
      '--scriptlet-shell', get_option('scriptlet-shell'),
      '--bindir', meson.build_root(),
      '--ldconfig', LDCONFIG,
      '--verbose',
      join_paths(meson.current_source_dir(), input)
    ],
    depends : [pacman_bin],
    should_fail : should_fail)
endforeach