all.T 2.64 KB
Newer Older
1
2
3
4
# Args to compile_and_run are:
#	extra compile flags
#	extra run flags
#	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
13
test('simplrun001', normal, compile_and_run, [''])
test('simplrun002', normal, compile_and_run, [''])
14
test('simplrun003', normal, compile_and_run, [''])
15
test('simplrun004', normal, compile_and_run, [''])
simonpj's avatar
simonpj committed
16
test('simplrun005', normal, compile_and_run, [''])
17

SamB's avatar
SamB committed
18
test('simplrun007', normal, compile_and_run, [''])
simonpj's avatar
simonpj committed
19
test('simplrun008', normal, compile_and_run, [''])
simonpj's avatar
simonpj committed
20
test('simplrun009', normal, compile_and_run, [''])
21
22
test('simplrun010', [extra_run_opts('24 16 8 +RTS -M10m -RTS'),
                     exit_code(251)]
23
                  , compile_and_run, [''])
simonpj's avatar
simonpj committed
24
25
26
27
28

# Really we'd like to run T2486 too, to check that its
# runtime has not gone up, but here I just compile it so that
# the output of -ddump-rules can be compared
test('T2486', normal, compile, [''])
simonpj's avatar
simonpj committed
29
test('T2756', normal, compile_and_run, [''])
simonpj's avatar
simonpj committed
30
test('T3437', extra_run_opts('+RTS -M10m'), compile_and_run, [''])
31

32
test('SeqRule', only_ways(['optasm']), compile_and_run, [''])
simonpj's avatar
simonpj committed
33

34
35
test('runST', normal, compile_and_run, [''])

simonpj's avatar
simonpj committed
36
test('T3403', normal, compile_and_run, ['-package containers'])
simonpj's avatar
simonpj committed
37
test('T3591', normal, compile_and_run, [''])
simonpj's avatar
simonpj committed
38
test('T4814', normal, compile_and_run, [''])
simonpj's avatar
simonpj committed
39
40

# Run this test *without* optimisation too
41
42
test('T3959', only_ways(['normal','optasm']), compile_and_run, [''])
test('T3983', [only_ways(['normal','optasm']),
simonpj's avatar
simonpj committed
43
44
45
               extra_clean(['T3983_Foo.hi','T3983_Foo.o','T3983_Bar.hi','T3983_Bar.o',])], 
              multimod_compile_and_run, 
              ['T3983',''])
Ian Lynagh's avatar
Ian Lynagh committed
46
47
48
test('T3972', extra_clean(['T3972A.hi', 'T3972A.o']),
              compile_and_run,
              [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
49
test('T5315', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
50
test('T5453', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
51
52
test('T5441', extra_clean(['T5441a.o','T5441a.hi']), 
              multimod_compile_and_run, ['T5441',''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
53
test('T5603', normal, compile_and_run, [''])
54
test('T2110', expect_broken(2110), compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
55

Simon Peyton Jones's avatar
Simon Peyton Jones committed
56
# Run these tests *without* optimisation too
Simon Peyton Jones's avatar
Simon Peyton Jones committed
57
test('T5625', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
58
test('T5587', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
59
test('T5915', only_ways(['normal','optasm']), compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
60
test('T5920', only_ways(['normal','optasm']), compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
61
test('T5997', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
62
test('T7101', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
63
64
test('T7924', exit_code(1), compile_and_run, [''])

Joachim Breitner's avatar
Joachim Breitner committed
65
66
# Run this test *without* optimisation too
test('T457', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])