Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Tobias Decking
GHC
Commits
1c4f18d0
Commit
1c4f18d0
authored
Jun 25, 2019
by
Ben Gamari
🐢
Committed by
Ben Gamari
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite: More type signatures
parent
44d08c32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
testsuite/driver/perf_notes.py
testsuite/driver/perf_notes.py
+2
-1
testsuite/driver/testglobals.py
testsuite/driver/testglobals.py
+10
-8
No files found.
testsuite/driver/perf_notes.py
View file @
1c4f18d0
...
...
@@ -9,6 +9,7 @@
# (which defaults to 'local' if not given by --test-env).
#
from
enum
import
Enum
import
colorsys
import
tempfile
import
json
...
...
@@ -62,7 +63,7 @@ PerfStat = namedtuple('PerfStat', ['test_env','test','way','metric','value'])
# A baseline recovered form stored metrics.
Baseline
=
namedtuple
(
'Baseline'
,
[
'perfStat'
,
'commit'
,
'commitDepth'
])
class
MetricChange
:
class
MetricChange
(
Enum
)
:
NewMetric
=
'NewMetric'
NoChange
=
'NoChange'
Increase
=
'Increase'
...
...
testsuite/driver/testglobals.py
View file @
1c4f18d0
...
...
@@ -225,20 +225,22 @@ class TestRun:
self
.
n_expected_failures
=
0
self
.
missing_libs
=
[]
# type: List[TestResult]
self
.
framework_failures
=
[]
self
.
framework_warnings
=
[]
self
.
framework_failures
=
[]
# type: List[TestResult]
self
.
framework_warnings
=
[]
# type: List[TestResult]
self
.
expected_passes
=
[]
self
.
unexpected_passes
=
[]
self
.
unexpected_failures
=
[]
self
.
unexpected_stat_failures
=
[]
self
.
fragile_results
=
[]
self
.
expected_passes
=
[]
# type: List[TestResult]
self
.
unexpected_passes
=
[]
# type: List[TestResult]
self
.
unexpected_failures
=
[]
# type: List[TestResult]
self
.
unexpected_stat_failures
=
[]
# type: List[TestResult]
# Results from tests that have been marked as fragile
self
.
fragile_results
=
[]
# type: List[TestResult]
# List of all metrics measured in this test run.
# [(change, PerfStat)] where change is one of the MetricChange
# constants: NewMetric, NoChange, Increase, Decrease.
# NewMetric happens when the previous git commit has no metric recorded.
self
.
metrics
=
[]
self
.
metrics
=
[]
# type: List[Tuple[MetricChange, PerfStat]]
global
t
t
=
TestRun
()
...
...
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