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,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
388
Merge Requests
388
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
16c29617
Commit
16c29617
authored
Nov 30, 2012
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some tests independent of the version number of the array package
parent
97e1ee6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
testsuite/tests/safeHaskell/check/pkg01/all.T
testsuite/tests/safeHaskell/check/pkg01/all.T
+5
-1
testsuite/tests/th/T5358.stderr
testsuite/tests/th/T5358.stderr
+0
-8
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+1
-1
No files found.
testsuite/tests/safeHaskell/check/pkg01/all.T
View file @
16c29617
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
def
f
(
opts
):
def
f
(
opts
):
opts
.
only_ways
=
['
normal
']
opts
.
only_ways
=
['
normal
']
def
normaliseArrayPackage
(
str
):
return
re
.
sub
('
array-[0-9]+(\.[0-9]+)*
',
'
array-<VERSION>
',
str
)
def
normaliseBytestringPackage
(
str
):
def
normaliseBytestringPackage
(
str
):
return
re
.
sub
('
bytestring-[0-9]+(\.[0-9]+)*
',
'
bytestring-<VERSION>
',
str
)
return
re
.
sub
('
bytestring-[0-9]+(\.[0-9]+)*
',
'
bytestring-<VERSION>
',
str
)
...
@@ -28,7 +31,8 @@ make_args = 'VANILLA=' + vanilla + ' PROF=' + prof + ' DYN=' + dyn
...
@@ -28,7 +31,8 @@ make_args = 'VANILLA=' + vanilla + ' PROF=' + prof + ' DYN=' + dyn
# and can be changed correctly
# and can be changed correctly
test
('
safePkg01
',
test
('
safePkg01
',
[
clean_cmd
('
$MAKE -s --no-print-directory cleanPackageDatabase.safePkg01
'),
[
clean_cmd
('
$MAKE -s --no-print-directory cleanPackageDatabase.safePkg01
'),
normalise_fun
(
normaliseBytestringPackage
)],
two_normalisers
(
normalise_fun
(
normaliseArrayPackage
),
normalise_fun
(
normaliseBytestringPackage
))],
run_command
,
run_command
,
['
$MAKE -s --no-print-directory safePkg01
'
+
make_args
])
['
$MAKE -s --no-print-directory safePkg01
'
+
make_args
])
...
...
testsuite/tests/th/T5358.stderr
View file @
16c29617
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package containers-0.5.0.0 ... linking ... done.
Loading package pretty-1.1.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
T5358.hs:7:1:
T5358.hs:7:1:
Couldn't match expected type `t1 -> t1' with actual type `Int'
Couldn't match expected type `t1 -> t1' with actual type `Int'
...
...
testsuite/tests/th/all.T
View file @
16c29617
...
@@ -196,7 +196,7 @@ test('TH_unresolvedInfix2',
...
@@ -196,7 +196,7 @@ test('TH_unresolvedInfix2',
compile_fail
,
compile_fail
,
['
-v0
'])
['
-v0
'])
test
('
T5358
',
normal
,
compile_fail
,
[''])
test
('
T5358
',
normal
,
compile_fail
,
['
-v0
'])
test
('
T5379
',
normal
,
compile_and_run
,
[''])
test
('
T5379
',
normal
,
compile_and_run
,
[''])
test
('
T5404
',
normal
,
compile
,
['
-v0
'])
test
('
T5404
',
normal
,
compile
,
['
-v0
'])
test
('
T5410
',
normal
,
compile_and_run
,
['
-v0
'])
test
('
T5410
',
normal
,
compile_and_run
,
['
-v0
'])
...
...
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