summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/check/pkg01/all.T
blob: bdbdc4c56da061bd8c0a864a69fbe634ea2579dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Just do the normal way, SafeHaskell is all in the frontend
def f( opts ):
  opts.only_ways = ['normal']

setTestOpts(f)

if config.have_profiling:
    prof = '--enable-library-profiling'
else:
    prof = ''

test('safePkg01',
     [normal, alone],
     run_command, 
     ['$MAKE -s --no-print-directory safePkg01 PROF=' + prof])

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

test('ImpSafeOnly01', [normal, alone], compile, ['-package-conf local.db -trust base'])

test('ImpSafeOnly02', [normal, alone], compile, ['-package-conf local.db -trust base -trust safePkg01'])

test('ImpSafeOnly03', [normal, alone], compile_fail, ['-package-conf local.db -trust base'])