Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-v6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
lustre-v6
Commits
b81cda3c
Commit
b81cda3c
authored
16 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
Enhance the test coverage rule in src/Makefile (print the ratio
dead hits versus all hits).
parent
cd475af2
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Makefile
+7
-3
7 additions, 3 deletions
src/Makefile
src/dead.grep
+402
-402
402 additions, 402 deletions
src/dead.grep
src/untested_line_counter
+1
-1
1 addition, 1 deletion
src/untested_line_counter
with
410 additions
and
406 deletions
src/Makefile
+
7
−
3
View file @
b81cda3c
...
@@ -70,15 +70,19 @@ test/ocamlprof.dump: pbc test
...
@@ -70,15 +70,19 @@ test/ocamlprof.dump: pbc test
prof
:
test/ocamlprof.dump
prof
:
test/ocamlprof.dump
mkdir
prof
||
rm
prof/
*
mkdir
prof
||
rm
prof/
*
for
d
in
${
SOURCES
};
do
\
for
d
in
${
SOURCES
};
do
\
ocamlprof
-f
test
/ocamlprof.dump
$$
d
>
prof/
$$
d
;
\
ocamlprof
-F
"ocamlprof: "
-f
test
/ocamlprof.dump
$$
d
>
prof/
$$
d
;
\
done
done
grep
:
grep
:
rm test
/ocamlprof.dump
||
true
rm test
/ocamlprof.dump
||
true
make clean
make clean
make prof
make prof
grep
-n
-e
"(
\*
0
\*
)"
prof/
*
.ml |
grep
-v
"assert false"
>
dead.grep
grep
-n
-e
"(
\*
ocamlprof: 0
\*
)"
prof/
*
.ml |
grep
-v
"assert false"
>
dead.grep
wc
dead.grep
>
untested_line_counter
grep
-n
-e
"(
\*
ocamlprof: "
prof/
*
.ml |
grep
-v
"assert false"
>
all.grep
DEAD_HITS
=
`
wc
-l
dead.grep |
cut
-f
1
-d
" "
`
;
\
ALL_HITS
=
`
wc
-l
all.grep |
cut
-f
1
-d
" "
`
;
\
SOL
=
`
echo
"scale=2 ;
$$
DEAD_HITS * 100 /
$$
ALL_HITS "
| bc
`
;
\
echo
"
$$
DEAD_HITS /
$$
ALL_HITS =
$$
SOL %"
>
untested_line_counter
cat
untested_line_counter
cat
untested_line_counter
##############################################################################"
##############################################################################"
...
...
This diff is collapsed.
Click to expand it.
src/dead.grep
+
402
−
402
View file @
b81cda3c
This diff is collapsed.
Click to expand it.
src/untested_line_counter
+
1
−
1
View file @
b81cda3c
402
4118 32317 dead.grep
402
/ 1584 = 25.37 %
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment