summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/check/pkg01/all.T
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/check/pkg01/all.T')
-rw-r--r--testsuite/tests/safeHaskell/check/pkg01/all.T24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/check/pkg01/all.T b/testsuite/tests/safeHaskell/check/pkg01/all.T
new file mode 100644
index 0000000000..bdbdc4c56d
--- /dev/null
+++ b/testsuite/tests/safeHaskell/check/pkg01/all.T
@@ -0,0 +1,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'])
+