diff options
Diffstat (limited to 'testsuite/tests/plugins/all.T')
-rw-r--r-- | testsuite/tests/plugins/all.T | 67 |
1 files changed, 21 insertions, 46 deletions
diff --git a/testsuite/tests/plugins/all.T b/testsuite/tests/plugins/all.T index 26f377cd1e..580498ff2f 100644 --- a/testsuite/tests/plugins/all.T +++ b/testsuite/tests/plugins/all.T @@ -1,77 +1,52 @@ setTestOpts(req_interp) test('plugins01', - [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins01 TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C simple-plugin clean.plugins01')], - run_command, - ['$MAKE -s --no-print-directory plugins01']) + [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins01 TOP={top}')], + run_command, ['$MAKE -s --no-print-directory plugins01']) test('plugins02', - [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins02 TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C simple-plugin clean.plugins02')], + [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins02 TOP={top}')], compile_fail, ['-package-db simple-plugin/pkg.plugins02/local.package.conf -fplugin Simple.BadlyTypedPlugin -package simple-plugin ' + config.plugin_way_flags]) test('plugins03', - [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins03 TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C simple-plugin clean.plugins03')], + [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins03 TOP={top}')], compile_fail, ['-package-db simple-plugin/pkg.plugins03/local.package.conf -fplugin Simple.NonExistantPlugin -package simple-plugin']) -test('plugins04', - extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']), - multimod_compile_fail, +test('plugins04', [], multimod_compile_fail, ['plugins04', '-package ghc -fplugin HomePackagePlugin']) -test('plugins05', - [ extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']), - only_ways([config.ghc_plugin_way]) ], +test('plugins05', [only_ways([config.ghc_plugin_way])], multimod_compile_and_run, ['plugins05', '-package ghc']) test('plugins06', - [ extra_clean(['LinkerTicklingPlugin.hi', 'LinkerTicklingPlugin.o']), - unless(have_dynamic(),skip), - only_ways([config.ghc_plugin_way]) ], + [unless(have_dynamic(), skip), only_ways([config.ghc_plugin_way])], multimod_compile_and_run, ['plugins06', '-package ghc']) test('plugins07', - [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.plugins07 TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin clean.plugins07')], - run_command, - ['$MAKE -s --no-print-directory plugins07']) + [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.plugins07 TOP={top}')], + run_command, ['$MAKE -s --no-print-directory plugins07']) test('T10420', - [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T10420 TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin clean.T10420')], - run_command, - ['$MAKE -s --no-print-directory T10420']) + [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T10420 TOP={top}')], + run_command, ['$MAKE -s --no-print-directory T10420']) test('T10294', - [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294 TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C annotation-plugin clean.T10294')], - run_command, - ['$MAKE -s --no-print-directory T10294']) + [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294 TOP={top}')], + run_command, ['$MAKE -s --no-print-directory T10294']) test('T10294a', - [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294a TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C annotation-plugin clean.T10294a')], - run_command, - ['$MAKE -s --no-print-directory T10294a']) + [pre_cmd('$MAKE -s --no-print-directory -C annotation-plugin package.T10294a TOP={top}')], + run_command, ['$MAKE -s --no-print-directory T10294a']) -test('frontend01', - [extra_clean(['FrontendPlugin.hi', 'FrontendPlugin.o', - 'frontend01', 'frontend01.o', 'frontend01.hi']), - unless(have_dynamic(), expect_broken(10301))], - run_command, ['$MAKE -s --no-print-directory frontend01']) +test('frontend01', [unless(have_dynamic(), expect_broken(10301))], run_command, + ['$MAKE -s --no-print-directory frontend01']) test('T11244', - [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T11244 TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin clean.T11244')], - run_command, - ['$MAKE -s --no-print-directory T11244']) + [pre_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin package.T11244 TOP={top}')], + run_command, ['$MAKE -s --no-print-directory T11244']) test('T12567a', - [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.T12567a TOP={top}'), - clean_cmd('$MAKE -s --no-print-directory -C simple-plugin clean.T12567a')], - run_command, - ['$MAKE -s --no-print-directory T12567a']) + [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.T12567a TOP={top}')], + run_command, ['$MAKE -s --no-print-directory T12567a']) |