all.T 1.79 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 7
# Only compile with optimisation
def f( opts ):
8
  opts.only_ways = ['optc','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, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
16
test('simplrun005', normal, compile_and_run, [''])
17 18 19 20

test('simplrun006', expect_fail, compile_and_run, [''])
  # This is a CSE test

SamB's avatar
SamB committed
21
test('simplrun007', normal, compile_and_run, [''])
22
test('simplrun008', normal, compile_and_run, [''])
23
test('simplrun009', normal, compile_and_run, [''])
24 25 26
test('simplrun010', composes([extra_run_opts('24 16 8'),
                              exit_code(1)])
                  , compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
27 28 29 30 31

# 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, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
32
test('T2756', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
33
test('T3437', extra_run_opts('+RTS -M10m'), compile_and_run, [''])
34 35

test('SeqRule', only_ways(['optc','optasm']), compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
36 37

test('T3403', normal, compile_and_run, ['-package containers'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
38
test('T3591', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
39
test('T4814', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
40 41

# Run this test *without* optimisation too
Simon Peyton Jones's avatar
Simon Peyton Jones committed
42
test('T3959', only_ways(['normal','optc','optasm']), compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
43 44 45 46
test('T3983', [only_ways(['normal','optc','optasm']),
               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
47 48 49
test('T3972', extra_clean(['T3972A.hi', 'T3972A.o']),
              compile_and_run,
              [''])