Change Safe Haskell tests for new -fpackage-trust flag
[ghc.git] / testsuite / tests / safeHaskell / unsafeLibs / all.T
1 # unsafeLib tests are all about testing that the correct
2 # standard library modules have been marked as unsafe.
3 # e.g no importing unsafePerformIO
4
5 # Just do the normal way, SafeHaskell is all in the frontend
6 def f( opts ):
7   opts.only_ways = ['normal']
8
9 setTestOpts(f)
10
11 test('Dep01', normal, compile, [''])
12 test('Dep02', normal, compile, [''])
13 test('Dep03', normal, compile, [''])
14 test('Dep04', normal, compile, [''])
15 test('Dep05', normal, compile, [''])
16 test('Dep06', normal, compile, [''])
17 test('Dep07', normal, compile, [''])
18 test('Dep08', normal, compile, [''])
19 test('Dep09', normal, compile, [''])
20 test('Dep10', normal, compile, [''])
21
22 test('BadImport01', normal, compile_fail, [''])
23 test('BadImport02',
24      extra_clean(['BadImport02_A.o', 'BadImport02_A.hi']),
25      multimod_compile_and_run,
26      ['BadImport02', ''])
27 test('BadImport03',
28      extra_clean(['BadImport03_A.o', 'BadImport03_A.hi']),
29      multimod_compile_fail,
30      ['BadImport03', ''])