all.T 1.24 KB
Newer Older
patrickdoc's avatar
patrickdoc committed
1
test('heap_all',
2
     [when(have_profiling(), extra_ways(['prof'])),
patrickdoc's avatar
patrickdoc committed
3 4
      # These ways produce slightly different heap representations.
      # Currently we don't test them.
5 6
      omit_ways(['ghci', 'hpc',
                 'nonmoving', 'nonmoving_thr', 'nonmoving_thr_ghc']),
7 8 9
      # The debug RTS initializes some fields with 0xaa and so
      # this test spuriously fails.
      when(compiler_debugged(), skip)
patrickdoc's avatar
patrickdoc committed
10 11
     ],
     compile_and_run, [''])
12

13 14 15 16 17 18 19 20
test('heap_weak',
     [when(have_profiling(), extra_ways(['prof'])),
      # These ways produce slightly different heap representations.
      # Currently we don't test them.
      omit_ways(['ghci', 'hpc'])
     ],
     compile_and_run, [''])

21
# Test everything except FUNs and PAPs in all ways.
Ben Gamari's avatar
Ben Gamari committed
22
test('closure_size',
23 24
     [extra_files(['ClosureSizeUtils.hs']),
      when(have_profiling(), extra_ways(['prof'])),
25 26 27 28
      # These ways produce slightly different heap representations.
      # Currently we don't test them.
      omit_ways(['hpc'])
     ],
Ben Gamari's avatar
Ben Gamari committed
29
     compile_and_run, [''])
30

31 32 33 34 35 36 37 38
# Test PAPs and FUNs only in normal way (e.g. with -O0)
# since otherwise the simplifier interferes.
test('closure_size_noopt',
     [extra_files(['ClosureSizeUtils.hs']),
      only_ways(['normal'])
     ],
     compile_and_run, [''])