Hide derived OccNames from user
[ghc.git] / testsuite / tests / ghci / scripts / all.T
1 # coding=utf8
2
3 test('ghci001', combined_output, ghci_script, ['ghci001.script'])
4 test('ghci002', combined_output, ghci_script, ['ghci002.script'])
5 test('ghci003', combined_output, ghci_script, ['ghci003.script'])
6 test('ghci004', [ combined_output,
7                   unless(opsys('mingw32'),extra_ways(['ghci-ext'])) ],
8                 ghci_script, ['ghci004.script'])
9 test('ghci005', combined_output, ghci_script, ['ghci005.script'])
10 test('ghci006', [ combined_output,
11                   unless(opsys('mingw32'),extra_ways(['ghci-ext'])) ],
12                 ghci_script, ['ghci006.script'])
13 test('ghci007', combined_output, ghci_script, ['ghci007.script'])
14 test('ghci008', combined_output, ghci_script, ['ghci008.script'])
15 test('ghci009', combined_output, ghci_script, ['ghci009.script'])
16
17 # Skip this test: deadlock cannot be detected now, because we wait for
18 # signals to arrive if there are signal handlers installed, and GHCi
19 # has a ^C handler installed.
20 test('ghci010', skip, ghci_script, ['ghci010.script'])
21
22 test('ghci011', normal, ghci_script, ['ghci011.script'])
23 test('ghci012', normal, ghci_script, ['ghci012.script'])
24 test('ghci013', normal, ghci_script, ['ghci013.script'])
25 test('ghci014', reqlib('QuickCheck'), ghci_script, ['ghci014.script'])
26
27 # Ignore output from ghci015, the output is non-deterministic
28 # (has occasional "thread blocked indefinitely" exceptions), and this
29 # is part of the test.
30 test('ghci015', ignore_output, ghci_script, ['ghci015.script'])
31
32 test('ghci016', expect_broken(552), ghci_script, ['ghci016.script'])
33 test('ghci017', [reqlib('haskell98'), extra_run_opts('-hide-package haskell98')], ghci_script, ['ghci017.script'])
34 test('ghci018', normal, ghci_script, ['ghci018.script'])
35 test('ghci019', normal, ghci_script, ['ghci019.script'])
36 test('ghci020', normal, ghci_script, ['ghci020.script'])
37 test('ghci021', normal, ghci_script, ['ghci021.script'])
38 test('ghci022', normal, ghci_script, ['ghci022.script'])
39
40 test('ghci023', normal, ghci_script, ['ghci023.script'])
41 test('ghci024',
42      when(fast(), skip),
43      run_command,
44      ['$MAKE -s --no-print-directory ghci024'])
45 test('T9367',
46      when(fast() or config.os != 'mingw32', skip),
47      run_command,
48      ['$MAKE -s --no-print-directory T9367'])
49 test('ghci025', normal, ghci_script, ['ghci025.script'])
50 test('ghci026', normal, ghci_script, ['ghci026.script'])
51
52 test('ghci027', extra_clean(['ghci027.hs']), ghci_script, ['ghci027.script'])
53 test('ghci028', normal, ghci_script, ['ghci028.script'])
54 test('ghci029', normal, ghci_script, ['ghci029.script'])
55 test('ghci030', normal, ghci_script, ['ghci030.script'])
56 test('ghci031', normal, ghci_script, ['ghci031.script'])
57 test('ghci032', normal, ghci_script, ['ghci032.script'])
58 test('ghci033', normal, ghci_script, ['ghci033.script'])
59 test('ghci034', normal, ghci_script, ['ghci034.script'])
60 test('ghci035', normal, ghci_script, ['ghci035.script'])
61 test('ghci036', normal, ghci_script, ['ghci036.script'])
62 test('ghci037', req_interp, run_command, ['$MAKE -s --no-print-directory ghci037'])
63 test('ghci038', normal, ghci_script, ['ghci038.script'])
64 test('ghci039', normal, ghci_script, ['ghci039.script'])
65 test('ghci040', normal, ghci_script, ['ghci040.script'])
66 test('ghci041', normal, ghci_script, ['ghci041.script'])
67 test('ghci042', normal, ghci_script, ['ghci042.script'])
68 test('ghci043', normal, ghci_script, ['ghci043.script'])
69 test('ghci044', normal, ghci_script, ['ghci044.script'])
70 test('ghci044a', normal, ghci_script, ['ghci044a.script'])
71 test('ghci045', normal, ghci_script, ['ghci045.script'])
72 test('ghci046', normal, ghci_script, ['ghci046.script'])
73 test('ghci047', normal, ghci_script, ['ghci047.script'])
74 test('ghci048', normal, ghci_script, ['ghci048.script'])
75 test('ghci049', normal, ghci_script, ['ghci049.script'])
76 test('ghci050', normal, ghci_script, ['ghci050.script'])
77 test('ghci051', normal, ghci_script, ['ghci051.script'])
78 test('ghci052', normal, ghci_script, ['ghci052.script'])
79 test('ghci053', normal, ghci_script, ['ghci053.script'])
80 test('ghci054', normal, ghci_script, ['ghci054.script'])
81 test('ghci055', combined_output, ghci_script, ['ghci055.script'])
82
83 test('ghci056',
84      [
85        pre_cmd('$MAKE -s --no-print-directory ghci056_setup'),
86        extra_run_opts('ghci056_c.o'),
87        extra_clean(['ghci056_c.o'])
88      ],
89      ghci_script, ['ghci056.script'])
90
91 test('ghci057', extra_hc_opts('-fwarn-tabs'), ghci_script, ['ghci057.script'])
92
93 test('T2452', normal, ghci_script, ['T2452.script'])
94 test('T2766', normal, ghci_script, ['T2766.script'])
95
96 test('T1914',
97      extra_clean(['T1914A.hs', 'T1914B.hs']),
98      ghci_script,
99      ['T1914.script'])
100
101 test('T2182ghci', normal, ghci_script, ['T2182ghci.script'])
102 test('T2182ghci2', [extra_hc_opts("-XNoImplicitPrelude")], ghci_script, ['T2182ghci2.script'])
103 test('T2976', normal, ghci_script, ['T2976.script'])
104 test('T2816', normal, ghci_script, ['T2816.script'])
105 test('T789', normal, ghci_script, ['T789.script'])
106 test('T3263', normal, ghci_script, ['T3263.script'])
107 test('T4051', normal, ghci_script, ['T4051.script'])
108 test('T4087', normal, ghci_script, ['T4087.script'])
109 test('T4015', normal, ghci_script, ['T4015.script'])
110 test('T4127', normal, ghci_script, ['T4127.script'])
111 test('T4127a', normal, ghci_script, ['T4127a.script'])
112 test('T4316', reqlib('mtl'), ghci_script, ['T4316.script'])
113 test('T4832', normal, ghci_script, ['T4832.script'])
114 test('T5045', normal, ghci_script, ['T5045.script'])
115 test('T5130', normal, ghci_script, ['T5130.script'])
116 test('T5417', normal, ghci_script, ['T5417.script'])
117 test('T5545', normal, ghci_script, ['T5545.script'])
118 test('T5557', combined_output, ghci_script, ['T5557.script'])
119 test('T5566', normal, ghci_script, ['T5566.script'])
120 test('GhciKinds', normal, ghci_script, ['GhciKinds.script'])
121 test('T5564', normal, ghci_script, ['T5564.script'])
122 test('Defer02', normal, ghci_script, ['Defer02.script'])
123 test('T5820', normal, ghci_script, ['T5820.script'])
124 test('T5836', normal, ghci_script, ['T5836.script'])
125 test('T5979',
126     [reqlib('transformers'),
127      normalise_slashes,
128      normalise_version("transformers")],
129     ghci_script, ['T5979.script'])
130 test('T5975a',
131      [pre_cmd('touch föøbàr1.hs'),
132       clean_cmd('rm -f föøbàr1.hs')],
133      ghci_script, ['T5975a.script'])
134 test('T5975b',
135      [pre_cmd('touch föøbàr2.hs'),
136       clean_cmd('rm -f föøbàr2.hs'),
137       extra_hc_opts('föøbàr2.hs')],
138      ghci_script, ['T5975b.script'])
139 test('T6027ghci', normal, ghci_script, ['T6027ghci.script'])
140
141 test('T6007', normal, ghci_script, ['T6007.script'])
142 test('T6091', normal, ghci_script, ['T6091.script'])
143 test('T6106',
144      [extra_clean(['T6106.hs',
145                    'T6106_preproc.hi', 'T6106_preproc.o',
146                    'T6106_preproc', 'T6106_preproc.exe']),
147       pre_cmd('$MAKE -s --no-print-directory T6106_prep')],
148      ghci_script,
149      ['T6106.script'])
150 test('T6105', normal, ghci_script, ['T6105.script'])
151 test('T7117', normal, ghci_script, ['T7117.script'])
152 test('ghci058',
153      [extra_clean(['Ghci058.hs', 'Ghci058.hi', 'Ghci058.o']),
154       cmd_prefix('ghciWayFlags=' + config.ghci_way_flags)],
155      ghci_script,
156      ['ghci058.script'])
157 test('T7587', normal, ghci_script, ['T7587.script'])
158 test('T7688', normal, ghci_script, ['T7688.script'])
159 test('T7627', normal, ghci_script, ['T7627.script'])
160 test('T7627b', normal, ghci_script, ['T7627b.script'])
161 test('T7586', normal, ghci_script, ['T7586.script'])
162 test('T4175', normal, ghci_script, ['T4175.script'])
163 test('T6018ghci', normal, ghci_script, ['T6018ghci.script'])
164 test('T6018ghcifail', normal, ghci_script, ['T6018ghcifail.script'])
165 test('T6018ghcirnfail', normal, ghci_script, ['T6018ghcirnfail.script'])
166 test('T7730', combined_output, ghci_script, ['T7730.script'])
167 test('T7872', normal, ghci_script, ['T7872.script'])
168 test('T7873', normal, ghci_script, ['T7873.script'])
169 test('T7939', normal, ghci_script, ['T7939.script'])
170 test('T7894', normal, ghci_script, ['T7894.script'])
171 test('T8116', normal, ghci_script, ['T8116.script'])
172 test('T8113', normal, ghci_script, ['T8113.script'])
173 test('T8172', when(opsys('mingw32'), normalise_drive_letter),
174      ghci_script, ['T8172.script'])
175 test('T8215', normal, ghci_script, ['T8215.script'])
176 test('T8353', normal, ghci_script, ['T8353.script'])
177 test('T8357', normal, ghci_script, ['T8357.script'])
178 test('T8383', normal, ghci_script, ['T8383.script'])
179 test('T8469', normal, ghci_script, ['T8469.script'])
180 test('T8485', normal, ghci_script, ['T8485.script'])
181 test('T8535', normal, ghci_script, ['T8535.script'])
182 test('T8639', normal, ghci_script, ['T8639.script'])
183 test('T8640', normal, ghci_script, ['T8640.script'])
184 test('T8579', normal, ghci_script, ['T8579.script'])
185 test('T8649', normal, ghci_script, ['T8649.script'])
186 test('T8674', normal, ghci_script, ['T8674.script'])
187 test('T8696', normal, ghci_script, ['T8696.script'])
188 test('T8776', normal, ghci_script, ['T8776.script'])
189 test('ghci059', normal, ghci_script, ['ghci059.script'])
190 test('T8831', normal, ghci_script, ['T8831.script'])
191 test('T8917', normal, ghci_script, ['T8917.script'])
192 test('T8931', normal, ghci_script, ['T8931.script'])
193 test('T8959', normal, ghci_script, ['T8959.script'])
194 test('T8959b', normal, ghci_script, ['T8959b.script'])
195 test('T9181', normal, ghci_script, ['T9181.script'])
196 test('T9086b', normal, ghci_script, ['T9086b.script'])
197 test('T9140', combined_output, ghci_script, ['T9140.script'])
198 test('T9658', normal, ghci_script, ['T9658.script'])
199 test('T9293', extra_hc_opts('-fwarn-tabs'), ghci_script, ['T9293.script'])
200 test('T9762',
201  [ unless(have_dynamic(),skip)
202  , pre_cmd('$MAKE -s --no-print-directory T9762_prep')
203  ],
204  ghci_script, ['T9762.script'])
205 test('T9881', normal, ghci_script, ['T9881.script'])
206 test('T9878',
207     [extra_clean(['T9878.hi','T9878.o'])],
208     ghci_script, ['T9878.script'])
209 test('T9878b',
210     [ extra_run_opts('-fobject-code'),
211       extra_clean(['T9878b.hi','T9878b.o'])],
212     ghci_script, ['T9878b.script'])
213 test('T10018', normal, ghci_script, ['T10018.script'])
214 test('T10122', normal, ghci_script, ['T10122.script'])
215
216 test('T10321', normal, ghci_script, ['T10321.script'])
217
218 test('T10408', normal, run_command,
219     ['$MAKE -s --no-print-directory T10408'])
220 test('T10248', normal, ghci_script, ['T10248.script'])
221 test('T10110', normal, ghci_script, ['T10110.script'])
222 test('T10322', normal, ghci_script, ['T10322.script'])
223 test('T10439', normal, ghci_script, ['T10439.script'])
224 test('T10466', normal, ghci_script, ['T10466.script'])
225 test('T10501', normal, ghci_script, ['T10501.script'])
226 test('T10508', normal, ghci_script, ['T10508.script'])
227 test('T10520', normal, ghci_script, ['T10520.script'])
228 test('T10663', normal, ghci_script, ['T10663.script'])
229 test('T10989',
230     [
231       extra_clean(['dummy.hs', 'dummy.lhs', 'dummy.tags'])
232     ],
233     ghci_script, ['T10989.script'])
234 test('T11098', normal, ghci_script, ['T11098.script'])
235 test('T8316', expect_broken(8316), ghci_script, ['T8316.script'])
236 test('T11252', normal, ghci_script, ['T11252.script'])
237
238 test('T10576a', expect_broken(10576), ghci_script, ['T10576a.script'])
239 test('T10576b', expect_broken(10576), ghci_script, ['T10576b.script'])
240 test('T11051a', normal, ghci_script, ['T11051a.script'])
241 test('T11051b', normal, ghci_script, ['T11051b.script'])