all.T 8.99 KB
Newer Older
1
# Keep optimised tests, so we test coercion optimisation
dterei's avatar
dterei committed
2
setTestOpts(omit_ways(['optasm', 'optllvm', 'hpc']))
3

4 5 6 7 8 9
test('Simple1', normal, compile, [''])
test('Simple2', normal, compile, [''])
test('Simple3', normal, compile, [''])
test('Simple4', normal, compile, [''])
test('Simple5', normal, compile, [''])
test('Simple6', normal, compile, [''])
10
test('Simple7', normal, compile, [''])
11
test('Simple8', normal, compile, [''])
TomSchrijvers's avatar
TomSchrijvers committed
12
test('Simple9', normal, compile, [''])
13
test('Simple10', normal, compile, [''])
14
test('Simple11', normal, compile, [''])
15
test('Simple12', normal, compile, [''])
16
test('Simple13', normal, compile, [''])
17
test('Simple14', normal, compile_fail, [''])
18
test('Simple15', normal, compile, [''])
19
test('Simple16', normal, compile, [''])
simonpj's avatar
simonpj committed
20
test('Simple17', normal, compile, [''])
21
test('Simple18', normal, compile, [''])
22
test('Simple19', normal, compile, [''])
23
test('Simple20', expect_broken(4296), compile, ['-fcontext-stack=10'])
24
test('Simple21', normal, compile, [''])
25 26
test('Simple22', normal, compile, [''])
test('Simple23', normal, compile, [''])
27
test('Simple24', normal, compile, [''])
28

29
test('RelaxedExamples', normal, compile, [''])
30 31
test('NonLinearLHS', normal, compile, [''])

32
test('ind1', normal, compile, [''])
Ian Lynagh's avatar
Ian Lynagh committed
33
test('ind2',
Ian Lynagh's avatar
Ian Lynagh committed
34
     extra_clean(['Ind2_help.hi', 'Ind2_help.o']),
Ian Lynagh's avatar
Ian Lynagh committed
35 36 37
     multimod_compile,
     ['ind2', '-v0'])
test('impexp',
Ian Lynagh's avatar
Ian Lynagh committed
38
     extra_clean(['Exp.hi', 'Exp.o', 'Imp.hi', 'Imp.o']),
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
39
     multimod_compile,
Ian Lynagh's avatar
Ian Lynagh committed
40
     ['Imp', '-w -no-hs-main -c'])
41

Ian Lynagh's avatar
Ian Lynagh committed
42
test('ATLoop',
Ian Lynagh's avatar
Ian Lynagh committed
43
     extra_clean(['ATLoop_help.o','ATLoop_help.hi']),
Ian Lynagh's avatar
Ian Lynagh committed
44
     multimod_compile,
45
     ['ATLoop.hs','-v0'])
46

47
test('Deriving', normal, compile, [''])
48
test('DerivingNewType', normal, compile, [''])
49
test('Records', normal, compile, [''])
50 51 52 53

# The point about this test is that it compiles NewTyCo1 and NewTyCo2
# *separately*
#
Ian Lynagh's avatar
Ian Lynagh committed
54 55 56 57
test('NewTyCo',
     extra_clean(['NewTyCo1.o', 'NewTyCo1.hi', 'NewTyCo2.o', 'NewTyCo2.hi']),
     run_command,
     ['$MAKE -s --no-print-directory NewTyCo'])
58

59
test('Infix', normal, compile, [''])
60
test('Kind', normal, compile, [''])
61

62
test('GADT1', normal, compile, [''])
63
test('GADT2', normal, compile, [''])
64
test('GADT3', normal, compile, [''])
65 66 67
test('GADT4', normal, compile, [''])
test('GADT5', normal, compile, [''])
test('GADT6', normal, compile, [''])
68
test('GADT7', normal, compile, [''])
69
test('GADT8', normal, compile, [''])
70
test('GADT9', normal, compile, [''])
71
test('GADT10', normal, compile, [''])
Ian Lynagh's avatar
Ian Lynagh committed
72
test('GADT11', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
73
test('GADT12', normal, compile, [''])
74
test('GADT13', normal, compile, [''])
75
test('GADT14', normal, compile, [''])
76

77
test('Class1', normal, compile, [''])
78
test('Class2', normal, compile, [''])
79
test('Class3', normal, compile, [''])
80

81
test('Refl', normal, compile, [''])
82
test('Refl2', normal, compile, [''])
83

84 85
test('Rules1', normal, compile, [''])

86
test('Numerals', normal, compile, [''])
87

88 89 90 91 92
test('ColInference', normal, compile, [''])
test('ColInference2', normal, compile, [''])
test('ColInference3', normal, compile, [''])
test('ColInference4', normal, compile, [''])
test('ColInference5', normal, compile, [''])
93 94 95
test('ColInference6', normal, compile, [''])

test('Col', normal, compile, [''])
96
test('Col2', normal, compile, [''])
97 98

test('ColGivenCheck', normal, compile, [''])
99
test('ColGivenCheck2', normal, compile, [''])
100

101
test('InstEqContext', normal, compile, [''])
102
test('InstEqContext2', normal, compile, [''])
103
test('InstEqContext3', normal, compile, [''])
104

105
test('InstContextNorm', normal, compile, [''])
106

107 108
test('GivenCheck', normal, compile, [''])
test('GivenCheckSwap', normal, compile, [''])
109
test('GivenCheckDecomp', normal, compile, [''])
110
test('GivenCheckTop', normal, compile, [''])
111

112
# A very delicate test
113
test('Gentle', normal, compile, [''])
114

Simon Peyton Jones's avatar
Simon Peyton Jones committed
115
test('T1981', normal, compile, [''])
116
test('T2238', normal, compile, [''])
117
test('OversatDecomp', normal, compile, [''])
118

chak@cse.unsw.edu.au.'s avatar
chak@cse.unsw.edu.au. committed
119
test('T2219', normal, compile, [''])
chak@cse.unsw.edu.au.'s avatar
chak@cse.unsw.edu.au. committed
120
test('T2627', normal, compile, [''])
chak@cse.unsw.edu.au.'s avatar
chak@cse.unsw.edu.au. committed
121
test('T2448', normal, compile, [''])
chak@cse.unsw.edu.au.'s avatar
chak@cse.unsw.edu.au. committed
122
test('T2291', normal, compile, [''])
chak@cse.unsw.edu.au.'s avatar
chak@cse.unsw.edu.au. committed
123
test('T2639', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
124
test('T2944', normal, compile, [''])
125 126 127 128 129
test('T3017', normal, compile, ['-ddump-types'])
test('TF_GADT', normal, compile, [''])
test('T2203b', normal, compile, [''])
test('T2767', normal, compile, [''])
test('T3208a', normal, compile, [''])
130
test('T3208b', normal, compile_fail, [''])
131
test('T3418', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
132
test('T3423', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
133
test('T2850', normal, compile, [''])
134
test('T3220', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
135
test('T3590', normal, compile, [''])
136 137
test('CoTest3', normal, compile, [''])
test('Roman1', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
138
test('T4160', normal, compile, [''])
139
test('IndTypesPerf',
140 141 142
     [ # expect_broken(5224),
       # unbroken temporarily: #5227
       extra_clean(['IndTypesPerf.o', 'IndTypesPerf.hi',
143 144
                    'IndTypesPerfMerge.o', 'IndTypesPerfMerge.hi'])
     ] ,
145 146
     run_command,
     ['$MAKE -s --no-print-directory IndTypesPerf'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
147

Simon Peyton Jones's avatar
Simon Peyton Jones committed
148
test('T4120', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
149
test('T3787', reqlib('mtl'), compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
150 151 152 153
test('T3826', normal, compile, [''])
test('T4200', normal, compile, [''])
test('T3851', normal, compile, [''])
test('T4178', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
154 155
test('T3023', normal, compile, [''])
test('T4358', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
156
test('T4356', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
157 158
test('T4484', normal, compile, [''])
test('T4492', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
159
test('T4494', normal, compile, [''])
160
test('DataFamDeriv', normal, compile, [''])
161
test('T1769', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
162
test('T4497', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
163
test('T3484', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
164
test('T3460', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
165
test('T4935', normal, compile, [''])
166 167 168 169 170 171

test('T4981-V1', normal, compile, [''])
test('T4981-V2', normal, compile, [''])
test('T4981-V3', normal, compile, [''])

test('T5002', normal, compile, [''])
172
test('PushedInAsGivens', normal, compile_fail, [''])
173 174 175 176 177 178 179 180 181 182 183

# Superclass equalities
test('T4338', normal, compile, [''])
test('T2715', normal, compile, [''])
test('T2102', normal, compile, [''])
test('ClassEqContext', normal, compile, [''])
test('ClassEqContext2', normal, compile, [''])
test('ClassEqContext3', normal, compile, [''])
test('HO', normal, compile, [''])


Simon Peyton Jones's avatar
Simon Peyton Jones committed
184 185 186 187 188 189
# The point about this test is that it compiles the two T5955
# modules *separately*
test('T5955',
     extra_clean(['T5955.o', 'T5955.hi', 'T5955a.o', 'T5955a.hi']),
     run_command,
     ['$MAKE -s --no-print-directory T5955'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
190

Simon Peyton Jones's avatar
Simon Peyton Jones committed
191 192 193 194 195
test('T6152',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T6152'])

Simon Peyton Jones's avatar
Simon Peyton Jones committed
196
test('T7082', normal, compile, [''])
197 198 199 200

test('Overlap1', normal, compile, [''])
test('Overlap2', normal, compile, [''])
test('Overlap12', normal, compile, [''])
201 202
test('Overlap13', normal, compile, [''])
test('Overlap14', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
203
test('T7156', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
204 205
test('T5591a', normal, compile, [''])
test('T5591b', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
206
test('T7280', normal, compile, [''])
207
test('T7474', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
208
test('T7489', normal, compile, [''])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
209
test('T7585', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
210
test('T7282', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
211
test('T7804', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
212
test('T7837', normal, compile, ['-O -ddump-rule-firings'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
213
test('T4185', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
214

Gabor Greif's avatar
Gabor Greif committed
215
# Caused infinite loop in the compiler
Simon Peyton Jones's avatar
Simon Peyton Jones committed
216 217 218 219
test('T8002',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T8002'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
220 221 222 223 224 225

# Import and export of associated types
test('T8011',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T8011'])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
226

Krzysztof Gogolewski's avatar
Krzysztof Gogolewski committed
227
# Marshalling of associated types
Simon Peyton Jones's avatar
Simon Peyton Jones committed
228 229 230 231 232
test('T8500',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T8500'])

eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
233
test('T8018', normal, compile, [''])
234
test('T8020', normal, compile, [''])
235
test('ClosedFam1', extra_clean(['ClosedFam1.o-boot', 'ClosedFam1.hi-boot', 'ClosedFam1a.o', 'ClosedFam1a.hi']),
236
     multimod_compile, ['ClosedFam1', '-v0'])
237
test('ClosedFam2', extra_clean(['ClosedFam2.o-boot', 'ClosedFam2.hi-boot', 'ClosedFam2a.o', 'ClosedFam2a.hi']),
238
     multimod_compile, ['ClosedFam2', '-v0'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
239
test('T8651', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
240
test('T8889', normal, compile, [''])
241
test('T8913', normal, compile, [''])
242 243
test('T8978', normal, compile, [''])
test('T8979', normal, compile, [''])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
244
test('T9085', normal, compile, [''])
245
test('T9316', normal, compile, [''])
246
test('red-black-delete', normal, compile, [''])
247
test('Sock', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
248
test('T9211', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
249
test('T9747', normal, compile, [''])
250
test('T9582', normal, compile, [''])
251 252 253 254
test('T9840',
     extra_clean(['T9840.hi-boot', 'T9840.o-boot', 'T9840a.hi', 'T9840a.o']),
     multimod_compile,
     ['T9840', '-v0'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
255
test('T9090', normal, compile, [''])
256
test('T10020', normal, compile, [''])
257
test('T10079', normal, compile, [''])
258
test('T10139', normal, compile, [''])
259
test('T10340', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
260
test('T10226', normal, compile, [''])
261
test('T10507', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
262
test('T10634', normal, compile, [''])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
263
test('T10713', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
264
test('T10753', normal, compile, [''])
265
test('T10806', normal, compile_fail, [''])
266
test('T10815', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
267
test('T10931', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
268
test('T11187', normal, compile, [''])
269 270
test('T11067', normal, compile, [''])
test('T10318', normal, compile, [''])
271 272
test('UnusedTyVarWarnings', normal, compile, ['-W'])
test('UnusedTyVarWarningsNamedWCs', normal, compile, ['-W'])
273
test('T11408', normal, compile, [''])