Commit f8b139fd authored by Gabor Greif's avatar Gabor Greif 💬
Browse files

test #12567: add new testcase with expected plugin behaviour

parent 57aa6bb0
......@@ -426,6 +426,7 @@ extra_src_files = {
'plugins05': ['HomePackagePlugin.hs'],
'plugins06': ['LinkerTicklingPlugin.hs'],
'plugins07': ['rule-defining-plugin/'],
'T12567a': ['T12567b.hs', 'simple-plugin/'],
'print002': ['../Test.hs'],
'print003': ['../Test.hs'],
'print005': ['../QSort.hs'],
......@@ -41,3 +41,9 @@ frontend01:
.PHONY: T11244
! "$(TEST_HC)" $(TEST_HC_OPTS) $(ghcPluginWayFlags) --make -v0 -O T11244.hs -package-db rule-defining-plugin/pkg.T11244/local.package.conf -hide-all-plugin-packages -package rule-defining-plugin -fplugin=RuleDefiningPlugin
.PHONY: T12567a
"$(TEST_HC)" $(TEST_HC_OPTS) $(ghcPluginWayFlags) --make T12567a.hs -package-db simple-plugin/pkg.T12567a/local.package.conf -hide-all-plugin-packages -plugin-package simple-plugin 1>&2
"$(TEST_HC)" $(TEST_HC_OPTS) $(ghcPluginWayFlags) --make -v T12567a.hs -package-db simple-plugin/pkg.T12567a/local.package.conf -hide-all-plugin-packages -plugin-package simple-plugin 2>&1 | grep "T12567a.hs, T12567a.o" 1>&2
"$(TEST_HC)" $(TEST_HC_OPTS) $(ghcPluginWayFlags) --make T12567b.hs -package-db simple-plugin/pkg.T12567a/local.package.conf -hide-all-plugin-packages -plugin-package simple-plugin 1>&2
{-# OPTIONS -fplugin Simple.Plugin #-}
module T12567a where
[1 of 1] Compiling T12567a ( T12567a.hs, T12567a.o )
Simple Plugin Passes Queried
Got options:
Simple Plugin Pass Run
[1 of 1] Skipping T12567a ( T12567a.hs, T12567a.o )
[2 of 2] Compiling T12567b ( T12567b.hs, T12567b.o )
module T12567b where
import T12567a
......@@ -70,3 +70,9 @@ test('T11244',
clean_cmd('$MAKE -s --no-print-directory -C rule-defining-plugin clean.T11244')],
['$MAKE -s --no-print-directory T11244'])
[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')],
['$MAKE -s --no-print-directory T12567a'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment