Test proxy-polymorphic sameNat and sameSymbol
[ghc.git] / testsuite / tests / ghci / scripts / all.T
1 # coding=utf8
2
3 # Note [Disabling ghci-leak-check]
4 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 # The -fno-ghci-leak-check is because this test prints the current GHC settings
6 # and the ghci-leak-check is turned off in DEBUG mode. See #15372. So we need to
7 # turn it off in non-DEBUG mode, too, so that one stdout works for both modes.
8 # After #15372 is fully fixed, these "extra_hc_opts" should be removed.
9
10 test('ghci001', combined_output, ghci_script, ['ghci001.script'])
11 test('ghci002', combined_output, ghci_script, ['ghci002.script'])
12 test('ghci003', combined_output, ghci_script, ['ghci003.script'])
13 test('ghci004', [ combined_output, req_rts_linker,
14                   unless(opsys('mingw32'),extra_ways(['ghci-ext'])) ],
15                 ghci_script, ['ghci004.script'])
16 test('ghci005', combined_output, ghci_script, ['ghci005.script'])
17 test('ghci006', [ combined_output, req_rts_linker,
18                   unless(opsys('mingw32'),extra_ways(['ghci-ext'])) ],
19                 ghci_script, ['ghci006.script'])
20 test('ghci007', combined_output, ghci_script, ['ghci007.script'])
21 test('ghci008', [ combined_output,
22                   normalise_version('base') ], ghci_script, ['ghci008.script'])
23 test('ghci009', combined_output, ghci_script, ['ghci009.script'])
24
25 # Skip this test: deadlock cannot be detected now, because we wait for
26 # signals to arrive if there are signal handlers installed, and GHCi
27 # has a ^C handler installed.
28 test('ghci010', skip, ghci_script, ['ghci010.script'])
29
30 test('ghci011', normal, ghci_script, ['ghci011.script'])
31 test('ghci012', normal, ghci_script, ['ghci012.script'])
32 test('ghci013', normal, ghci_script, ['ghci013.script'])
33 test('ghci014', reqlib('QuickCheck'), ghci_script, ['ghci014.script'])
34
35 # Ignore stderr from ghci015, the output is non-deterministic
36 # (has occasional "thread blocked indefinitely" exceptions), and this
37 # is part of the test.
38 # But don't silence both stderr and stdout, as then the test would trivially
39 # pass when ghci015.hs has errors.
40 test('ghci015', [reqlib('stm'), ignore_stderr], ghci_script, ['ghci015.script'])
41
42 test('ghci016', expect_broken(552), ghci_script, ['ghci016.script'])
43 test('ghci017', [reqlib('haskell98'), extra_run_opts('-hide-package haskell98')], ghci_script, ['ghci017.script'])
44 test('ghci018', normal, ghci_script, ['ghci018.script'])
45 test('ghci019', normal, ghci_script, ['ghci019.script'])
46 test('ghci020', normal, ghci_script, ['ghci020.script'])
47 test('ghci021', normal, ghci_script, ['ghci021.script'])
48 test('ghci022', normal, ghci_script, ['ghci022.script'])
49
50 test('ghci023', normal, ghci_script, ['ghci023.script'])
51 test('ghci024',
52      [req_interp, when(fast(), skip)],
53      makefile_test, [])
54 test('T9367',
55      [req_interp, when(fast() or config.os != 'mingw32', skip)],
56      makefile_test, [])
57 test('ghci025', extra_files(['Ghci025B.hs', 'Ghci025C.hs', 'Ghci025D.hs']), ghci_script, ['ghci025.script'])
58 test('ghci026', extra_files(['../prog002']), ghci_script, ['ghci026.script'])
59
60 test('ghci027', [], ghci_script, ['ghci027.script'])
61 test('ghci028', normal, ghci_script, ['ghci028.script'])
62 test('ghci029', normal, ghci_script, ['ghci029.script'])
63 test('ghci030', normal, ghci_script, ['ghci030.script'])
64 test('ghci031', normal, ghci_script, ['ghci031.script'])
65 test('ghci032', normal, ghci_script, ['ghci032.script'])
66 test('ghci033', normal, ghci_script, ['ghci033.script'])
67 test('ghci034', normal, ghci_script, ['ghci034.script'])
68 test('ghci035', normal, ghci_script, ['ghci035.script'])
69 test('ghci036', normal, ghci_script, ['ghci036.script'])
70 test('ghci037', req_interp, makefile_test, [])
71 test('ghci038', extra_files(['../shell.hs']), ghci_script, ['ghci038.script'])
72 test('ghci039', normal, ghci_script, ['ghci039.script'])
73 test('ghci040', normal, ghci_script, ['ghci040.script'])
74 test('ghci041', normal, ghci_script, ['ghci041.script'])
75 test('ghci042', normal, ghci_script, ['ghci042.script'])
76 test('ghci043', normal, ghci_script, ['ghci043.script'])
77 test('ghci044', normal, ghci_script, ['ghci044.script'])
78 test('ghci044a', normal, ghci_script, ['ghci044a.script'])
79 test('ghci045', normal, ghci_script, ['ghci045.script'])
80 test('ghci046', normal, ghci_script, ['ghci046.script'])
81 test('ghci047', normal, ghci_script, ['ghci047.script'])
82 test('ghci048', normal, ghci_script, ['ghci048.script'])
83 test('ghci049', normal, ghci_script, ['ghci049.script'])
84 test('ghci050', normal, ghci_script, ['ghci050.script'])
85 test('ghci051', normal, ghci_script, ['ghci051.script'])
86 test('ghci052', normal, ghci_script, ['ghci052.script'])
87 test('ghci053', normal, ghci_script, ['ghci053.script'])
88 test('ghci054', normal, ghci_script, ['ghci054.script'])
89 test('ghci055', combined_output, ghci_script, ['ghci055.script'])
90
91 test('ghci056',
92      [pre_cmd('$MAKE -s --no-print-directory ghci056_setup'),
93       extra_run_opts('ghci056_c.o')],
94      ghci_script, ['ghci056.script'])
95
96 test('ghci057', extra_hc_opts("-fno-ghci-leak-check"), ghci_script, ['ghci057.script'])
97   # See Note [Disabling ghci-leak-check]
98
99 test('ghci060', normal, ghci_script, ['ghci060.script'])
100 test('ghci061', normal, ghci_script, ['ghci061.script'])
101 test('ghci062', [extra_files(['ghci062/', 'ghci062/Test.hs']),
102                  when(config.have_ext_interp, extra_ways(['ghci-ext']))],
103                 ghci_script, ['ghci062.script'])
104 test('ghci063', normal, ghci_script, ['ghci063.script'])
105 test('ghci064', normal, ghci_script, ['ghci064.script'])
106 test('ghci065', [extra_hc_opts("-haddock")], ghci_script, ['ghci065.script'])
107 test('T2452', [extra_hc_opts("-fno-implicit-import-qualified")],
108     ghci_script, ['T2452.script'])
109 test('T2766', normal, ghci_script, ['T2766.script'])
110
111 test('T1914', [], ghci_script, ['T1914.script'])
112
113 test('T2182ghci', normal, ghci_script, ['T2182ghci.script'])
114 test('T2182ghci2', [extra_hc_opts("-XNoImplicitPrelude")], ghci_script, ['T2182ghci2.script'])
115 test('T2976', normal, ghci_script, ['T2976.script'])
116 test('T2816', normal, ghci_script, ['T2816.script'])
117 test('T789', normal, ghci_script, ['T789.script'])
118 test('T3263', normal, ghci_script, ['T3263.script'])
119 test('T4051', normal, ghci_script, ['T4051.script'])
120 test('T4087', normal, ghci_script, ['T4087.script'])
121 test('T4015', normal, ghci_script, ['T4015.script'])
122 test('T4127', normal, ghci_script, ['T4127.script'])
123 test('T4127a', normal, ghci_script, ['T4127a.script'])
124 test('T4316', normal, ghci_script, ['T4316.script'])
125 test('T4832', normal, ghci_script, ['T4832.script'])
126 test('T5045', normal, ghci_script, ['T5045.script'])
127 test('T5130', normal, ghci_script, ['T5130.script'])
128 test('T5417', normal, ghci_script, ['T5417.script'])
129 test('T5545', normal, ghci_script, ['T5545.script'])
130 test('T5557', combined_output, ghci_script, ['T5557.script'])
131 test('T5566', normal, ghci_script, ['T5566.script'])
132 test('GhciKinds', normal, ghci_script, ['GhciKinds.script'])
133 test('T5564', normal, ghci_script, ['T5564.script'])
134 test('Defer02', extra_files(['../../typecheck/should_run/Defer01.hs']), ghci_script, ['Defer02.script'])
135 test('T5820', normal, ghci_script, ['T5820.script'])
136 test('T5836', normal, ghci_script, ['T5836.script'])
137 test('T5979',
138     [reqlib('transformers'),
139      normalise_slashes,
140      normalise_version("transformers")],
141     ghci_script, ['T5979.script'])
142 test('T5975a', [pre_cmd('touch föøbàr1.hs')], ghci_script, ['T5975a.script'])
143 test('T5975b', [pre_cmd('touch föøbàr2.hs'), extra_hc_opts('föøbàr2.hs')],
144      ghci_script, ['T5975b.script'])
145 test('T6027ghci', normal, ghci_script, ['T6027ghci.script'])
146
147 test('T6007', normal, ghci_script, ['T6007.script'])
148 test('T6091', normal, ghci_script, ['T6091.script'])
149 test('T6106', [extra_files(['../shell.hs']),
150                pre_cmd('$MAKE -s --no-print-directory T6106_prep')],
151      ghci_script, ['T6106.script'])
152 test('T6105', normal, ghci_script, ['T6105.script'])
153 test('T7117', normal, ghci_script, ['T7117.script'])
154 test('ghci058', [extra_files(['../shell.hs']),
155                  cmd_prefix('ghciWayFlags=' + config.ghci_way_flags),
156                  when(opsys('mingw32'), expect_broken(16858))],
157      ghci_script, ['ghci058.script'])
158 test('T7587', normal, ghci_script, ['T7587.script'])
159 test('T7688', normal, ghci_script, ['T7688.script'])
160 test('T7627', normal, ghci_script, ['T7627.script'])
161 test('T7627b', normal, ghci_script, ['T7627b.script'])
162 test('T7586', normal, ghci_script, ['T7586.script'])
163 test('T4175', normal, ghci_script, ['T4175.script'])
164 test('T6018ghci', normal, ghci_script, ['T6018ghci.script'])
165 test('T6018ghcifail', normal, ghci_script, ['T6018ghcifail.script'])
166 test('T6018ghcirnfail', normal, ghci_script, ['T6018ghcirnfail.script'])
167 test('T7730', combined_output, ghci_script, ['T7730.script'])
168 test('T7872', normal, ghci_script, ['T7872.script'])
169 test('T7873', normal, ghci_script, ['T7873.script'])
170 test('T7939', normal, ghci_script, ['T7939.script'])
171 test('T7894', normal, ghci_script, ['T7894.script'])
172 test('T8116', normal, ghci_script, ['T8116.script'])
173 test('T8113', normal, ghci_script, ['T8113.script'])
174 test('T8172', when(opsys('mingw32'), normalise_drive_letter),
175      ghci_script, ['T8172.script'])
176 test('T8215', normal, ghci_script, ['T8215.script'])
177 test('T8305', normal, ghci_script, ['T8305.script'])
178 test('T8353', extra_files(['Defer03.hs']), ghci_script, ['T8353.script'])
179 test('T8357', normal, ghci_script, ['T8357.script'])
180 test('T8383', normal, ghci_script, ['T8383.script'])
181 test('T8469', normal, ghci_script, ['T8469.script'])
182 test('T8485', normal, ghci_script, ['T8485.script'])
183 test('T8535', normal, ghci_script, ['T8535.script'])
184 test('T8639', normal, ghci_script, ['T8639.script'])
185 test('T8640', normal, ghci_script, ['T8640.script'])
186 test('T8579', normal, ghci_script, ['T8579.script'])
187 test('T8649', normal, ghci_script, ['T8649.script'])
188 test('T8674', normal, ghci_script, ['T8674.script'])
189 test('T8696', normal, ghci_script, ['T8696.script'])
190 test('T8776', normal, ghci_script, ['T8776.script'])
191 test('ghci059', normal, ghci_script, ['ghci059.script'])
192 test('T8831', normal, ghci_script, ['T8831.script'])
193 test('T8917', normal, ghci_script, ['T8917.script'])
194 test('T8931', normal, ghci_script, ['T8931.script'])
195 test('T8959', normal, ghci_script, ['T8959.script'])
196 test('T8959b', normal, ghci_script, ['T8959b.script'])
197 test('T9181', normal, ghci_script, ['T9181.script'])
198 test('T9086b', normal, ghci_script, ['T9086b.script'])
199 test('T9140', combined_output, ghci_script, ['T9140.script'])
200 test('T9658', normal, ghci_script, ['T9658.script'])
201
202 test('T9293', [extra_hc_opts('-fno-ghci-leak-check'), extra_files(['ghci057.hs'])], ghci_script, ['T9293.script'])
203   # See Note [Disabling ghci-leak-check]
204
205 test('T9762',
206  [ unless(have_dynamic(),skip)
207  , pre_cmd('$MAKE -s --no-print-directory T9762_prep')
208  ],
209  ghci_script, ['T9762.script'])
210 test('T9881', normal, ghci_script, ['T9881.script'])
211 test('T9878', [], ghci_script, ['T9878.script'])
212 test('T9878b', [extra_run_opts('-fobject-code')], ghci_script,
213      ['T9878b.script'])
214 test('T10018', normal, ghci_script, ['T10018.script'])
215 test('T10059', normal, ghci_script, ['T10059.script'])
216 test('T10122', normal, ghci_script, ['T10122.script'])
217
218 test('T10321', normal, ghci_script, ['T10321.script'])
219
220 test('T10408', req_interp, makefile_test, [])
221 test('T10248', normal, ghci_script, ['T10248.script'])
222 test('T10110', normal, ghci_script, ['T10110.script'])
223 test('T10322', normal, ghci_script, ['T10322.script'])
224 test('T10439', normal, ghci_script, ['T10439.script'])
225 test('T10453', normal, ghci_script, ['T10453.script'])
226 test('T10466', normal, ghci_script, ['T10466.script'])
227 test('T10501', normal, ghci_script, ['T10501.script'])
228 test('T10508', normal, ghci_script, ['T10508.script'])
229 test('T10520', normal, ghci_script, ['T10520.script'])
230 test('T10663', normal, ghci_script, ['T10663.script'])
231 test('T10989', [], ghci_script, ['T10989.script'])
232 test('T11098', normal, ghci_script, ['T11098.script'])
233 test('T8316', expect_broken(8316), ghci_script, ['T8316.script'])
234 test('T11252', normal, ghci_script, ['T11252.script'])
235
236 test('T10576a', [extra_files(['T10576.hs']), expect_broken(10576)],
237      ghci_script, ['T10576a.script'])
238 test('T10576b', [extra_files(['T10576.hs']), expect_broken(10576)],
239      ghci_script, ['T10576b.script'])
240 test('T11051a', normal, ghci_script, ['T11051a.script'])
241 test('T11051b', normal, ghci_script, ['T11051b.script'])
242 test('T11266', ignore_stdout, ghci_script, ['T11266.script'])
243
244 test('T11389', req_interp, makefile_test, [])
245 test('T11524a', normal, ghci_script, ['T11524a.script'])
246 test('T11456', normal, ghci_script, ['T11456.script'])
247 test('TypeAppData', normal, ghci_script, ['TypeAppData.script'])
248 test('T11728', normal, ghci_script, ['T11728.script'])
249 test('T11376', normal, ghci_script, ['T11376.script'])
250 test('T12007', normal, ghci_script, ['T12007.script'])
251 test('T11975', normal, ghci_script, ['T11975.script'])
252 test('T10963', normal, ghci_script, ['T10963.script'])
253 test('T11721', normal, ghci_script, ['T11721.script'])
254 test('T12005', normal, ghci_script, ['T12005.script'])
255 test('T12023', normal, makefile_test, [])
256 test('T12520', normal, ghci_script, ['T12520.script'])
257 test('T12091', [extra_run_opts('-fobject-code')], ghci_script,
258      ['T12091.script'])
259 test('T12523', normal, ghci_script, ['T12523.script'])
260 test('T12024', normal, ghci_script, ['T12024.script'])
261 test('T12158', normal, ghci_script, ['T12158.script'])
262 test('T12447', normal, ghci_script, ['T12447.script'])
263 test('T10249', normal, ghci_script, ['T10249.script'])
264 test('T12550', normal, ghci_script, ['T12550.script'])
265 test('StaticPtr', normal, ghci_script, ['StaticPtr.script'])
266 test('T13202', normal, ghci_script, ['T13202.script'])
267 test('T13202a', normal, ghci_script, ['T13202a.script'])
268 test('T13385', [extra_hc_opts("-XRebindableSyntax")], ghci_script, ['T13385.script'])
269 test('T13420', normal, ghci_script, ['T13420.script'])
270 test('T13466', normal, ghci_script, ['T13466.script'])
271 test('GhciCurDir', normal, ghci_script, ['GhciCurDir.script'])
272 test('T13591', expect_broken(13591), ghci_script, ['T13591.script'])
273 test('T13699', normal, ghci_script, ['T13699.script'])
274 test('T13988', normal, ghci_script, ['T13988.script'])
275 test('T13407', normal, ghci_script, ['T13407.script'])
276 test('T13963', normal, ghci_script, ['T13963.script'])
277 test('T14342', [extra_hc_opts("-XOverloadedStrings -XRebindableSyntax")],
278                ghci_script, ['T14342.script'])
279 test('T14676', extra_files(['../prog002']), ghci_script, ['T14676.script'])
280 test('T14796', normal, ghci_script, ['T14796.script'])
281 test('T14969', normal, ghci_script, ['T14969.script'])
282 test('T15259', normal, ghci_script, ['T15259.script'])
283 test('T15341', normal, ghci_script, ['T15341.script'])
284 test('T15568', normal, ghci_script, ['T15568.script'])
285 test('T15325', normal, ghci_script, ['T15325.script'])
286 test('T15591', normal, ghci_script, ['T15591.script'])
287 test('T15743b', normal, ghci_script, ['T15743b.script'])
288 test('T15827', normal, ghci_script, ['T15827.script'])
289 test('T15872', normal, ghci_script, ['T15872.script'])
290 test('T15898', normal, ghci_script, ['T15898.script'])
291 test('T15941', normal, ghci_script, ['T15941.script'])
292 test('T16030', normal, ghci_script, ['T16030.script'])
293 test('T11606', normal, ghci_script, ['T11606.script'])
294 test('T16089', normal, ghci_script, ['T16089.script'])
295 test('T14828', normal, ghci_script, ['T14828.script'])
296 test('T16376', normal, ghci_script, ['T16376.script'])
297 test('T16527', normal, ghci_script, ['T16527.script'])
298 test('T16563', extra_hc_opts("-clear-package-db -global-package-db"), ghci_script, ['T16563.script'])
299 test('T16569', normal, ghci_script, ['T16569.script'])
300 test('T16767', normal, ghci_script, ['T16767.script'])
301 test('T16575', normal, ghci_script, ['T16575.script'])
302 test('T16509', normal, ghci_script, ['T16509.script'])
303 # Tests :type-at and :uses
304 # historical note: introduced to see the changes in the behaviour
305 #   when the implementation of :type-at and :uses will be/was changed
306 #   to use hie files
307 test('T16804', extra_files(['T16804a.hs', 'T16804b.hs', 'T16804c.hs']), ghci_script, ['T16804.script'])
308 test('T15546', normal, ghci_script, ['T15546.script'])
309 test('T16876', normal, ghci_script, ['T16876.script'])
310 test('T17345', normal, ghci_script, ['T17345.script'])
311 test('T17384', normal, ghci_script, ['T17384.script'])
312 test('T17403', normal, ghci_script, ['T17403.script'])
313 test('T17431', normal, ghci_script, ['T17431.script'])