all.T 15.4 KB
Newer Older
Ian Lynagh's avatar
Ian Lynagh committed
1
2
3
test('driver011',
     extra_clean(['A011.hi', 'A011.o']),
     run_command,
4
     ['$MAKE -s --no-print-directory test011'])
Ian Lynagh's avatar
Ian Lynagh committed
5

Ian Lynagh's avatar
Ian Lynagh committed
6
test('driver012',
7
     extra_clean(['A012.hi', 'A012.ooo']),
Ian Lynagh's avatar
Ian Lynagh committed
8
     run_command,
9
     ['$MAKE -s --no-print-directory test012'])
Ian Lynagh's avatar
Ian Lynagh committed
10

Ian Lynagh's avatar
Ian Lynagh committed
11
test('driver013',
12
     extra_clean(['A013.xhi', 'A013.o']),
Ian Lynagh's avatar
Ian Lynagh committed
13
     run_command,
14
     ['$MAKE -s --no-print-directory test013'])
Ian Lynagh's avatar
Ian Lynagh committed
15

16
test('driver014',
17
     extra_clean(['A014.hi', 'obj014/A014.o', 'obj014']),
18
19
     run_command,
     ['$MAKE -s --no-print-directory test014'])
20

21
test('driver015',
22
     extra_clean(['A015.o', 'hi015/A015.hi', 'hi015']),
23
24
     run_command,
     ['$MAKE -s --no-print-directory test015'])
25

Ian Lynagh's avatar
Ian Lynagh committed
26
test('driver016',
Simon Marlow's avatar
Simon Marlow committed
27
     extra_clean(['F016.hi', 'F016.o', 'F016_stub.h']),
Ian Lynagh's avatar
Ian Lynagh committed
28
     run_command,
29
     ['$MAKE -s --no-print-directory test016'])
Ian Lynagh's avatar
Ian Lynagh committed
30

Ian Lynagh's avatar
Ian Lynagh committed
31
test('driver017',
32
33
     extra_clean(['F017.hi', 'F017.o',
                  'stub017/TestStub017_stub.h', 'stub017/']),
Ian Lynagh's avatar
Ian Lynagh committed
34
     run_command,
35
     ['$MAKE -s --no-print-directory test017'])
Ian Lynagh's avatar
Ian Lynagh committed
36

37
test('driver018',
Simon Marlow's avatar
Simon Marlow committed
38
     extra_clean(['F018.hi', 'F018_stub.h',
Ian Lynagh's avatar
Ian Lynagh committed
39
40
                  'obj018/TestStub018.o', 'obj018/TestStub018_stub.o',
                  'obj018']),
41
42
     run_command,
     ['$MAKE -s --no-print-directory test018'])
Ian Lynagh's avatar
Ian Lynagh committed
43

Simon Marlow's avatar
Simon Marlow committed
44
test('driver018a',
Simon Marlow's avatar
Simon Marlow committed
45
     extra_clean(['F018a.hi', 'F018a_stub.h',
46
                  'F018a.obj.018']),
Simon Marlow's avatar
Simon Marlow committed
47
48
     run_command,
     ['$MAKE -s --no-print-directory test018a'])
Ian Lynagh's avatar
Ian Lynagh committed
49

50
test('driver019',
51
52
53
54
     extra_clean(['out019/TestStub019.hi',
                  'out019/TestStub019.o',
                  'out019/TestStub019_stub.h',
                  'out019/TestStub019_stub.o']),
55
56
     run_command,
     ['$MAKE -s --no-print-directory test019'])
Ian Lynagh's avatar
Ian Lynagh committed
57

Ian Lynagh's avatar
Ian Lynagh committed
58
59
60
test('driver021',
     extra_clean(['B021/C.hi', 'B021/C.o']),
     run_command,
61
     ['$MAKE -s --no-print-directory test021'])
Ian Lynagh's avatar
Ian Lynagh committed
62

63
test('driver022',
64
     extra_clean(['B022/C.hi', 'B022/C.ooo']),
65
     run_command,
66
     ['$MAKE -s --no-print-directory test022'])
67
68

test('driver023',
69
     extra_clean(['B023/C.xhi', 'B023/C.o']),
70
     run_command,
71
     ['$MAKE -s --no-print-directory test023'])
Ian Lynagh's avatar
Ian Lynagh committed
72

73
test('driver024',
Ian Lynagh's avatar
Ian Lynagh committed
74
     extra_clean(['B024/C.hi', 'obj024/B024/C.o', 'obj024/B024', 'obj024']),
75
76
     run_command,
     ['$MAKE -s --no-print-directory test024'])
Ian Lynagh's avatar
Ian Lynagh committed
77

Ian Lynagh's avatar
Ian Lynagh committed
78
test('driver024a',
79
80
     extra_clean(['obj024a/B024a/stub.o', 'obj024a/B024a', 'obj024a',
                  'B024a/stub.c', 'B024a/']),
Ian Lynagh's avatar
Ian Lynagh committed
81
     run_command,
82
     ['$MAKE -s --no-print-directory test024a'])
Ian Lynagh's avatar
Ian Lynagh committed
83

Ian Lynagh's avatar
Ian Lynagh committed
84
85
86
87
test('driver025',
     extra_clean(['B025/C.hi', 'B025/C.o',
                  'hi025/B025/C.hi', 'hi025/B025', 'hi025']),
     run_command,
88
     ['$MAKE -s --no-print-directory test025'])
Ian Lynagh's avatar
Ian Lynagh committed
89

Ian Lynagh's avatar
Ian Lynagh committed
90
91
92
test('driver026',
     extra_clean(['d026/P/Q.hi', 'd026/P/Q.o']),
     run_command,
93
     ['$MAKE -s --no-print-directory test026'])
Ian Lynagh's avatar
Ian Lynagh committed
94

Ian Lynagh's avatar
Ian Lynagh committed
95
96
test('driver027',
     extra_clean(['B027/F.hi', 'B027/F.o',
Simon Marlow's avatar
Simon Marlow committed
97
                  'B027/F_stub.h', 'B027/F_stub.o']),
Ian Lynagh's avatar
Ian Lynagh committed
98
     run_command,
99
     ['$MAKE -s --no-print-directory test027'])
Ian Lynagh's avatar
Ian Lynagh committed
100

Ian Lynagh's avatar
Ian Lynagh committed
101
102
test('driver028',
     extra_clean(['B028/F.hi', 'B028/F.o',
103
                  'stub028/B028/F_stub.h', 'stub028/B028/', 'stub028/']),
Ian Lynagh's avatar
Ian Lynagh committed
104
     run_command,
105
     ['$MAKE -s --no-print-directory test028'])
Ian Lynagh's avatar
Ian Lynagh committed
106

Ian Lynagh's avatar
Ian Lynagh committed
107
108
109
test('driver031',
     extra_clean(['A031.hi', 'A031.o']),
     run_command,
110
     ['$MAKE -s --no-print-directory test031'])
Ian Lynagh's avatar
Ian Lynagh committed
111

112
test('driver032',
113
     extra_clean(['A032.hi', 'obj032/A032.o', 'obj032/']),
114
     run_command,
115
     ['$MAKE -s --no-print-directory test032'])
116
117

test('driver033',
118
     extra_clean(['A033.hi', 'A033.o', 'hi033/A033.hi', 'hi033']),
119
     run_command,
120
     ['$MAKE -s --no-print-directory test033'])
121

Ian Lynagh's avatar
Ian Lynagh committed
122
test('driver034',
Simon Marlow's avatar
Simon Marlow committed
123
     extra_clean(['F034.hi', 'F034.o', 'F034_stub.h']),
Ian Lynagh's avatar
Ian Lynagh committed
124
     run_command,
125
     ['$MAKE -s --no-print-directory test034'])
Ian Lynagh's avatar
Ian Lynagh committed
126

Ian Lynagh's avatar
Ian Lynagh committed
127
128
test('driver035',
     extra_clean(['F035.hi', 'F035.o',
129
                  'stub035/TestStub035_stub.h', 'stub035/']),
Ian Lynagh's avatar
Ian Lynagh committed
130
     run_command,
131
     ['$MAKE -s --no-print-directory test035'])
Ian Lynagh's avatar
Ian Lynagh committed
132

Ian Lynagh's avatar
Ian Lynagh committed
133
134
135
test('driver041',
     extra_clean(['B041/C.hi', 'B041/C.o']),
     run_command,
136
     ['$MAKE -s --no-print-directory test041'])
Ian Lynagh's avatar
Ian Lynagh committed
137

Ian Lynagh's avatar
Ian Lynagh committed
138
test('driver042',
139
     extra_clean(['B042/C.hi', 'obj042/B042/C.o', 'obj042/B042/', 'obj042/']),
Ian Lynagh's avatar
Ian Lynagh committed
140
     run_command,
141
     ['$MAKE -s --no-print-directory test042'])
Ian Lynagh's avatar
Ian Lynagh committed
142

143
144
145
146
147
test('driver042stub',
     extra_clean(['B042stub/C.hi', 'obj042stub/B042stub/C.o', 'obj042stub/B042stub/', 'obj042stub/']),
     run_command,
     ['$MAKE -s --no-print-directory test042stub'])

Ian Lynagh's avatar
Ian Lynagh committed
148
149
150
151
test('driver043',
     extra_clean(['B043/C.hi', 'B043/C.o',
                  'hi043/B043/C.hi', 'hi043/B043', 'hi043']),
     run_command,
152
     ['$MAKE -s --no-print-directory test043'])
Ian Lynagh's avatar
Ian Lynagh committed
153

Ian Lynagh's avatar
Ian Lynagh committed
154
155
test('driver044',
     extra_clean(['B044/F.hi', 'B044/F.o',
Simon Marlow's avatar
Simon Marlow committed
156
                  'B044/F_stub.h', 'B044/F_stub.o']),
Ian Lynagh's avatar
Ian Lynagh committed
157
     run_command,
158
     ['$MAKE -s --no-print-directory test044'])
Ian Lynagh's avatar
Ian Lynagh committed
159

Ian Lynagh's avatar
Ian Lynagh committed
160
161
test('driver045',
     extra_clean(['B045/F.hi', 'B045/F.o',
162
                  'stub045/B045/F_stub.h', 'stub045/B045/', 'stub045/']),
Ian Lynagh's avatar
Ian Lynagh committed
163
     run_command,
164
     ['$MAKE -s --no-print-directory test045'])
Ian Lynagh's avatar
Ian Lynagh committed
165

Ian Lynagh's avatar
Ian Lynagh committed
166
167
168
169
test('driver051',
     extra_clean(['d051_1/P/Q.hi', 'd051_1/P/Q.o',
                  'd051_2/R/S.hi', 'd051_2/R/S.o']),
     run_command,
170
     ['$MAKE -s --no-print-directory test051'])
Ian Lynagh's avatar
Ian Lynagh committed
171

Ian Lynagh's avatar
Ian Lynagh committed
172
173
174
175
176
177
178
test('driver052',
     extra_clean(['d052_1/P/Q.hi', 'd052_1/P/Q.o',
                  'd052_2/R/S.hi', 'd052_2/R/S.o',
                  'obj052/P/Q.o', 'obj052/P',
                  'obj052/R/S.o', 'obj052/R',
                  'obj052']),
     run_command,
179
     ['$MAKE -s --no-print-directory test052'])
Ian Lynagh's avatar
Ian Lynagh committed
180

Ian Lynagh's avatar
Ian Lynagh committed
181
182
183
184
185
186
187
test('driver053',
     extra_clean(['d053_1/P/Q.hi', 'd053_1/P/Q.o',
                  'd053_2/R/S.hi', 'd053_2/R/S.o',
                  'hi053/P/Q.hi', 'hi053/P',
                  'hi053/R/S.hi', 'hi053/R',
                  'hi053']),
     run_command,
188
     ['$MAKE -s --no-print-directory test053'])
189

Ian Lynagh's avatar
Ian Lynagh committed
190
191
192
193
194
195
196
197
198
199
test('driver061a',
     extra_clean(['A061a.hi', 'A061a.o', 'A061a.s']),
     run_command,
     ['$MAKE -s --no-print-directory test061a'])

test('driver061b',
     extra_clean(['A061b.hi', 'A061b.o', 'A061b.s']),
     run_command,
     ['$MAKE -s --no-print-directory test061b'])

200

Ian Lynagh's avatar
Ian Lynagh committed
201
test('driver062a',
202
203
     extra_clean(['Hello062a.hs', 'Hello062a.hi', 'Hello062a.o',
                  'hello062a', 'hello062a.exe']),
Ian Lynagh's avatar
Ian Lynagh committed
204
205
206
     run_command,
     ['$MAKE -s --no-print-directory test062a'])
test('driver062b',
207
208
     extra_clean(['Hello062b.hs', 'Hello062b.hi', 'Hello062b.o',
                  'hello062b', 'hello062b.exe']),
Ian Lynagh's avatar
Ian Lynagh committed
209
210
211
     run_command,
     ['$MAKE -s --no-print-directory test062b'])
test('driver062c',
212
213
     extra_clean(['Hello062c.hs', 'Hello062c.hi', 'Hello062c.o',
                  'hello062c', 'hello062c.exe']),
Ian Lynagh's avatar
Ian Lynagh committed
214
215
216
     run_command,
     ['$MAKE -s --no-print-directory test062c'])
test('driver062d',
217
218
219
     extra_clean(['B062d/Hello062d.hi', 'B062d/Hello062d.o',
                  'B062d/Hello062d.hs', 'B062d/',
                  'hello062d', 'hello062d.exe']),
Ian Lynagh's avatar
Ian Lynagh committed
220
221
222
     run_command,
     ['$MAKE -s --no-print-directory test062d'])
test('driver062e',
223
224
     extra_clean(['B062e/Hello062e.hi', 'B062e/Hello062e.o',
                  'B062e/Hello062e.hs', 'B062e/',
225
                  'hello062e', 'hello062e.exe']),
Ian Lynagh's avatar
Ian Lynagh committed
226
227
     run_command,
     ['$MAKE -s --no-print-directory test062e'])
228

Ian Lynagh's avatar
Ian Lynagh committed
229
230
231
232
test('driver063',
     extra_clean(['A063.hi', 'A063.o', 'A063.hc',
                  'D063.hi', 'D063.o', 'D063.hc']),
     run_command,
233
     ['$MAKE -s --no-print-directory test063'])
Ian Lynagh's avatar
Ian Lynagh committed
234

235
236
237
test('driver064',
     extra_clean(['A064.hi', 'A064.o', 'A064.hspp']),
     run_command,
238
     ['$MAKE -s --no-print-directory test064'])
239
240
241
242

test('driver065',
     extra_clean(['A065.hi', 'A065.o', 'A065.hspp']),
     run_command,
243
     ['$MAKE -s --no-print-directory test065'])
244
245
246
247

test('driver066',
     extra_clean(['A066.hi', 'A066.o', 'A066.tmp']),
     run_command,
248
     ['$MAKE -s --no-print-directory test066'])
249
250
251
252

test('driver067',
     extra_clean(['A067.hi', 'A067.o', 'A067.tmp']),
     run_command,
253
     ['$MAKE -s --no-print-directory test067'])
254
255
256
257

test('driver070',
     extra_clean(['A070.hi', 'A070.o', 'A070.s']),
     run_command,
258
     ['$MAKE -s --no-print-directory test070'])
259
260
261
262

test('driver071',
     extra_clean(['A071.hi', 'A071.o', 'A071.tmp']),
     run_command,
263
     ['$MAKE -s --no-print-directory test071'])
264

Ian Lynagh's avatar
Ian Lynagh committed
265
test('driver081a',
266
267
     extra_clean(['Test_081a.hs', 'Test_081a.hi', 'Test_081a.o',
                  'Test_081a', 'Test_081a.exe']),
Ian Lynagh's avatar
Ian Lynagh committed
268
269
270
271
     run_command,
     ['$MAKE -s --no-print-directory test081a'])

test('driver081b',
272
273
     extra_clean(['Test.081b.hs', 'Test.081b.hi', 'Test.081b.o',
                  'Test.081b', 'Test.081b.exe']),
Ian Lynagh's avatar
Ian Lynagh committed
274
275
     run_command,
     ['$MAKE -s --no-print-directory test081b'])
Simon Marlow's avatar
Simon Marlow committed
276

Ian Lynagh's avatar
Ian Lynagh committed
277
test('driver100',
278
279
     extra_clean(['overlap/List.hi', 'overlap/List.o',
                  'overlap/Overlap.hi', 'overlap/Overlap.o']),
Ian Lynagh's avatar
Ian Lynagh committed
280
     run_command,
281
282
     ['$MAKE -s --no-print-directory test100'])

Ian Lynagh's avatar
Ian Lynagh committed
283
test('driver200',
284
     extra_clean(['depend200', 'depend200.bak']),
Ian Lynagh's avatar
Ian Lynagh committed
285
     run_command,
286
     ['$MAKE -s --no-print-directory test200'])
287

288
test('T2566',
Ian Lynagh's avatar
Ian Lynagh committed
289
     normalise_fun(normalise_errmsg),
290
     run_command,
291
     ['$MAKE -s --no-print-directory T2566'])
292

293
294
test('pragma001', normal, compile, [''])
test('pragma002', normal, compile, [''])
Ian Lynagh's avatar
Ian Lynagh committed
295

296
test('T2499', normal, compile_fail, [''])
297

298
test('mode001', normal, run_command,
299
300
     ['$MAKE -s --no-print-directory mode001'])

Ian Lynagh's avatar
Ian Lynagh committed
301
if config.os == 'mingw32':
Simon Marlow's avatar
Simon Marlow committed
302
303
304
305
     only_windows = normal
else:
     only_windows = skip

306
test('shared001',
307
     [only_windows,
Simon Marlow's avatar
Simon Marlow committed
308
      extra_clean(['Shared001.hi', 'Shared001.o', 'HSdll.dll.a', 'HSdll.dll', 'Shared001_stub.h', 'Shared001_stub.o'])],
309
     run_command,
Simon Marlow's avatar
Simon Marlow committed
310
     ['$MAKE -s --no-print-directory shared001'])
311

lukexi's avatar
lukexi committed
312
313
314
315
316
317
if config.os == 'darwin':
  only_darwin = normal
else:
  only_darwin = skip

test('static001',
318
     [only_darwin, expect_broken(8127),
lukexi's avatar
lukexi committed
319
320
321
322
      extra_clean(['Static001.hi', 'Static001.o', 'liba.a', 'Static001_stub.h', 'Static001_stub.o'])],
     run_command,
     ['$MAKE -s --no-print-directory static001'])

323
test('dynHelloWorld',
324
     only_ways(['dyn']),
325
326
     compile_and_run,
     [''])
327

ian@well-typed.com's avatar
ian@well-typed.com committed
328
test('T5313',
329
330
     [ when(arch('powerpc64'), expect_broken(11259)),
       extra_run_opts('"' + config.libdir + '"')],
ian@well-typed.com's avatar
ian@well-typed.com committed
331
332
     compile_and_run,
     ['-package ghc'])
Simon Marlow's avatar
Simon Marlow committed
333

334
335
test('T2464', normal, compile, [''])
test('T3674',
336
     [ignore_output,
337
      extra_clean(['T3674_pre.hi', 'T3674_pre.o', 'T3674_pre', 'T3674_pre.exe'])],
338
     run_command,
339
     ['$MAKE -s --no-print-directory T3674'])
340

341
342
343
344
test('rtsopts001',
     extra_clean(['rtsOpts.hi', 'rtsOpts.o', 'rtsOpts', 'rtsOpts.exe']),
     run_command,
     ['$MAKE -s --no-print-directory rtsopts001'])
345
346
test('rtsopts002', normal, run_command,
                ['$MAKE -s --no-print-directory rtsopts002'])
347

Simon Marlow's avatar
Simon Marlow committed
348
349
350
351
test('withRtsOpts', [ extra_clean(['withRtsOpts', 'withRtsOpts.exe',
                                   'withRtsOpts.hi', 'withRtsOpts.o',
                                   'withRtsOpts.out']) ],
                    run_command,
Ian Lynagh's avatar
Ian Lynagh committed
352
                    ['$MAKE -s --no-print-directory withRtsOpts'])
Ian Lynagh's avatar
Ian Lynagh committed
353
test('T3389', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
354
355
test('T3364', normalise_fun(normalise_errmsg), run_command,
     ['$MAKE -s --no-print-directory T3364'])
356
357
358
359
360

# T4437: A test to ensure that Cabal's language extension list remains
# consistent with those known by GHC.
#
# See Note [Adding a language extension] in DynFlags.hs for details.
361
test('T4437', only_ways(['normal']), compile_and_run, ['-package ghc'])
Ian Lynagh's avatar
Ian Lynagh committed
362

Simon Marlow's avatar
Simon Marlow committed
363
test('werror', normal, compile_fail, [''])
Simon Marlow's avatar
Simon Marlow committed
364

365
366
367
368
369
test('T706',
     [req_interp,
      extra_clean(['T706.hs'])],
     run_command,
     ['$MAKE -s --no-print-directory T706'])
370
test('spacesInArgs',
371
     extra_run_opts('"a   b"   "c   d"'),
372
373
374
     compile_and_run,
     [''])

375
376
377
test('T5584',
     extra_clean(['T5584_in/A.hi-boot', 'T5584_out/T5584/A.o-boot']),
     run_command, ['$MAKE -s --no-print-directory T5584'])
Ian Lynagh's avatar
Ian Lynagh committed
378
379
380
test('T5198', extra_clean(['T5198dump/T5198.dump-simpl', 'T5198dump']),
     run_command,
     ['$MAKE -s --no-print-directory T5198'])
pcapriotti's avatar
pcapriotti committed
381
382
383
384
385
386
387
test('T7060',
     extra_clean(['T7060dump/T7060.dump-rules',
                  'T7060dump/T7060.dump-rule-firings',
                  'T7060dump/T7060.dump-rule-rewrites',
                  'T7060dump']),
     run_command,
     ['$MAKE -s --no-print-directory T7060'])
pcapriotti's avatar
pcapriotti committed
388
test('T7130', normal, compile_fail, ['-fflul-laziness'])
389
test('T7563', when(unregisterised(), skip), run_command,
ian@well-typed.com's avatar
ian@well-typed.com committed
390
     ['$MAKE -s --no-print-directory T7563'])
391
392
393
394
test('T6037',
     # The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
     [when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail)],
     run_command,
ian@well-typed.com's avatar
ian@well-typed.com committed
395
     ['$MAKE -s --no-print-directory T6037'])
396
test('T2507',
397
     # The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
parcs's avatar
parcs committed
398
     [when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail)],
399
400
     run_command,
     ['$MAKE -s --no-print-directory T2507'])
401
402
403
404
405
test('T8959a',
     # The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
     [when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail)],
     run_command,
     ['$MAKE -s --no-print-directory T8959a'])
ian@well-typed.com's avatar
ian@well-typed.com committed
406

ian@well-typed.com's avatar
ian@well-typed.com committed
407
test('T703', normal, run_command, ['$MAKE -s --no-print-directory T703'])
408
test('T2182', normal, run_command, ['$MAKE -s --no-print-directory T2182'])
409
test('T8101', expect_broken(10600), compile, ['-Wall -fno-code'])
410
411
test('T8101b', expect_broken(10600), multimod_compile,
     ['T8101b', '-Wall -fno-code'])
ian@well-typed.com's avatar
ian@well-typed.com committed
412

413
414
415
416
def build_T9050(name, way):
     return simple_build(name + '.cmm', way, '-outputdir=. ', 0, '', 0, 0, 0)
test('T9050', normal, build_T9050, [])

417
418
419
420
421
422
423
424
425
test('write_interface_oneshot',
     extra_clean(['write_interface_oneshot_hidir/*']),
     run_command,
     ['$MAKE -s --no-print-directory write_interface_oneshot'])

test('write_interface_make',
     extra_clean(['write_interface_make_hidir/*']),
     run_command,
     ['$MAKE -s --no-print-directory write_interface_make'])
carlostome's avatar
carlostome committed
426
427
428

test('T9776', normal, compile_fail, ['-frule-check'])

Joachim Breitner's avatar
Joachim Breitner committed
429
test('T9938',
430
     [ extra_clean(['T9938.hi', 'T9938.o', 'T9938']), normal ],
Joachim Breitner's avatar
Joachim Breitner committed
431
432
     run_command,
     ['$MAKE -s --no-print-directory T9938'])
Joachim Breitner's avatar
Joachim Breitner committed
433
434
435
436
437

test('T9938B',
     [ extra_clean(['T9938B.hi', 'T9938B.o', 'T9938B']) ],
     run_command,
     ['$MAKE -s --no-print-directory T9938B'])
438
439

test('T9963', exit_code(1), run_command,
440
     ['{compiler} --interactive -ignore-dot-ghci --print-libdir'])
441
442
443
444
445

test('T10219', normal, run_command,
     # `-x hspp` in make mode should work.
     # Note: need to specify `-x hspp` before the filename.
     ['{compiler} --make -x hspp T10219.hspp -fno-code -v0'])
446
447
448
449

test('T10220', normal, run_command,
     # Preprocessed T10220.hspp imports T10220B. Should work in --make mode.
     ['{compiler} --make T10220.hspp -fno-code -v0'])
450
451
452
453
454

test('T10182',
     extra_clean(['T10182.o', 'T10182a.o', 'T10182.o-boot', 'T10182.hi', 'T10182a.hi', 'T10182.hi-boot']),
     run_command,
     ['$MAKE -s --no-print-directory T10182'])
455

456
457
458
459
460
461
test('T365',
     [extra_clean(['test_preprocessor.txt']),
      pre_cmd('touch test_preprocessor.txt'),
      unless(opsys('mingw32'), skip)],
      compile_fail,
      [''])
462

463
464
test('T9360a', normal, run_command, ['{compiler} --interactive -e "" -ignore-dot-ghci'])
test('T9360b', normal, run_command, ['{compiler} -e "" --interactive -ignore-dot-ghci'])
465
466

test('T10970', normal, compile_and_run, ['-hide-all-packages -package base -package containers'])
467
test('T10970a', normal, compile_and_run, [''])
468
test('T4931', normal, compile_and_run, [''])
469
test('T11182', normal, compile_and_run, [''])
470
test('T11381', normal, compile_fail, [''])
471
472
473
474
test('T11429a', normal, compile, ['-Wunrecognised-warning-flags -Wfoobar'])
test('T11429b', normal, compile, ['-Wno-unrecognised-warning-flags -Wfoobar'])
test('T11429c', normal, compile_fail, ['-Wunrecognised-warning-flags -Werror -Wfoobar'])

kaiha's avatar
kaiha committed
475
476
477
478
479
test('T10320',
     [ ignore_output
     , extra_clean(['T10320', 'T10320.o', 'T10320.hi'])],
     run_command,
     ['$MAKE -s --no-print-directory T10320'])