Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,334
Issues
4,334
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
371
Merge Requests
371
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f8b139fd
Commit
f8b139fd
authored
Sep 04, 2016
by
Gabor Greif
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
#12567
: add new testcase with expected plugin behaviour
parent
57aa6bb0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
0 deletions
+26
-0
testsuite/driver/extra_files.py
testsuite/driver/extra_files.py
+1
-0
testsuite/tests/plugins/Makefile
testsuite/tests/plugins/Makefile
+6
-0
testsuite/tests/plugins/T12567a.hs
testsuite/tests/plugins/T12567a.hs
+3
-0
testsuite/tests/plugins/T12567a.stderr
testsuite/tests/plugins/T12567a.stderr
+6
-0
testsuite/tests/plugins/T12567b.hs
testsuite/tests/plugins/T12567b.hs
+4
-0
testsuite/tests/plugins/all.T
testsuite/tests/plugins/all.T
+6
-0
No files found.
testsuite/driver/extra_files.py
View file @
f8b139fd
...
@@ -426,6 +426,7 @@ extra_src_files = {
...
@@ -426,6 +426,7 @@ extra_src_files = {
'plugins05'
:
[
'HomePackagePlugin.hs'
],
'plugins05'
:
[
'HomePackagePlugin.hs'
],
'plugins06'
:
[
'LinkerTicklingPlugin.hs'
],
'plugins06'
:
[
'LinkerTicklingPlugin.hs'
],
'plugins07'
:
[
'rule-defining-plugin/'
],
'plugins07'
:
[
'rule-defining-plugin/'
],
'T12567a'
:
[
'T12567b.hs'
,
'simple-plugin/'
],
'print002'
:
[
'../Test.hs'
],
'print002'
:
[
'../Test.hs'
],
'print003'
:
[
'../Test.hs'
],
'print003'
:
[
'../Test.hs'
],
'print005'
:
[
'../QSort.hs'
],
'print005'
:
[
'../QSort.hs'
],
...
...
testsuite/tests/plugins/Makefile
View file @
f8b139fd
...
@@ -41,3 +41,9 @@ frontend01:
...
@@ -41,3 +41,9 @@ frontend01:
.PHONY
:
T11244
.PHONY
:
T11244
T11244
:
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
!
"
$(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
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
testsuite/tests/plugins/T12567a.hs
0 → 100644
View file @
f8b139fd
{-# OPTIONS -fplugin Simple.Plugin #-}
module
T12567a
where
testsuite/tests/plugins/T12567a.stderr
0 → 100644
View file @
f8b139fd
[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 )
testsuite/tests/plugins/T12567b.hs
0 → 100644
View file @
f8b139fd
module
T12567b
where
import
T12567a
testsuite/tests/plugins/all.T
View file @
f8b139fd
...
@@ -70,3 +70,9 @@ test('T11244',
...
@@ -70,3 +70,9 @@ test('T11244',
clean_cmd
('
$MAKE -s --no-print-directory -C rule-defining-plugin clean.T11244
')],
clean_cmd
('
$MAKE -s --no-print-directory -C rule-defining-plugin clean.T11244
')],
run_command
,
run_command
,
['
$MAKE -s --no-print-directory T11244
'])
['
$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
'])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment