Testsuite: pass '-s --no-print-directory' to MAKE
[ghc.git] / testsuite / tests / plugins / all.T
1 def f(name, opts):
2     if (ghc_with_interpreter == 0):
3         opts.skip = 1
4
5 setTestOpts(f)
6
7 test('plugins01',
8      [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins01'),
9       clean_cmd('$MAKE -s --no-print-directory -C simple-plugin clean.plugins01')],
10      run_command,
11      ['$MAKE -s --no-print-directory plugins01'])
12 test('plugins02',
13      [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins02'),
14       clean_cmd('$MAKE -s --no-print-directory -C simple-plugin clean.plugins02')],
15      compile_fail,
16      ['-package-db simple-plugin/pkg.plugins02/local.package.conf -fplugin Simple.BadlyTypedPlugin -package simple-plugin ' + config.ghci_way_flags])
17
18 test('plugins03',
19      [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins03'),
20       clean_cmd('$MAKE -s --no-print-directory -C simple-plugin clean.plugins03')],
21      compile_fail,
22      ['-package-db simple-plugin/pkg.plugins03/local.package.conf -fplugin Simple.NonExistantPlugin -package simple-plugin'])
23
24 test('plugins04',
25      extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']),
26      multimod_compile_fail,
27      ['plugins04', '-package ghc -fplugin HomePackagePlugin'])
28
29 test('plugins05',
30      [ extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']),
31        only_ways([config.ghc_plugin_way]) ],
32      multimod_compile_and_run, ['plugins05', '-package ghc'])
33
34 test('plugins06',
35      [ extra_clean(['LinkerTicklingPlugin.hi', 'LinkerTicklingPlugin.o']),
36        unless(have_dynamic(),skip),
37        only_ways([config.ghc_plugin_way]) ],
38      multimod_compile_and_run, ['plugins06', '-package ghc'])
39
40 test('plugins07',
41      [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.plugins07'),
42       clean_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin clean.plugins07')],
43      run_command,
44      ['$MAKE -s --no-print-directory plugins07'])
45
46 test('T10420',
47      [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T10420'),
48       clean_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin clean.T10420')],
49      run_command,
50      ['$MAKE -s --no-print-directory T10420'])
51
52 test('T10294',
53      [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294'),
54       clean_cmd('$MAKE -s --no-print-directory -C annotation-plugin clean.T10294'),
55       unless(have_dynamic(),expect_broken(10301))],
56      run_command,
57      ['$MAKE -s --no-print-directory T10294'])
58
59 test('T10294a',
60      [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294a'),
61       clean_cmd('$MAKE -s --no-print-directory -C annotation-plugin clean.T10294a')],
62      run_command,
63      ['$MAKE -s --no-print-directory T10294a'])
64
65 test('frontend01',
66      [extra_clean(['FrontendPlugin.hi', 'FrontendPlugin.o',
67                    'frontend01', 'frontend01.o', 'frontend01.hi']),
68       unless(have_dynamic(), expect_broken(10301))],
69      run_command, ['$MAKE -s --no-print-directory frontend01'])
70
71 test('T11244',
72      [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T11244'),
73       clean_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin clean.T11244')],
74      run_command,
75      ['$MAKE -s --no-print-directory T11244'])