all.T 1.09 KB
Newer Older
1
# Annotations were implemented in GHC 6.11 and not supported in other compilers
batterseapower's avatar
batterseapower committed
2
# These tests are very slow due to their use of package GHC
3
setTestOpts(compose(skip_if_fast, if_compiler_lt('ghc', '6.11', skip)));
batterseapower's avatar
batterseapower committed
4
5
6

runCmd('$MAKE -C ' + in_testdir('') + ' config')

7
8
9
10
# Annotations, like Template Haskell, require runtime evaluation.  In
# order for this to work with profiling, we would have to build the
# program twice and use -osuf p_o (see the TH_splitE5_prof test).  For
# now, just disable the profiling ways.
batterseapower's avatar
batterseapower committed
11
test('annrun01',
12
     [extra_clean(['Annrun01_Help.hi', 'Annrun01_Help.o',
batterseapower's avatar
batterseapower committed
13
                    'annrun01.hi', 'annrun01.o']),
14
      omit_ways(['profc','profasm','profthreaded'])],
batterseapower's avatar
batterseapower committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
      multimod_compile_and_run,
      ['annrun01', '-package ghc']
    )

if default_testopts.cleanup != '':
    runCmd('$MAKE -C ' + in_testdir('') + ' clean')

""""
Helpful things to C+P:

test('', normal, compile_fail, [''])

test('', normal, compile, [''])

test('', extra_clean(['.hi', '.o']), 
     multimod_compile_fail, ['', '-v0'])

test('', extra_clean(['.hi', '.o']), 
     multimod_compile, ['', '-v0'])
34
"""