summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/unsafeLibs/all.T
blob: c43fe0d191f302c7d66e2f62cf1cbd6a8f7883d2 (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
25
26
27
28
29
30
# unsafeLib tests are all about testing that the correct
# standard library modules have been marked as unsafe.
# e.g no importing unsafePerformIO

# Just do the normal way, SafeHaskell is all in the frontend
def f( opts ):
  opts.only_ways = ['normal']

setTestOpts(f)

test('Dep01', normal, compile, [''])
test('Dep02', normal, compile, [''])
test('Dep03', normal, compile, [''])
test('Dep04', normal, compile, [''])
test('Dep05', normal, compile, [''])
test('Dep06', normal, compile, [''])
test('Dep07', normal, compile, [''])
test('Dep08', normal, compile, [''])
test('Dep09', normal, compile, [''])
test('Dep10', normal, compile, [''])

test('BadImport01', normal, compile_fail, [''])
test('BadImport02',
     extra_clean(['BadImport02_A.o', 'BadImport02_A.hi']),
     multimod_compile_and_run,
     ['BadImport02', ''])
test('BadImport03',
     extra_clean(['BadImport03_A.o', 'BadImport03_A.hi']),
     multimod_compile_fail,
     ['BadImport03', ''])