Merge ../../HEAD/testsuite
[ghc.git] / testsuite / tests / plugins / all.T
1 def f(opts):
2   if (ghc_with_interpreter == 0):
3         opts.skip = 1
4
5 setTestOpts(f)
6 setTestOpts(compose(alone, if_compiler_lt('ghc', '7.1', skip)))
7
8 test('plugins01', normal, run_command, ['$MAKE -s --no-print-directory plugins01'])
9 test('plugins02', normal, compile_fail, ['-package-db simple-plugin/local.package.conf -fplugin Simple.BadlyTypedPlugin -package simple-plugin'])
10 test('plugins03', normal, compile_fail, ['-package-db simple-plugin/local.package.conf -fplugin Simple.NonExistantPlugin -package simple-plugin'])
11
12 test('plugins04', extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']), multimod_compile_fail, ['plugins04', '-package ghc -fplugin HomePackagePlugin'])
13 test('plugins05',
14      [ extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']),
15        expect_fail_for(['dyn'] + prof_ways) ],
16      multimod_compile_and_run, ['plugins05', '-package ghc'])
17
18 test('plugins06',
19      [ extra_clean(['LinkerTicklingPlugin.hi', 'LinkerTicklingPlugin.o']),
20        expect_fail_for(['dyn'] + prof_ways) ],
21      multimod_compile_and_run, ['plugins06', '-package ghc'])
22
23 if default_testopts.cleanup != '':
24     runCmd('$MAKE -C ' + in_testdir('') + ' clean')