Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
hpc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
Packages
hpc
Compare Revisions
5caceac7a05741f87f970e1d3f572b1fd8f10cec...b28546ca003c6dbff586609a093e8c8091c34b14
Source
b28546ca003c6dbff586609a093e8c8091c34b14
Select Git revision
...
Target
5caceac7a05741f87f970e1d3f572b1fd8f10cec
Select Git revision
Compare
Commits (1)
tests: automatically move extra_files
· b28546ca
rwbarton
authored
Feb 24, 2017
b28546ca
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
24 deletions
+30
-24
tests/fork/test.T
tests/fork/test.T
+2
-1
tests/function/test.T
tests/function/test.T
+2
-1
tests/function2/test.T
tests/function2/test.T
+2
-1
tests/ghc_ghci/test.T
tests/ghc_ghci/test.T
+2
-1
tests/raytrace/test.T
tests/raytrace/test.T
+2
-1
tests/raytrace/tixs/test.T
tests/raytrace/tixs/test.T
+8
-8
tests/simple/tixs/test.T
tests/simple/tixs/test.T
+12
-11
No files found.
tests/fork/test.T
View file @
b28546ca
...
...
@@ -2,6 +2,7 @@ setTestOpts([omit_ways(['ghci','threaded2']), when(fast(), skip)])
hpc_prefix
=
"
perl hpcrun.pl --clear --exeext={exeext} --hpc={hpc}
"
test
('
hpc_fork
',
[
when
(
opsys
('
mingw32
'),
skip
),
# no forkProcess on Windows
test
('
hpc_fork
',
[
extra_files
(['
../hpcrun.pl
']),
when
(
opsys
('
mingw32
'),
skip
),
# no forkProcess on Windows
cmd_prefix
(
hpc_prefix
)
],
compile_and_run
,
['
-fhpc
'])
tests/function/test.T
View file @
b28546ca
...
...
@@ -3,6 +3,7 @@ setTestOpts([omit_ways(['ghci']), when(fast(), skip)])
hpc_prefix
=
"
perl hpcrun.pl --clear --exeext={exeext} --hpc={hpc}
"
test
('
tough
',
[
cmd_prefix
(
hpc_prefix
)],
[
extra_files
(['
../hpcrun.pl
']),
cmd_prefix
(
hpc_prefix
)],
compile_and_run
,
['
-fhpc
'])
tests/function2/test.T
View file @
b28546ca
...
...
@@ -7,7 +7,8 @@ hpc_prefix = "perl hpcrun.pl --clear --exeext={exeext} --hpc={hpc}"
# area caused by the handling of line pragmas in the preprocessed
# source file.
test
('
tough2
',
[
literate
,
[
extra_files
(['
../hpcrun.pl
',
'
subdir/
']),
literate
,
cmd_prefix
(
hpc_prefix
),
omit_ways
(['
ghci
']
+
prof_ways
)
],
# profile goes in the wrong place
multimod_compile_and_run
,
['
subdir/tough2.lhs
',
'
-fhpc
'])
tests/ghc_ghci/test.T
View file @
b28546ca
test
('
hpc_ghc_ghci
',
[
only_ways
(['
normal
']),
when
(
compiler_profiled
(),
skip
),
req_interp
],
[
extra_files
(['
A.hs
',
'
B.hs
']),
only_ways
(['
normal
']),
when
(
compiler_profiled
(),
skip
),
req_interp
],
run_command
,
['
$MAKE -s --no-print-directory hpc_ghc_ghci
'])
tests/raytrace/test.T
View file @
b28546ca
...
...
@@ -11,6 +11,7 @@ hpc_prefix = "perl hpcrun.pl --clear --exeext={exeext} --hpc={hpc}"
# Also note that testsuite/tests/programs/galois_raytrace has a similar (but
# not the same) copy of this program.
test
('
hpc_raytrace
',
[
cmd_prefix
(
hpc_prefix
),
reqlib
('
parsec
'),
ignore_stdout
],
[
extra_files
(['
../hpcrun.pl
',
'
CSG.hs
',
'
Construct.hs
',
'
Data.hs
',
'
Eval.hs
',
'
Geometry.hs
',
'
Illumination.hs
',
'
Intersections.hs
',
'
Interval.hs
',
'
Main.hs
',
'
Misc.hs
',
'
Parse.hs
',
'
Primitives.hs
',
'
Surface.hs
',
'
galois.gml
',
'
galois.sample
']),
cmd_prefix
(
hpc_prefix
),
reqlib
('
parsec
'),
ignore_stdout
],
multimod_compile_and_run
,
['
Main
','
-fhpc -package parsec
'])
tests/raytrace/tixs/test.T
View file @
b28546ca
setTestOpts
([
omit_ways
(['
ghci
']),
when
(
fast
(),
skip
)])
test
('
hpc_report_multi_001
',
normal
,
run_command
,
test
('
hpc_report_multi_001
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} report hpc_sample --include=Geometry --per-module
"])
test
('
hpc_report_multi_002
',
normal
,
run_command
,
test
('
hpc_report_multi_002
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} report hpc_sample --exclude=Geometry --per-module
"])
test
('
hpc_report_multi_003
',
normal
,
run_command
,
test
('
hpc_report_multi_003
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} report hpc_sample --include=Geometry --per-module --decl-list
"])
test
('
hpc_markup_multi_001
',
normal
,
run_command
,
test
('
hpc_markup_multi_001
',
extra_files
(['
../Geometry.hs
',
'
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} markup --hpcdir=tixs/.hpc --hpcdir=hpc_markup_multi_001/.hpc --destdir=markup_multi_001
"
"
hpc_sample --include=Geometry
"])
test
('
hpc_markup_multi_002
',
normal
,
run_command
,
test
('
hpc_markup_multi_002
',
extra_files
(['
../CSG.hs
',
'
../Construct.hs
',
'
../Data.hs
',
'
../Eval.hs
',
'
../Geometry.hs
',
'
../Illumination.hs
',
'
../Intersections.hs
',
'
../Interval.hs
',
'
../Main.hs
',
'
../Misc.hs
',
'
../Parse.hs
',
'
../Pixmap.hs
',
'
../Primitives.hs
',
'
../RayTrace.hs
',
'
../Surface.hs
',
'
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} markup --hpcdir=tixs/.hpc --hpcdir=hpc_markup_multi_002/.hpc --destdir=markup_multi_002
"
"
hpc_sample --exclude=Geometry
"])
test
('
hpc_markup_multi_003
',
normal
,
run_command
,
test
('
hpc_markup_multi_003
',
extra_files
(['
../CSG.hs
',
'
../Construct.hs
',
'
../Data.hs
',
'
../Eval.hs
',
'
../Geometry.hs
',
'
../Illumination.hs
',
'
../Intersections.hs
',
'
../Interval.hs
',
'
../Main.hs
',
'
../Misc.hs
',
'
../Parse.hs
',
'
../Pixmap.hs
',
'
../Primitives.hs
',
'
../RayTrace.hs
',
'
../Surface.hs
',
'
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} markup --hpcdir=tixs/.hpc --hpcdir=hpc_markup_multi_003/.hpc --destdir=markup_multi_003
"
"
hpc_sample --fun-entry-count
"])
test
('
hpc_show_multi_001
',
normal
,
run_command
,
test
('
hpc_show_multi_001
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} show hpc_sample
"])
test
('
hpc_show_multi_002
',
normal
,
run_command
,
test
('
hpc_show_multi_002
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} show hpc_sample --include=Geometry
"])
tests/simple/tixs/test.T
View file @
b28546ca
...
...
@@ -4,11 +4,11 @@ test('hpc_help', normal, run_command, ["{hpc} help"])
test
('
hpc_help_help
',
normal
,
run_command
,
["
{hpc} help help
"])
test
('
hpc_help_report
',
normal
,
run_command
,
["
{hpc} help report
"])
test
('
hpc_report_001
',
normal
,
run_command
,
test
('
hpc_report_001
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} report hpc_sample.tix --xml-output
"])
test
('
hpc_report_002
',
normal
,
run_command
,
test
('
hpc_report_002
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} report hpc_sample.tix --xml-output --per-module
"])
test
('
hpc_report_003
',
normal
,
run_command
,
test
('
hpc_report_003
',
extra_files
(['
.hpc/
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} report hpc_sample.tix --per-module --decl-list
"])
test
('
hpc_report_error_001
',
exit_code
(
1
),
run_command
,
["
{hpc} report
"])
# no .tix file
...
...
@@ -20,15 +20,15 @@ test('hpc_markup_error_001', exit_code(1), run_command,
["
{hpc} markup
"])
# no .tix file
test
('
hpc_markup_error_002
',
exit_code
(
1
),
run_command
,
["
{hpc} markup hpc001.hs
"])
# bad .tix file
test
('
hpc_markup_001
',
normal
,
run_command
,
test
('
hpc_markup_001
',
extra_files
(['
.hpc/
',
'
hpc001.hs
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} markup --verbosity=0 --destdir=markup_001
"
"
hpc_sample.tix --highlight-covered; cat markup_001/Main.hs.html
"])
test
('
hpc_markup_002
',
normal
,
run_command
,
test
('
hpc_markup_002
',
extra_files
(['
.hpc/
',
'
hpc001.hs
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} markup --verbosity=0 --destdir=markup_002
"
"
hpc_sample.tix --fun-entry-count; cat markup_002/Main.hs.html
"])
test
('
hpc_help_show
',
normal
,
run_command
,
["
{hpc} help show
"])
test
('
hpc_show
',
normal
,
run_command
,
["
{hpc} show hpc_sample.tix
"])
test
('
hpc_show
',
extra_files
(['
.hpc
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} show hpc_sample.tix
"])
test
('
hpc_show_error_001
',
exit_code
(
1
),
run_command
,
["
{hpc} show
"])
# no .tix file
test
('
hpc_show_error_002
',
exit_code
(
1
),
run_command
,
...
...
@@ -38,12 +38,12 @@ test('hpc_help_version', normal, run_command, ["{hpc} help version"])
test
('
hpc_version
',
normal
,
run_command
,
["
{hpc} version
"])
test
('
hpc_help_draft
',
normal
,
run_command
,
["
{hpc} help draft
"])
test
('
hpc_draft
',
normal
,
run_command
,
["
{hpc} draft hpc_sample.tix
"])
test
('
hpc_draft
',
extra_files
(['
.hpc/
',
'
hpc001.hs
',
'
hpc_sample.tix
'])
,
run_command
,
["
{hpc} draft hpc_sample.tix
"])
test
('
hpc_help_overlay
',
normal
,
run_command
,
["
{hpc} help overlay
"])
test
('
hpc_overlay
',
normal
,
extra_files
(['
.hpc/
',
'
hpc001.hs
',
'
hpc_sample.tix
',
'
sample_overlay.ovr
'])
,
run_command
,
["
({hpc} overlay sample_overlay.ovr > sample_overlay1.tix;
"
"
cat sample_overlay1.tix; echo;
"
...
...
@@ -51,7 +51,7 @@ test('hpc_overlay',
"
{hpc} report total1.tix)
"])
test
('
hpc_overlay2
',
normal
,
extra_files
(['
.hpc/
',
'
hpc001.hs
',
'
hpc_sample.tix
',
'
sample_overlay.ovr
'])
,
run_command
,
["
({hpc} overlay sample_overlay.ovr --output=sample_overlay2.tix;
"
"
cat sample_overlay2.tix; echo;
"
...
...
@@ -59,7 +59,7 @@ test('hpc_overlay2',
"
{hpc} report total2.tix)
"])
test
('
hpc_hand_overlay
',
normal
,
extra_files
(['
.hpc/
',
'
hand_overlay.ovr
',
'
hpc001.hs
',
'
hpc_sample.tix
'])
,
run_command
,
["
({hpc} overlay hand_overlay.ovr --output=sample_overlay3.tix;
"
"
cat sample_overlay3.tix; echo;
"
...
...
@@ -68,7 +68,8 @@ test('hpc_hand_overlay',
test
('
hpc_bad_001
',
exit_code
(
1
),
run_command
,
["
{hpc} bad arguments
"])
test
('
T9619
',
ignore_stdout
,
run_command
,
test
('
T9619
',
[
extra_files
(['
.hpc
',
'
.hpc.copy
',
'
hpc_sample.tix
']),
ignore_stdout
],
run_command
,
# Having the same mix file in two different hpcdirs should work.
["
{hpc} report hpc_sample.tix --hpcdir=.hpc --hpcdir=.hpc.copy
"])
...
...