all.T 12 KB
Newer Older
pcapriotti's avatar
pcapriotti committed
1
# coding=utf8
2

pcapriotti's avatar
pcapriotti committed
3 4 5
test('ghci001', combined_output, ghci_script, ['ghci001.script'])
test('ghci002', combined_output, ghci_script, ['ghci002.script'])
test('ghci003', combined_output, ghci_script, ['ghci003.script'])
6
test('ghci004', [ combined_output,
7 8
		  when(arch('powerpc64') or arch('powerpc64le'),
                       expect_broken_for(11259,['ghci-ext'])),
9 10
                  unless(opsys('mingw32'),extra_ways(['ghci-ext'])) ],
                ghci_script, ['ghci004.script'])
pcapriotti's avatar
pcapriotti committed
11
test('ghci005', combined_output, ghci_script, ['ghci005.script'])
12
test('ghci006', [ combined_output,
13 14
                  when(arch('powerpc64') or arch('powerpc64le'),
                       expect_broken_for(11259,['ghci-ext'])),
15 16
                  unless(opsys('mingw32'),extra_ways(['ghci-ext'])) ],
                ghci_script, ['ghci006.script'])
pcapriotti's avatar
pcapriotti committed
17 18 19
test('ghci007', combined_output, ghci_script, ['ghci007.script'])
test('ghci008', combined_output, ghci_script, ['ghci008.script'])
test('ghci009', combined_output, ghci_script, ['ghci009.script'])
20

21
# Skip this test: deadlock cannot be detected now, because we wait for
22 23 24 25
# signals to arrive if there are signal handlers installed, and GHCi
# has a ^C handler installed.
test('ghci010', skip, ghci_script, ['ghci010.script'])

26
test('ghci011', normal, ghci_script, ['ghci011.script'])
27
test('ghci012', normal, ghci_script, ['ghci012.script'])
28
test('ghci013', normal, ghci_script, ['ghci013.script'])
Ian Lynagh's avatar
Ian Lynagh committed
29
test('ghci014', reqlib('QuickCheck'), ghci_script, ['ghci014.script'])
30

31
# Ignore stderr from ghci015, the output is non-deterministic
32 33
# (has occasional "thread blocked indefinitely" exceptions), and this
# is part of the test.
34 35 36
# But don't silence both stderr and stdout, as then the test would trivially
# pass when ghci015.hs has errors.
test('ghci015', [reqlib('stm'), ignore_stderr], ghci_script, ['ghci015.script'])
37

Ian Lynagh's avatar
Ian Lynagh committed
38
test('ghci016', expect_broken(552), ghci_script, ['ghci016.script'])
39
test('ghci017', [reqlib('haskell98'), extra_run_opts('-hide-package haskell98')], ghci_script, ['ghci017.script'])
40
test('ghci018', normal, ghci_script, ['ghci018.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
41
test('ghci019', normal, ghci_script, ['ghci019.script'])
Ian Lynagh's avatar
Ian Lynagh committed
42
test('ghci020', normal, ghci_script, ['ghci020.script'])
Ian Lynagh's avatar
Ian Lynagh committed
43
test('ghci021', normal, ghci_script, ['ghci021.script'])
Simon Marlow's avatar
Simon Marlow committed
44
test('ghci022', normal, ghci_script, ['ghci022.script'])
Simon Marlow's avatar
Simon Marlow committed
45

46
test('ghci023', normal, ghci_script, ['ghci023.script'])
Ian Lynagh's avatar
Ian Lynagh committed
47
test('ghci024',
rwbarton's avatar
rwbarton committed
48
     [req_interp, when(fast(), skip)],
Ian Lynagh's avatar
Ian Lynagh committed
49 50
     run_command,
     ['$MAKE -s --no-print-directory ghci024'])
51
test('T9367',
rwbarton's avatar
rwbarton committed
52
     [req_interp, when(fast() or config.os != 'mingw32', skip)],
53 54
     run_command,
     ['$MAKE -s --no-print-directory T9367'])
55
test('ghci025', normal, ghci_script, ['ghci025.script'])
56
test('ghci026', normal, ghci_script, ['ghci026.script'])
57

58
test('ghci027', extra_clean(['ghci027.hs']), ghci_script, ['ghci027.script'])
Simon Marlow's avatar
Simon Marlow committed
59
test('ghci028', normal, ghci_script, ['ghci028.script'])
Ian Lynagh's avatar
Ian Lynagh committed
60
test('ghci029', normal, ghci_script, ['ghci029.script'])
61
test('ghci030', normal, ghci_script, ['ghci030.script'])
62
test('ghci031', normal, ghci_script, ['ghci031.script'])
63
test('ghci032', normal, ghci_script, ['ghci032.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
64
test('ghci033', normal, ghci_script, ['ghci033.script'])
65
test('ghci034', normal, ghci_script, ['ghci034.script'])
Ian Lynagh's avatar
Ian Lynagh committed
66
test('ghci035', normal, ghci_script, ['ghci035.script'])
SamAnklesaria's avatar
SamAnklesaria committed
67
test('ghci036', normal, ghci_script, ['ghci036.script'])
Ian Lynagh's avatar
Ian Lynagh committed
68
test('ghci037', req_interp, run_command, ['$MAKE -s --no-print-directory ghci037'])
Simon Marlow's avatar
Simon Marlow committed
69
test('ghci038', normal, ghci_script, ['ghci038.script'])
70 71 72 73 74 75
test('ghci039', normal, ghci_script, ['ghci039.script'])
test('ghci040', normal, ghci_script, ['ghci040.script'])
test('ghci041', normal, ghci_script, ['ghci041.script'])
test('ghci042', normal, ghci_script, ['ghci042.script'])
test('ghci043', normal, ghci_script, ['ghci043.script'])
test('ghci044', normal, ghci_script, ['ghci044.script'])
76
test('ghci044a', normal, ghci_script, ['ghci044a.script'])
77 78 79 80 81 82 83 84 85 86
test('ghci045', normal, ghci_script, ['ghci045.script'])
test('ghci046', normal, ghci_script, ['ghci046.script'])
test('ghci047', normal, ghci_script, ['ghci047.script'])
test('ghci048', normal, ghci_script, ['ghci048.script'])
test('ghci049', normal, ghci_script, ['ghci049.script'])
test('ghci050', normal, ghci_script, ['ghci050.script'])
test('ghci051', normal, ghci_script, ['ghci051.script'])
test('ghci052', normal, ghci_script, ['ghci052.script'])
test('ghci053', normal, ghci_script, ['ghci053.script'])
test('ghci054', normal, ghci_script, ['ghci054.script'])
pcapriotti's avatar
pcapriotti committed
87
test('ghci055', combined_output, ghci_script, ['ghci055.script'])
88 89 90

test('ghci056',
     [
ian@well-typed.com's avatar
ian@well-typed.com committed
91
       pre_cmd('$MAKE -s --no-print-directory ghci056_setup'),
92
       extra_run_opts('ghci056_c.o'),
93
       extra_clean(['ghci056_c.o'])
94 95 96
     ],
     ghci_script, ['ghci056.script'])

97
test('ghci057', normal, ghci_script, ['ghci057.script'])
niksaz's avatar
niksaz committed
98 99 100
test('ghci060', normal, ghci_script, ['ghci060.script'])
test('ghci061', normal, ghci_script, ['ghci061.script'])

101
test('T2452', normal, ghci_script, ['T2452.script'])
simonpj's avatar
simonpj committed
102
test('T2766', normal, ghci_script, ['T2766.script'])
Simon Marlow's avatar
Simon Marlow committed
103

104
test('T1914',
Ian Lynagh's avatar
Ian Lynagh committed
105 106
     extra_clean(['T1914A.hs', 'T1914B.hs']),
     ghci_script,
107
     ['T1914.script'])
Ian Lynagh's avatar
Ian Lynagh committed
108

109 110
test('T2182ghci', normal, ghci_script, ['T2182ghci.script'])
test('T2182ghci2', [extra_hc_opts("-XNoImplicitPrelude")], ghci_script, ['T2182ghci2.script'])
111 112
test('T2976', normal, ghci_script, ['T2976.script'])
test('T2816', normal, ghci_script, ['T2816.script'])
Ian Lynagh's avatar
Ian Lynagh committed
113
test('T789', normal, ghci_script, ['T789.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
114
test('T3263', normal, ghci_script, ['T3263.script'])
115
test('T4051', normal, ghci_script, ['T4051.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
116
test('T4087', normal, ghci_script, ['T4087.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
117
test('T4015', normal, ghci_script, ['T4015.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
118
test('T4127', normal, ghci_script, ['T4127.script'])
119
test('T4127a', normal, ghci_script, ['T4127a.script'])
120
test('T4316', reqlib('mtl'), ghci_script, ['T4316.script'])
batterseapower's avatar
batterseapower committed
121
test('T4832', normal, ghci_script, ['T4832.script'])
simonpj's avatar
simonpj committed
122
test('T5045', normal, ghci_script, ['T5045.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
123
test('T5130', normal, ghci_script, ['T5130.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
124
test('T5417', normal, ghci_script, ['T5417.script'])
Simon Marlow's avatar
Simon Marlow committed
125
test('T5545', normal, ghci_script, ['T5545.script'])
pcapriotti's avatar
pcapriotti committed
126
test('T5557', combined_output, ghci_script, ['T5557.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
127
test('T5566', normal, ghci_script, ['T5566.script'])
128
test('GhciKinds', normal, ghci_script, ['GhciKinds.script'])
Simon Marlow's avatar
Simon Marlow committed
129
test('T5564', normal, ghci_script, ['T5564.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
130 131
test('Defer02', normal, ghci_script, ['Defer02.script'])
test('T5820', normal, ghci_script, ['T5820.script'])
Simon Marlow's avatar
Simon Marlow committed
132
test('T5836', normal, ghci_script, ['T5836.script'])
133 134 135
test('T5979',
    [reqlib('transformers'),
     normalise_slashes,
136
     normalise_version("transformers")],
137
    ghci_script, ['T5979.script'])
pcapriotti's avatar
pcapriotti committed
138
test('T5975a',
139
     [pre_cmd('touch föøbàr1.hs'),
140
      clean_cmd('rm -f föøbàr1.hs')],
pcapriotti's avatar
pcapriotti committed
141 142
     ghci_script, ['T5975a.script'])
test('T5975b',
143
     [pre_cmd('touch föøbàr2.hs'),
144
      clean_cmd('rm -f föøbàr2.hs'),
145
      extra_hc_opts('föøbàr2.hs')],
pcapriotti's avatar
pcapriotti committed
146
     ghci_script, ['T5975b.script'])
pcapriotti's avatar
pcapriotti committed
147
test('T6027ghci', normal, ghci_script, ['T6027ghci.script'])
Simon Marlow's avatar
Simon Marlow committed
148 149

test('T6007', normal, ghci_script, ['T6007.script'])
pcapriotti's avatar
pcapriotti committed
150
test('T6091', normal, ghci_script, ['T6091.script'])
151 152 153 154 155 156 157
test('T6106',
     [extra_clean(['T6106.hs',
                   'T6106_preproc.hi', 'T6106_preproc.o',
                   'T6106_preproc', 'T6106_preproc.exe']),
      pre_cmd('$MAKE -s --no-print-directory T6106_prep')],
     ghci_script,
     ['T6106.script'])
Simon Marlow's avatar
Simon Marlow committed
158
test('T6105', normal, ghci_script, ['T6105.script'])
parcs's avatar
parcs committed
159
test('T7117', normal, ghci_script, ['T7117.script'])
160
test('ghci058',
161 162
     [extra_clean(['Ghci058.hs', 'Ghci058.hi', 'Ghci058.o']),
      cmd_prefix('ghciWayFlags=' + config.ghci_way_flags)],
163 164
     ghci_script,
     ['ghci058.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
165
test('T7587', normal, ghci_script, ['T7587.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
166
test('T7688', normal, ghci_script, ['T7688.script'])
167 168
test('T7627', normal, ghci_script, ['T7627.script'])
test('T7627b', normal, ghci_script, ['T7627b.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
169
test('T7586', normal, ghci_script, ['T7586.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
170
test('T4175', normal, ghci_script, ['T4175.script'])
Jan Stolarek's avatar
Jan Stolarek committed
171 172 173
test('T6018ghci', normal, ghci_script, ['T6018ghci.script'])
test('T6018ghcifail', normal, ghci_script, ['T6018ghcifail.script'])
test('T6018ghcirnfail', normal, ghci_script, ['T6018ghcirnfail.script'])
174
test('T7730', combined_output, ghci_script, ['T7730.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
175
test('T7872', normal, ghci_script, ['T7872.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
176
test('T7873', normal, ghci_script, ['T7873.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
177
test('T7939', normal, ghci_script, ['T7939.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
178
test('T7894', normal, ghci_script, ['T7894.script'])
179
test('T8116', normal, ghci_script, ['T8116.script'])
180
test('T8113', normal, ghci_script, ['T8113.script'])
thomie's avatar
thomie committed
181 182
test('T8172', when(opsys('mingw32'), normalise_drive_letter),
     ghci_script, ['T8172.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
183
test('T8215', normal, ghci_script, ['T8215.script'])
184
test('T8353', normal, ghci_script, ['T8353.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
185
test('T8357', normal, ghci_script, ['T8357.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
186
test('T8383', normal, ghci_script, ['T8383.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
187
test('T8469', normal, ghci_script, ['T8469.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
188 189
test('T8485', normal, ghci_script, ['T8485.script'])
test('T8535', normal, ghci_script, ['T8535.script'])
190
test('T8639', normal, ghci_script, ['T8639.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
191
test('T8640', normal, ghci_script, ['T8640.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
192
test('T8579', normal, ghci_script, ['T8579.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
193
test('T8649', normal, ghci_script, ['T8649.script'])
194
test('T8674', normal, ghci_script, ['T8674.script'])
195
test('T8696', normal, ghci_script, ['T8696.script'])
Gergő Érdi's avatar
Gergő Érdi committed
196
test('T8776', normal, ghci_script, ['T8776.script'])
197
test('ghci059', normal, ghci_script, ['ghci059.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
198
test('T8831', normal, ghci_script, ['T8831.script'])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
199
test('T8917', normal, ghci_script, ['T8917.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
200
test('T8931', normal, ghci_script, ['T8931.script'])
201
test('T8959', normal, ghci_script, ['T8959.script'])
202
test('T8959b', normal, ghci_script, ['T8959b.script'])
203
test('T9181', normal, ghci_script, ['T9181.script'])
204
test('T9086b', normal, ghci_script, ['T9086b.script'])
205
test('T9140', combined_output, ghci_script, ['T9140.script'])
206
test('T9658', normal, ghci_script, ['T9658.script'])
207
test('T9293', normal, ghci_script, ['T9293.script'])
208 209 210 211 212
test('T9762',
 [ unless(have_dynamic(),skip)
 , pre_cmd('$MAKE -s --no-print-directory T9762_prep')
 ],
 ghci_script, ['T9762.script'])
213
test('T9881', normal, ghci_script, ['T9881.script'])
214 215 216 217
test('T9878',
    [extra_clean(['T9878.hi','T9878.o'])],
    ghci_script, ['T9878.script'])
test('T9878b',
218
    [ extra_run_opts('-fobject-code'),
219
      extra_clean(['T9878b.hi','T9878b.o'])],
220
    ghci_script, ['T9878b.script'])
221
test('T10018', normal, ghci_script, ['T10018.script'])
222
test('T10122', normal, ghci_script, ['T10122.script'])
223

224
test('T10321', normal, ghci_script, ['T10321.script'])
225

rwbarton's avatar
rwbarton committed
226
test('T10408', req_interp, run_command,
227
    ['$MAKE -s --no-print-directory T10408'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
228
test('T10248', normal, ghci_script, ['T10248.script'])
229
test('T10110', normal, ghci_script, ['T10110.script'])
230
test('T10322', normal, ghci_script, ['T10322.script'])
231
test('T10439', normal, ghci_script, ['T10439.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
232
test('T10466', normal, ghci_script, ['T10466.script'])
233
test('T10501', normal, ghci_script, ['T10501.script'])
234
test('T10508', normal, ghci_script, ['T10508.script'])
235
test('T10520', normal, ghci_script, ['T10520.script'])
236
test('T10663', normal, ghci_script, ['T10663.script'])
237 238 239 240 241
test('T10989',
    [
      extra_clean(['dummy.hs', 'dummy.lhs', 'dummy.tags'])
    ],
    ghci_script, ['T10989.script'])
242
test('T11098', normal, ghci_script, ['T11098.script'])
Ben Gamari's avatar
Ben Gamari committed
243
test('T8316', expect_broken(8316), ghci_script, ['T8316.script'])
244
test('T11252', normal, ghci_script, ['T11252.script'])
Geraldus's avatar
Geraldus committed
245 246

test('T10576a', expect_broken(10576), ghci_script, ['T10576a.script'])
Ben Gamari's avatar
Ben Gamari committed
247 248 249
test('T10576b', expect_broken(10576), ghci_script, ['T10576b.script'])
test('T11051a', normal, ghci_script, ['T11051a.script'])
test('T11051b', normal, ghci_script, ['T11051b.script'])
250
test('T11266', ignore_stdout, ghci_script, ['T11266.script'])
251 252

test('T11389', req_interp, run_command, ['$MAKE -s --no-print-directory T11389'])
253
test('T11524a', normal, ghci_script, ['T11524a.script'])
254
test('T11456', normal, ghci_script, ['T11456.script'])
255
test('TypeAppData', normal, ghci_script, ['TypeAppData.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
256
test('T11728', normal, ghci_script, ['T11728.script'])
257
test('T11376', normal, ghci_script, ['T11376.script'])
258
test('T12007', normal, ghci_script, ['T12007.script'])
259 260
test('T11975', normal, ghci_script, ['T11975.script'])
test('T10963', normal, ghci_script, ['T10963.script'])