Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
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
The Tor Project
Core
Tor
Commits
26539ec3
Commit
26539ec3
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'tor-github/pr/518'
parents
48b08f05
8cb817cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/ticket28008
+3
-0
3 additions, 0 deletions
changes/ticket28008
scripts/test/coverage
+10
-10
10 additions, 10 deletions
scripts/test/coverage
with
13 additions
and
10 deletions
changes/ticket28008
0 → 100644
+
3
−
0
View file @
26539ec3
o Code simplification and refactoring:
- Fix shellcheck warnings in scripts/test/coverage. Resolves issue
28008.
This diff is collapsed.
Click to expand it.
scripts/test/coverage
+
10
−
10
View file @
26539ec3
...
...
@@ -8,30 +8,30 @@
dst
=
$1
for
fn
in
src/core/
*
/
*
.c src/feature/
*
/
*
.c src/app/
*
/
*
.c src/lib/
*
/
*
.c
;
do
BN
=
`
basename
$fn
`
DN
=
`
dirname
$fn
`
F
=
`
echo
$BN
|
sed
-e
's/\.c$//;'
`
BN
=
$(
basename
"
$fn
"
)
DN
=
$(
dirname
"
$fn
"
)
F
=
$(
echo
"
$BN
"
|
sed
-e
's/\.c$//;'
)
GC
=
"
${
BN
}
.gcov"
# Figure out the object file names
ONS
=
`
echo
${
DN
}
/src_
*
-
${
F
}
.o
`
ONS
=
$(
echo
"
${
DN
}
"
/src_
*
-
"
${
F
}
"
.o
)
ONS_WILDCARD_LITERAL
=
"
${
DN
}
/src_*-
${
F
}
.o"
# If the wildcard didn't expand, no files
if
[
"
$ONS
"
!=
"
${
ONS_WILDCARD_LITERAL
}
"
]
then
for
on
in
$ONS
;
do
# We should have a gcno file
GCNO
=
`
echo
$on
|
sed
-e
's/\.o$/\.gcno/;'
`
if
[
-e
$GCNO
]
GCNO
=
$(
echo
"
$on
"
|
sed
-e
's/\.o$/\.gcno/;'
)
if
[
-e
"
$GCNO
"
]
then
# No need to test for gcda, since gcov assumes no execution
# if it's absent
rm
-f
$GC
gcov
-o
$on
$fn
if
[
-e
$GC
]
rm
-f
"
$GC
"
gcov
-o
"
$on
"
"
$fn
"
if
[
-e
"
$GC
"
]
then
if
[
-d
"
$dst
"
]
then
mv
$GC
$dst
/
$GC
mv
"
$GC
"
"
$dst
"
/
"
$GC
"
fi
else
echo
"gcov -o
$on
$fn
didn't make a .gcov file"
...
...
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