Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d5d62e54
Commit
d5d62e54
authored
Jun 22, 2006
by
Simon Marlow
Browse files
add a prof/TH test
parent
87e3228f
Changes
2
Show whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/th/TH_spliceE5_prof.stdout
0 → 100644
View file @
d5d62e54
foobar
testsuite/tests/ghc-regress/th/all.T
View file @
d5d62e54
def
f
(
opts
):
opts
.
extra_hc_opts
=
'
-fth -package template-haskell
'
if
not
('
ghci
'
in
config
.
run_ways
):
if
(
ghc_with_interpreter
==
0
):
opts
.
skip
=
1
setTestOpts
(
f
)
...
...
@@ -21,6 +21,14 @@ test('TH_repPatSig', normal, compile, [''])
test
('
TH_spliceE5
',
normal
,
multimod_compile_and_run
,
['
TH_spliceE5
',
'
-v0
'])
clean
(['
TH_spliceE5_Lib.hi
',
'
TH_spliceE5_Lib.o
'])
# Testing profiling with TH is a bit tricky; we've already disabled
# the prof way above, and also we want to add options specifically for
# profiling (-osof p_o) because this is necessary when mixing
# profiling w/ TH. Furthermore we must have built the program the
# normal way first, so this is a bit of a hack.
test
('
TH_spliceE5_prof
',
normal
,
multimod_compile_and_run
,
['
TH_spliceE5
',
'
-v0 -prof -auto-all -osuf p_o
'])
clean
(['
TH_spliceE5_Lib.hi
',
'
TH_spliceE5_Lib.o
'])
test
('
TH_reifyDecl1
',
normal
,
compile
,
[''])
test
('
TH_reifyType1
',
normal
,
compile
,
[''])
...
...
Write
Preview
Supports
Markdown
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