c9be7a48d77c334c7adbb41df2c02e38429c5745
[ghc.git] / testsuite / tests / simplCore / should_run / all.T
1 # Args to compile_and_run are:
2 #       extra compile flags
3 #       extra run flags
4 #       expected process return value, if not zero
5
6 # Only compile with optimisation
7 def f( name, opts ):
8   opts.only_ways = ['optasm']
9
10 setTestOpts(f)
11
12 test('simplrun001', normal, compile_and_run, [''])
13 test('simplrun002', normal, compile_and_run, [''])
14 test('simplrun003', normal, compile_and_run, [''])
15 test('simplrun004', normal, compile_and_run, [''])
16 test('simplrun005', normal, compile_and_run, [''])
17
18 test('simplrun007', normal, compile_and_run, [''])
19 test('simplrun008', normal, compile_and_run, [''])
20 test('simplrun009', normal, compile_and_run, [''])
21 test('simplrun010', [extra_run_opts('24 16 8 +RTS -M10m -RTS'),
22                      exit_code(251)]
23                   , compile_and_run, [''])
24
25 # Really we'd like to run T2486 too, to check that its
26 # runtime has not gone up, but here I just compile it so that
27 # the output of -ddump-rules can be compared
28 test('T2486', normal, compile, [''])
29 test('T2756', normal, compile_and_run, [''])
30 test('T3437', extra_run_opts('+RTS -M10m'), compile_and_run, [''])
31
32 test('SeqRule', only_ways(['optasm']), compile_and_run, [''])
33
34 test('T3403', normal, compile_and_run, ['-package containers'])
35 test('T3591', normal, compile_and_run, [''])
36 test('T4814', normal, compile_and_run, [''])
37
38 # Run this test *without* optimisation too
39 test('T3959', only_ways(['normal','optasm']), compile_and_run, [''])
40 test('T3983', [only_ways(['normal','optasm']),
41                extra_clean(['T3983_Foo.hi','T3983_Foo.o','T3983_Bar.hi','T3983_Bar.o',])], 
42               multimod_compile_and_run, 
43               ['T3983',''])
44 test('T3972', extra_clean(['T3972A.hi', 'T3972A.o']),
45               compile_and_run,
46               [''])
47 test('T5315', normal, compile_and_run, [''])
48 test('T5453', normal, compile_and_run, [''])
49 test('T5441', extra_clean(['T5441a.o','T5441a.hi']), 
50               multimod_compile_and_run, ['T5441',''])
51 test('T5603', normal, compile_and_run, [''])
52
53 # Run these tests *without* optimisation too
54 test('T5625', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])
55 test('T5587', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])
56 test('T5915', only_ways(['normal','optasm']), compile_and_run, [''])
57 test('T5920', only_ways(['normal','optasm']), compile_and_run, [''])
58 test('T5997', normal, compile_and_run, [''])
59 test('T7101', normal, compile_and_run, [''])
60 test('T7924', exit_code(1), compile_and_run, [''])
61
62 # Run this test *without* optimisation too
63 test('T457', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])