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

3 4 5
def normaliseTransformersPackageKey(str):
    return re.sub('trans_[A-Za-z0-9]+', 'trans_<HASH>', str)

6
setTestOpts(when(compiler_profiled(), skip))
7

pcapriotti's avatar
pcapriotti committed
8 9 10 11 12 13 14 15 16
test('ghci001', combined_output, ghci_script, ['ghci001.script'])
test('ghci002', combined_output, ghci_script, ['ghci002.script'])
test('ghci003', combined_output, ghci_script, ['ghci003.script'])
test('ghci004', combined_output, ghci_script, ['ghci004.script'])
test('ghci005', combined_output, ghci_script, ['ghci005.script'])
test('ghci006', combined_output, ghci_script, ['ghci006.script'])
test('ghci007', combined_output, ghci_script, ['ghci007.script'])
test('ghci008', combined_output, ghci_script, ['ghci008.script'])
test('ghci009', combined_output, ghci_script, ['ghci009.script'])
17

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

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

# Ignore output from ghci015, the output is non-deterministic
# (has occasional "thread blocked indefinitely" exceptions), and this
# is part of the test.
test('ghci015', ignore_output, ghci_script, ['ghci015.script'])

Ian Lynagh's avatar
Ian Lynagh committed
33
test('ghci016', expect_broken(552), ghci_script, ['ghci016.script'])
34
test('ghci017', [reqlib('haskell98'), extra_run_opts('-hide-package haskell98')], ghci_script, ['ghci017.script'])
35
test('ghci018', normal, ghci_script, ['ghci018.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
36
test('ghci019', normal, ghci_script, ['ghci019.script'])
Ian Lynagh's avatar
Ian Lynagh committed
37
test('ghci020', normal, ghci_script, ['ghci020.script'])
Ian Lynagh's avatar
Ian Lynagh committed
38
test('ghci021', normal, ghci_script, ['ghci021.script'])
Simon Marlow's avatar
Simon Marlow committed
39
test('ghci022', normal, ghci_script, ['ghci022.script'])
Simon Marlow's avatar
Simon Marlow committed
40

41
test('ghci023', normal, ghci_script, ['ghci023.script'])
Ian Lynagh's avatar
Ian Lynagh committed
42
test('ghci024',
43
     when(fast(), skip),
Ian Lynagh's avatar
Ian Lynagh committed
44 45
     run_command,
     ['$MAKE -s --no-print-directory ghci024'])
46 47 48 49
test('T9367',
     when(fast() or config.os != 'mingw32', skip),
     run_command,
     ['$MAKE -s --no-print-directory T9367'])
50
test('ghci025', normal, ghci_script, ['ghci025.script'])
51
test('ghci026', normal, ghci_script, ['ghci026.script'])
52

53
test('ghci027', extra_clean(['ghci027.hs']), ghci_script, ['ghci027.script'])
Simon Marlow's avatar
Simon Marlow committed
54
test('ghci028', normal, ghci_script, ['ghci028.script'])
Ian Lynagh's avatar
Ian Lynagh committed
55
test('ghci029', normal, ghci_script, ['ghci029.script'])
56
test('ghci030', normal, ghci_script, ['ghci030.script'])
57
test('ghci031', normal, ghci_script, ['ghci031.script'])
58
test('ghci032', normal, ghci_script, ['ghci032.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
59
test('ghci033', normal, ghci_script, ['ghci033.script'])
60
test('ghci034', normal, ghci_script, ['ghci034.script'])
Ian Lynagh's avatar
Ian Lynagh committed
61
test('ghci035', normal, ghci_script, ['ghci035.script'])
SamAnklesaria's avatar
SamAnklesaria committed
62
test('ghci036', normal, ghci_script, ['ghci036.script'])
Ian Lynagh's avatar
Ian Lynagh committed
63
test('ghci037', req_interp, run_command, ['$MAKE -s --no-print-directory ghci037'])
Simon Marlow's avatar
Simon Marlow committed
64
test('ghci038', normal, ghci_script, ['ghci038.script'])
65 66 67 68 69 70
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'])
71
test('ghci044a', normal, ghci_script, ['ghci044a.script'])
72 73 74 75 76 77 78 79 80 81
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
82
test('ghci055', combined_output, ghci_script, ['ghci055.script'])
83 84 85

test('ghci056',
     [
ian@well-typed.com's avatar
ian@well-typed.com committed
86
       pre_cmd('$MAKE -s --no-print-directory ghci056_setup'),
87
       extra_run_opts('ghci056_c.o'),
88
       extra_clean(['ghci056_c.o'])
89 90 91
     ],
     ghci_script, ['ghci056.script'])

92
test('ghci057', normal, ghci_script_without_flag('-fno-warn-tabs'), ['ghci057.script'])
Simon Marlow's avatar
Simon Marlow committed
93

94
test('T2452', normal, ghci_script, ['T2452.script'])
simonpj's avatar
simonpj committed
95
test('T2766', normal, ghci_script, ['T2766.script'])
Simon Marlow's avatar
Simon Marlow committed
96

97
test('T1914',
Ian Lynagh's avatar
Ian Lynagh committed
98 99
     extra_clean(['T1914A.hs', 'T1914B.hs']),
     ghci_script,
100
     ['T1914.script'])
Ian Lynagh's avatar
Ian Lynagh committed
101

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

test('T6007', normal, ghci_script, ['T6007.script'])
pcapriotti's avatar
pcapriotti committed
143
test('T6091', normal, ghci_script, ['T6091.script'])
144 145 146 147 148 149 150
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
151
test('T6105', normal, ghci_script, ['T6105.script'])
parcs's avatar
parcs committed
152
test('T7117', normal, ghci_script, ['T7117.script'])
153
test('ghci058',
154 155
     [extra_clean(['Ghci058.hs', 'Ghci058.hi', 'Ghci058.o']),
      cmd_prefix('ghciWayFlags=' + config.ghci_way_flags)],
156 157
     ghci_script,
     ['ghci058.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
158
test('T7587', normal, ghci_script, ['T7587.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
159
test('T7688', normal, ghci_script, ['T7688.script'])
160 161
test('T7627', normal, ghci_script, ['T7627.script'])
test('T7627b', normal, ghci_script, ['T7627b.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
162
test('T7586', normal, ghci_script, ['T7586.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
163
test('T4175', normal, ghci_script, ['T4175.script'])
164
test('T7730', combined_output, ghci_script, ['T7730.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
165
test('T7872', normal, ghci_script, ['T7872.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
166
test('T7873', normal, ghci_script, ['T7873.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
167
test('T7939', normal, ghci_script, ['T7939.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
168
test('T7894', normal, ghci_script, ['T7894.script'])
169
test('T8116', normal, ghci_script, ['T8116.script'])
170
test('T8113', normal, ghci_script, ['T8113.script'])
171
test('T8172', normal, ghci_script, ['T8172.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
172
test('T8215', normal, ghci_script, ['T8215.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
173
test('T8357', normal, ghci_script, ['T8357.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
174
test('T8383', normal, ghci_script, ['T8383.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
175
test('T8469', normal, ghci_script, ['T8469.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
176 177
test('T8485', normal, ghci_script, ['T8485.script'])
test('T8535', normal, ghci_script, ['T8535.script'])
178
test('T8639', normal, ghci_script, ['T8639.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
179
test('T8640', normal, ghci_script, ['T8640.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
180
test('T8579', normal, ghci_script, ['T8579.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
181
test('T8649', normal, ghci_script, ['T8649.script'])
182
test('T8674', normal, ghci_script, ['T8674.script'])
183
test('T8696', normal, ghci_script, ['T8696.script'])
cactus's avatar
cactus committed
184
test('T8776', normal, ghci_script, ['T8776.script'])
185
test('ghci059', normal, ghci_script, ['ghci059.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
186
test('T8831', normal, ghci_script, ['T8831.script'])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
187
test('T8917', normal, ghci_script, ['T8917.script'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
188
test('T8931', normal, ghci_script, ['T8931.script'])
189
test('T8959', normal, ghci_script, ['T8959.script'])
190
test('T8959b', normal, ghci_script, ['T8959b.script'])
191
test('T9181', normal, ghci_script, ['T9181.script'])
192
test('T9086b', normal, ghci_script, ['T9086b.script'])
193
test('T9140', combined_output, ghci_script, ['T9140.script'])
194
test('T9658', normal, ghci_script, ['T9658.script'])
195
test('T9293', normal, ghci_script_without_flag('-fno-warn-tabs'), ['T9293.script'])
196 197 198 199 200
test('T9762',
 [ unless(have_dynamic(),skip)
 , pre_cmd('$MAKE -s --no-print-directory T9762_prep')
 ],
 ghci_script, ['T9762.script'])
201
test('T9881', normal, ghci_script, ['T9881.script'])
202 203 204 205 206
test('T9878',
    [extra_clean(['T9878.hi','T9878.o'])],
    ghci_script, ['T9878.script'])
test('T9878b',
    [ extra_run_opts('-fobject-code'),
207
      extra_clean(['T9878b.hi','T9878b.o'])],
208
    ghci_script, ['T9878b.script'])
209
test('T10122', normal, ghci_script, ['T10122.script'])
210 211
test('T10322', when(opsys('darwin'), expect_broken(10322)),
    ghci_script, ['T10322.script'])
212

213
test('T10321', normal, ghci_script, ['T10321.script'])
214 215 216 217 218

test('T10408A', normal, run_command,
    ['$MAKE -s --no-print-directory T10408A'])
test('T10408B', normal, run_command,
    ['$MAKE -s --no-print-directory T10408B'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
219
test('T10248', normal, ghci_script, ['T10248.script'])