Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
25bd5de9
Commit
25bd5de9
authored
Mar 05, 2007
by
Ian Lynagh
Browse files
MERGED: Add req_profiling to the driver
parent
8f14bd6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/config/ghc
View file @
25bd5de9
...
...
@@ -24,6 +24,7 @@ if (ghc_with_native_codegen == 1):
config.run_ways.append('optasm')
if (ghc_with_profiling == 1):
config.have_profiling = True
config.compile_ways.append('profc')
config.run_ways.append('profc')
if (ghc_with_native_codegen == 1):
...
...
testsuite/driver/testglobals.py
View file @
25bd5de9
...
...
@@ -61,6 +61,9 @@ class TestConfig:
self
.
way_flags
=
{}
self
.
way_rts_flags
=
{}
# Do we have profiling support?
self
.
have_profiling
=
False
# the timeout program
self
.
timeout_prog
=
''
self
.
timeout
=
300
...
...
testsuite/driver/testlib.py
View file @
25bd5de9
...
...
@@ -80,6 +80,10 @@ def _reqlib( opts, lib ):
if
r
!=
0
:
opts
.
expect
=
'fail'
def
req_profiling
(
opts
):
if
not
config
.
have_profiling
:
opts
.
expect
=
'fail'
def
expect_broken
(
bug
):
return
lambda
opts
,
b
=
bug
:
_expect_broken
(
opts
,
b
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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