ea285dcf93de0749e06d10afc26abacc7a7f1d13
[ghc.git] / testsuite / tests / plugins / all.T
1 setTestOpts(req_interp)
2
3 test('plugins01',
4      [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins01 TOP={top}')],
5      run_command, ['$MAKE -s --no-print-directory plugins01'])
6
7 test('plugins02',
8      [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins02 TOP={top}')],
9      compile_fail,
10      ['-package-db simple-plugin/pkg.plugins02/local.package.conf -fplugin Simple.BadlyTypedPlugin -package simple-plugin ' + config.plugin_way_flags])
11
12 test('plugins03',
13      [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins03 TOP={top}')],
14      compile_fail,
15      ['-package-db simple-plugin/pkg.plugins03/local.package.conf -fplugin Simple.NonExistentPlugin -package simple-plugin'])
16
17 test('plugins04', [], multimod_compile_fail,
18      ['plugins04', '-package ghc -fplugin HomePackagePlugin'])
19
20 test('plugins05', [only_ways([config.ghc_plugin_way])],
21      multimod_compile_and_run, ['plugins05', '-package ghc'])
22
23 test('plugins06',
24      [unless(have_dynamic(), skip), only_ways([config.ghc_plugin_way])],
25      multimod_compile_and_run, ['plugins06', '-package ghc'])
26
27 test('plugins07',
28      [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.plugins07 TOP={top}')],
29      run_command, ['$MAKE -s --no-print-directory plugins07'])
30
31 test('T10420',
32      [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T10420 TOP={top}')],
33      run_command, ['$MAKE -s --no-print-directory T10420'])
34
35 test('T10294',
36      [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294 TOP={top}')],
37      run_command, ['$MAKE -s --no-print-directory T10294'])
38
39 test('T10294a',
40      [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294a TOP={top}')],
41      run_command, ['$MAKE -s --no-print-directory T10294a'])
42
43 test('frontend01', [unless(have_dynamic(), expect_broken(10301))], run_command,
44      ['$MAKE -s --no-print-directory frontend01'])
45
46 test('T11244',
47      [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T11244 TOP={top}')],
48      run_command, ['$MAKE -s --no-print-directory T11244'])
49
50 test('T12567a',
51      [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.T12567a TOP={top}')],
52      run_command, ['$MAKE -s --no-print-directory T12567a'])