diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2018-01-18 18:23:06 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-01-18 18:23:58 -0500 |
commit | 5e8ea6a62e948bcc0da1279f06844fd1d8e979bd (patch) | |
tree | a94b92b96bc1ec5e73b1d852a8ddfe2c8704ac6d /testsuite | |
parent | 575c009d9e4b25384ef984c09b2c54f909693e93 (diff) | |
download | haskell-5e8ea6a62e948bcc0da1279f06844fd1d8e979bd.tar.gz |
testsuite: Add test for #14335
Subscribers: rwbarton, thomie
GHC Trac Issues: #14335
Differential Revision: https://phabricator.haskell.org/D4202
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/plugins/Makefile | 5 | ||||
-rw-r--r-- | testsuite/tests/plugins/all.T | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/plugins/Makefile b/testsuite/tests/plugins/Makefile index 1ff8d40e8b..96443c9b32 100644 --- a/testsuite/tests/plugins/Makefile +++ b/testsuite/tests/plugins/Makefile @@ -52,3 +52,8 @@ 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 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 + +.PHONY: T14335 +T14335: + "$(TEST_HC)" $(TEST_HC_OPTS) $(ghcPluginWayFlags) -fexternal-interpreter --make -v0 plugins01.hs -package-db simple-plugin/pkg.plugins01/local.package.conf -fplugin Simple.Plugin -fplugin-opt Simple.Plugin:Irrelevant_Option -hide-all-plugin-packages -plugin-package simple-plugin + ./plugins01 diff --git a/testsuite/tests/plugins/all.T b/testsuite/tests/plugins/all.T index 5f53531518..0e523f0d28 100644 --- a/testsuite/tests/plugins/all.T +++ b/testsuite/tests/plugins/all.T @@ -67,3 +67,9 @@ test('T12567a', [extra_files(['T12567b.hs', 'simple-plugin/']), pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.T12567a TOP={top}')], run_command, ['$MAKE -s --no-print-directory T12567a']) + +test('T14335', + [extra_files(['simple-plugin/', 'plugins01.hs']), + pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins01 TOP={top}'), + expect_broken(14335)], + run_command, ['$MAKE -s --no-print-directory T14335']) |