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
Glasgow Haskell Compiler
GHC
Commits
d5d62e54
Commit
d5d62e54
authored
Jun 22, 2006
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a prof/TH test
parent
87e3228f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
testsuite/tests/ghc-regress/th/TH_spliceE5_prof.stdout
testsuite/tests/ghc-regress/th/TH_spliceE5_prof.stdout
+1
-0
testsuite/tests/ghc-regress/th/all.T
testsuite/tests/ghc-regress/th/all.T
+9
-1
No files found.
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
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