testsuite: Use makefile_test
[ghc.git] / testsuite / tests / driver / all.T
1 test('driver011', [extra_files(['A011.hs'])], makefile_test, ['test011'])
2
3 test('driver012', [extra_files(['A012.hs'])], makefile_test, ['test012'])
4
5 test('driver013', [extra_files(['A013.hs'])], makefile_test, ['test013'])
6
7 test('driver014', [extra_files(['A014.hs'])], makefile_test, ['test014'])
8
9 test('driver015', [extra_files(['A015.hs'])], makefile_test, ['test015'])
10
11 test('driver016', [extra_files(['F016.hs'])], makefile_test, ['test016'])
12
13 test('driver017', [extra_files(['F017.hs'])], makefile_test, ['test017'])
14
15 test('driver018', [extra_files(['F018.hs'])], makefile_test, ['test018'])
16
17 test('driver018a', [extra_files(['F018a.hs'])], makefile_test, ['test018a'])
18
19 test('driver019', [extra_files(['F019.hs'])], makefile_test, ['test019'])
20
21 test('driver021', [extra_files(['B021/'])], makefile_test, ['test021'])
22
23 test('driver022', [extra_files(['B022/'])], makefile_test, ['test022'])
24
25 test('driver023', [extra_files(['B023/'])], makefile_test, ['test023'])
26
27 test('driver024', [extra_files(['B024/'])], makefile_test, ['test024'])
28
29 test('driver024a', [], makefile_test, ['test024a'])
30
31 test('driver025', [extra_files(['B025/'])], makefile_test, ['test025'])
32
33 test('driver026', [extra_files(['d026/'])], makefile_test, ['test026'])
34
35 test('driver027', [extra_files(['B027/'])], makefile_test, ['test027'])
36
37 test('driver028', [extra_files(['B028/'])], makefile_test, ['test028'])
38
39 test('driver031', [extra_files(['A031.hs'])], makefile_test, ['test031'])
40
41 test('driver032', [extra_files(['A032.hs'])], makefile_test, ['test032'])
42
43 test('driver033', [extra_files(['A033.hs'])], makefile_test, ['test033'])
44
45 test('driver034', [extra_files(['F034.hs'])], makefile_test, ['test034'])
46
47 test('driver035', [extra_files(['F035.hs'])], makefile_test, ['test035'])
48
49 test('driver041', [extra_files(['B041/'])], makefile_test, ['test041'])
50
51 test('driver042', [extra_files(['B042/'])], makefile_test, ['test042'])
52
53 test('driver042stub', [extra_files(['B042stub/'])], makefile_test, ['test042stub'])
54
55 test('driver043', [extra_files(['B043/'])], makefile_test, ['test043'])
56
57 test('driver044', [extra_files(['B044/'])], makefile_test, ['test044'])
58
59 test('driver045', [extra_files(['B045/'])], makefile_test, ['test045'])
60
61 test('driver051', [extra_files(['d051_1/', 'd051_2/'])], makefile_test, ['test051'])
62
63 test('driver052', [extra_files(['d052_1/', 'd052_2/'])], makefile_test, ['test052'])
64
65 test('driver053', [extra_files(['d053_1/', 'd053_2/'])], makefile_test, ['test053'])
66
67 test('driver061a', [extra_files(['A061a.hs'])], makefile_test, ['test061a'])
68
69 test('driver061b', [extra_files(['A061b.hs'])], makefile_test, ['test061b'])
70
71
72 test('driver062a', [], makefile_test, ['test062a'])
73 test('driver062b', [], makefile_test, ['test062b'])
74 test('driver062c', [], makefile_test, ['test062c'])
75 test('driver062d', [], makefile_test, ['test062d'])
76 test('driver062e', [], makefile_test, ['test062e'])
77
78 test('driver063', [extra_files(['D063.hs'])], makefile_test, ['test063'])
79
80 test('driver064', [extra_files(['A064.hs'])], makefile_test, ['test064'])
81
82 test('driver065', [extra_files(['A065.hs'])], makefile_test, ['test065'])
83
84 test('driver066', [extra_files(['A066.hs'])], makefile_test, ['test066'])
85
86 test('driver067', [extra_files(['A067.hs'])], makefile_test, ['test067'])
87
88 test('driver070', [extra_files(['A070.hs'])], makefile_test, ['test070'])
89
90 test('driver071', [extra_files(['A071.hs'])], makefile_test, ['test071'])
91
92 test('driver081a', [], makefile_test, ['test081a'])
93
94 test('driver081b', [], makefile_test, ['test081b'])
95
96 test('driver100', [extra_files(['overlap/'])], makefile_test, ['test100'])
97
98 test('driver200', [extra_files(['A200.hs', 'B200/', 'D200.hs'])], makefile_test, ['test200'])
99
100 test('T2566', normalise_fun(normalise_errmsg), makefile_test, [])
101
102 test('pragma001', normal, compile, [''])
103 test('pragma002', normal, compile, [''])
104
105 test('T2499', normal, compile_fail, [''])
106
107 test('mode001', normal, makefile_test, [])
108
109 if config.os == 'mingw32':
110      only_windows = normal
111 else:
112      only_windows = skip
113
114 test('shared001', [extra_files(['Shared001.hs']),
115                    only_windows],
116      makefile_test, ['shared001'])
117
118 if config.os == 'darwin':
119   only_darwin = normal
120 else:
121   only_darwin = skip
122
123 test('static001', [extra_files(['Static001.hs']),
124                    only_darwin, expect_broken(8127)],
125      makefile_test, ['static001'])
126
127 test('dynHelloWorld',
128      only_ways(['dyn']),
129      compile_and_run,
130      [''])
131
132 test('T5313',
133      [ when(arch('powerpc64') or arch('powerpc64le'), expect_broken(11259)),
134        extra_run_opts('"' + config.libdir + '"')],
135      compile_and_run,
136      ['-package ghc'])
137
138 test('T2464', normal, compile, [''])
139 test('T3674', [], makefile_test, [])
140
141 test('rtsopts001', [extra_files(['rtsOpts.hs'])], makefile_test, [])
142 test('rtsopts002', normal, makefile_test, [])
143
144 test('withRtsOpts', [], makefile_test, [])
145 test('T3389', normal, compile_and_run, [''])
146 test('T3364', normalise_fun(normalise_errmsg), makefile_test, [])
147
148 # T4437: A test to ensure that Cabal's language extension list remains
149 # consistent with those known by GHC.
150 #
151 # See Note [Adding a language extension] in DynFlags.hs for details.
152 test('T4437', only_ways(['normal']), compile_and_run, ['-package ghc'])
153
154 test('werror', normal, compile_fail, [''])
155
156 test('T706', [req_interp], makefile_test, [])
157 test('spacesInArgs',
158      extra_run_opts('"a   b"   "c   d"'),
159      compile_and_run,
160      [''])
161
162 fobject_code = when(doing_ghci(), extra_hc_opts('-fobject-code'))
163
164 test( 'T4114a', fobject_code, compile_and_run, ['-cpp'])
165 test( 'T4114b', fobject_code, compile_and_run, ['-no-keep-hi-files'])
166 test( 'T4114c', [fobject_code, expect_broken_for(4114, ['ghci'])], compile_and_run, ['-no-keep-o-files'])
167 test( 'T4114d', [fobject_code, expect_broken_for(4114, ['ghci'])], compile_and_run,
168      ['-hisuf .myhi -osuf .myo -no-keep-o-files'])
169
170 test('T5584', [], makefile_test, [])
171 test('T5198', [], makefile_test, [])
172 test('T7060', [], makefile_test, [])
173 test('T7130', normal, compile_fail, ['-fflul-laziness'])
174 test('T7563', when(unregisterised(), skip), makefile_test, [])
175 test('T6037',
176      # The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
177      [when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail)],
178      makefile_test, [])
179 test('T2507',
180      # The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
181      [when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail)],
182      makefile_test, [])
183 test('T8959a',
184      # The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
185      [when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail)],
186      makefile_test, [])
187
188 # Requires readelf
189 test('T703', unless(opsys('linux'), skip), makefile_test, [])
190 test('T2182', normal, makefile_test, [])
191 test('T8101', normal, compile, ['-Wall -fno-code'])
192 test('T8101b', normal, multimod_compile,
193      ['T8101b', '-Wall -fno-code'])
194 test('T10600', normal, compile_fail, ['-fno-code'])
195
196 # Should not panic when compiling cmm file together with -outputdir.
197 test('T9050', cmm_src, compile, ['-outputdir=.'])
198
199 test('write_interface_oneshot', [extra_files(['A011.hs'])], makefile_test, [])
200
201 test('write_interface_make', [extra_files(['A011.hs'])], makefile_test, [])
202
203 test('T9776', normal, compile_fail, ['-drule-check'])
204
205 test('T9938', [], makefile_test, [])
206
207 test('T9938B', [], makefile_test, [])
208
209 test('T9963', exit_code(1), run_command,
210      ['{compiler} --interactive -ignore-dot-ghci --print-libdir'])
211
212 test('T10219', normal, run_command,
213      # `-x hspp` in make mode should work.
214      # Note: need to specify `-x hspp` before the filename.
215      ['{compiler} --make -x hspp T10219.hspp -fno-code -v0'])
216
217 test('T10220', normal, run_command,
218      # Preprocessed T10220.hspp imports T10220B. Should work in --make mode.
219      ['{compiler} --make T10220.hspp -fno-code -v0'])
220
221 test('T10182', [], makefile_test, [])
222
223 test('T10869', [], makefile_test, [])
224
225 test('T365',
226      [pre_cmd('touch test_preprocessor.txt'), unless(opsys('mingw32'), skip)],
227      compile_fail, [''])
228
229 test('T9360a', normal, run_command, ['{compiler} --interactive -e "" -ignore-dot-ghci'])
230 test('T9360b', normal, run_command, ['{compiler} -e "" --interactive -ignore-dot-ghci'])
231
232 test('T10970', normal, compile_and_run, [''])
233 test('T4931', normal, compile_and_run, [''])
234 test('T11182', normal, compile_and_run, [''])
235 test('T11381', normal, compile_fail, [''])
236 test('T11429a', normal, compile, ['-Wunrecognised-warning-flags -Wfoobar'])
237 test('T11429b', normal, compile, ['-Wno-unrecognised-warning-flags -Wfoobar'])
238 test('T11429c', normal, compile_fail, ['-Wunrecognised-warning-flags -Werror -Wfoobar'])
239 test('T11763', normal, compile_and_run, ['-fno-version-macros'])
240
241 test('T10320', [], makefile_test, [])
242
243 test('T12056a', normal, compile, ['-w -Wfoo -Wbar'])
244 test('T12056b', normal, compile, ['-w -XOverlappingInstances -Wfoo -Wunrecognised-warning-flags -Wbar'])
245 test('T12056c', normal, compile,
246      ['-w -Wdeprecated-flags -XOverlappingInstances -Wfoo -Wunrecognised-warning-flags -Wbar'])
247
248 test('T12135', [expect_broken(12135)], makefile_test, [])
249
250 test('T12192', normal, run_command, ['mkdir foo && (cd foo && {compiler} -v0 ../T12192)'])
251
252 test('T10923', [], makefile_test, [])
253
254 test('T12625', normal, compile_fail, ['-I'])
255
256 test('T12752pass', normal, compile, ['-DSHOULD_PASS=1 -Wcpp-undef'])
257
258 test('T12955', normal, makefile_test, [])
259
260 test('T12971', ignore_stdout, makefile_test, [])
261 test('json', normal, compile_fail, ['-ddump-json'])
262 test('json2', normal, compile, ['-ddump-types -ddump-json'])
263 test('T13604', [], makefile_test, [])
264 test('T13604a', [], makefile_test, [])
265 # omitting hpc and profasm because they affect the
266 # inlining and unfoldings
267 test('inline-check', omit_ways(['hpc', 'profasm'])
268                    , compile
269                    , ['-dinline-check foo -O -ddebug-output'])
270
271 test('T14452', [], makefile_test, [])
272 test('T15396', normal, compile_and_run, ['-package ghc'])