Commit fd129682 authored by batterseapower's avatar batterseapower
Browse files

Add another test of home-package plugins

parent ee479722
......@@ -9,7 +9,8 @@ test('plugins01', normal, run_command, ['$MAKE -s --no-print-directory plugins01
test('plugins02', normal, compile_fail, ['-package-conf simple-plugin/local.package.conf -fplugin Simple.BadlyTypedPlugin -package simple-plugin'])
test('plugins03', normal, compile_fail, ['-package-conf simple-plugin/local.package.conf -fplugin Simple.NonExistantPlugin -package simple-plugin'])
test('plugins05', extra_clean(['Plugins05_Helper.hi', 'Plugins05_Helper.o']), multimod_compile_and_run, ['plugins05', '-package ghc'])
test('plugins04', extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']), multimod_compile_and_run, ['plugins04', '-package ghc', '-fplugin HomePackagePlugin'])
test('plugins05', extra_clean(['HomePackagePlugin.hi', 'HomePackagePlugin.o']), multimod_compile_and_run, ['plugins05', '-package ghc'])
if default_testopts.cleanup != '':
runCmd('$MAKE -C ' + in_testdir('') + ' clean')
-- Tests home-package plugins from command line
module Main where
main :: IO ()
main = putStrLn "Hello From The Program"
\ No newline at end of file
{-# OPTIONS_GHC -fplugin Plugins05_Helper #-}
{-# OPTIONS_GHC -fplugin HomePackagePlugin #-}
-- Tests home-package plugins
-- Tests home-package plugins from OPTIONS pragma
module Main where
main :: IO ()
......
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