all.T 9.67 KB
Newer Older
1
setTestOpts(only_compiler_types(['ghc']))
ross's avatar
ross committed
2

Ian Lynagh's avatar
Ian Lynagh committed
3
4
5
test('driver011',
     extra_clean(['A011.hi', 'A011.o']),
     run_command,
6
     ['$MAKE -s --no-print-directory test011'])
Ian Lynagh's avatar
Ian Lynagh committed
7

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

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

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

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

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

Ian Lynagh's avatar
Ian Lynagh committed
33
test('driver017',
Simon Marlow's avatar
Simon Marlow committed
34
     extra_clean(['F017.hi', 'F017.o', 'F017_stub.h']),
Ian Lynagh's avatar
Ian Lynagh committed
35
     run_command,
36
     ['$MAKE -s --no-print-directory test017'])
Ian Lynagh's avatar
Ian Lynagh committed
37

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

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

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

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

65
66
67
test('driver022',
     extra_clean(['B022/C.hi', 'B022/C.o']),
     run_command,
68
     ['$MAKE -s --no-print-directory test022'])
69
70
71
72

test('driver023',
     extra_clean(['B023/C.hi', 'B023/C.o']),
     run_command,
73
     ['$MAKE -s --no-print-directory test023'])
Ian Lynagh's avatar
Ian Lynagh committed
74

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

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

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

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

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

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

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

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

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

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

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

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

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

Ian Lynagh's avatar
Ian Lynagh committed
144
145
146
147
test('driver043',
     extra_clean(['B043/C.hi', 'B043/C.o',
                  'hi043/B043/C.hi', 'hi043/B043', 'hi043']),
     run_command,
148
     ['$MAKE -s --no-print-directory test043'])
Ian Lynagh's avatar
Ian Lynagh committed
149

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

Ian Lynagh's avatar
Ian Lynagh committed
156
157
test('driver045',
     extra_clean(['B045/F.hi', 'B045/F.o',
Simon Marlow's avatar
Simon Marlow committed
158
                  'B045/F_stub.h', 'B045/F_stub.o']),
Ian Lynagh's avatar
Ian Lynagh committed
159
     run_command,
160
     ['$MAKE -s --no-print-directory test045'])
Ian Lynagh's avatar
Ian Lynagh committed
161

Ian Lynagh's avatar
Ian Lynagh committed
162
163
164
165
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,
166
     ['$MAKE -s --no-print-directory test051'])
Ian Lynagh's avatar
Ian Lynagh committed
167

Ian Lynagh's avatar
Ian Lynagh committed
168
169
170
171
172
173
174
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,
175
     ['$MAKE -s --no-print-directory test052'])
Ian Lynagh's avatar
Ian Lynagh committed
176

Ian Lynagh's avatar
Ian Lynagh committed
177
178
179
180
181
182
183
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,
184
     ['$MAKE -s --no-print-directory test053'])
185

Ian Lynagh's avatar
Ian Lynagh committed
186
187
188
189
190
191
192
193
194
195
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'])

196

Ian Lynagh's avatar
Ian Lynagh committed
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
test('driver062a',
     extra_clean(['Hello062a.hs']),
     run_command,
     ['$MAKE -s --no-print-directory test062a'])
test('driver062b',
     extra_clean(['Hello062b.hs']),
     run_command,
     ['$MAKE -s --no-print-directory test062b'])
test('driver062c',
     extra_clean(['Hello062c.hs']),
     run_command,
     ['$MAKE -s --no-print-directory test062c'])
test('driver062d',
     extra_clean(['B062d/Hello062d.hs']),
     run_command,
     ['$MAKE -s --no-print-directory test062d'])
test('driver062e',
     extra_clean(['B062e/Hello062e.hs']),
     run_command,
     ['$MAKE -s --no-print-directory test062e'])
217

Ian Lynagh's avatar
Ian Lynagh committed
218
219
220
221
test('driver063',
     extra_clean(['A063.hi', 'A063.o', 'A063.hc',
                  'D063.hi', 'D063.o', 'D063.hc']),
     run_command,
222
     ['$MAKE -s --no-print-directory test063'])
Ian Lynagh's avatar
Ian Lynagh committed
223

224
225
226
test('driver064',
     extra_clean(['A064.hi', 'A064.o', 'A064.hspp']),
     run_command,
227
     ['$MAKE -s --no-print-directory test064'])
228
229
230
231

test('driver065',
     extra_clean(['A065.hi', 'A065.o', 'A065.hspp']),
     run_command,
232
     ['$MAKE -s --no-print-directory test065'])
233
234
235
236

test('driver066',
     extra_clean(['A066.hi', 'A066.o', 'A066.tmp']),
     run_command,
237
     ['$MAKE -s --no-print-directory test066'])
238
239
240
241

test('driver067',
     extra_clean(['A067.hi', 'A067.o', 'A067.tmp']),
     run_command,
242
     ['$MAKE -s --no-print-directory test067'])
243
244
245
246

test('driver070',
     extra_clean(['A070.hi', 'A070.o', 'A070.s']),
     run_command,
247
     ['$MAKE -s --no-print-directory test070'])
248
249
250
251

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

Ian Lynagh's avatar
Ian Lynagh committed
254
255
256
257
258
259
260
261
262
test('driver081a',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory test081a'])

test('driver081b',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory test081b'])
Simon Marlow's avatar
Simon Marlow committed
263

Ian Lynagh's avatar
Ian Lynagh committed
264
test('driver100',
265
266
     extra_clean(['overlap/List.hi', 'overlap/List.o',
                  'overlap/Overlap.hi', 'overlap/Overlap.o']),
Ian Lynagh's avatar
Ian Lynagh committed
267
     run_command,
268
269
     ['$MAKE -s --no-print-directory test100'])

Ian Lynagh's avatar
Ian Lynagh committed
270
271
272
test('driver200',
     extra_clean(['depend200']),
     run_command,
273
     ['$MAKE -s --no-print-directory test200'])
274

275
test('2566',
Ian Lynagh's avatar
Ian Lynagh committed
276
     normalise_fun(normalise_errmsg),
277
     run_command,
278
279
     ['$MAKE -s --no-print-directory 2566'])

280
281
test('pragma001', normal, compile, [''])
test('pragma002', normal, compile, [''])
Ian Lynagh's avatar
Ian Lynagh committed
282

283
test('2499', normal, compile_fail, [''])
284

285
test('mode001', normal, run_command,
286
287
     ['$MAKE -s --no-print-directory mode001'])

Simon Marlow's avatar
Simon Marlow committed
288
289
290
291
292
if config.platform == 'i386-unknown-mingw32':
     only_windows = normal
else:
     only_windows = skip

293
test('shared001',
294
     [only_windows,
Simon Marlow's avatar
Simon Marlow committed
295
      extra_clean(['Shared001.hi', 'Shared001.o', 'HSdll.dll.a', 'HSdll.dll', 'Shared001_stub.h', 'Shared001_stub.o'])],
296
     run_command,
Simon Marlow's avatar
Simon Marlow committed
297
     ['$MAKE -s --no-print-directory shared001'])
298

299
test('dynHelloWorld',
300
     only_ways(['dyn']),
301
302
     compile_and_run,
     [''])
303

Simon Marlow's avatar
Simon Marlow committed
304
305
306
307
308
309
310
311
# simple test that we can load and use the GHC package in all ways
# (in #5313 it was failing the dyn way)
p = subprocess.Popen([config.compiler, "--print-libdir"], stdout=subprocess.PIPE)
libdir = p.stdout.read()
p.stdout.close

test('5313', extra_run_opts(libdir), compile_and_run, ['-package ghc'])

312
test('2464', normal, compile, [''])
Simon Marlow's avatar
Simon Marlow committed
313
314
test('3674', ignore_output, run_command, 
             ['$MAKE -s --no-print-directory 3674'])
315

316
317
318
319
test('rtsopts001', normal, run_command,
                ['$MAKE -s --no-print-directory rtsopts001'])
test('rtsopts002', normal, run_command,
                ['$MAKE -s --no-print-directory rtsopts002'])
320

Simon Marlow's avatar
Simon Marlow committed
321
322
323
324
test('withRtsOpts', [ extra_clean(['withRtsOpts', 'withRtsOpts.exe',
                                   'withRtsOpts.hi', 'withRtsOpts.o',
                                   'withRtsOpts.out']) ],
                    run_command,
Ian Lynagh's avatar
Ian Lynagh committed
325
                    ['$MAKE -s --no-print-directory withRtsOpts'])
Ian Lynagh's avatar
Ian Lynagh committed
326
test('T3389', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
327
328
test('T3364', normalise_fun(normalise_errmsg), run_command,
     ['$MAKE -s --no-print-directory T3364'])
329
test('T4437', only_ways(['normal']), compile_and_run, ['-package ghc'])
Ian Lynagh's avatar
Ian Lynagh committed
330

Simon Marlow's avatar
Simon Marlow committed
331
test('werror', normal, compile_fail, [''])
Simon Marlow's avatar
Simon Marlow committed
332

Ian Lynagh's avatar
Ian Lynagh committed
333
test('T706', req_interp, run_command, ['$MAKE -s --no-print-directory T706'])