Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dmitri Naumov
ogs
Commits
85fb0c61
Commit
85fb0c61
authored
13 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
Some renaming.
parent
d77e35cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CodeCoverage.cmake
+3
-3
3 additions, 3 deletions
CodeCoverage.cmake
with
3 additions
and
3 deletions
CodeCoverage.cmake
+
3
−
3
View file @
85fb0c61
...
@@ -43,7 +43,7 @@ LINK_LIBRARIES(gcov)
...
@@ -43,7 +43,7 @@ LINK_LIBRARIES(gcov)
# Param _targetname The name of new the custom make target
# Param _targetname The name of new the custom make target
# Param _testrunner
exe
The
executable name
which runs the tests
# Param _testrunner
The
name of the target
which runs the tests
# Param _outputname lcov output is generated as _outputname.info
# Param _outputname lcov output is generated as _outputname.info
# HTML report is generated in _outputname/index.html
# HTML report is generated in _outputname/index.html
FUNCTION
(
SETUP_TARGET_FOR_COVERAGE _targetname _testrunnerexe _outputname
)
FUNCTION
(
SETUP_TARGET_FOR_COVERAGE _targetname _testrunnerexe _outputname
)
...
@@ -55,7 +55,7 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunnerexe _outputname)
...
@@ -55,7 +55,7 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunnerexe _outputname)
lcov --directory . --zerocounters
lcov --directory . --zerocounters
# Run tests
# Run tests
COMMAND
${
_testrunner
exe
}
COMMAND
${
_testrunner
}
# Capturing lcov counters and generating report
# Capturing lcov counters and generating report
COMMAND lcov --directory . --capture --output-file
${
_outputname
}
.info
COMMAND lcov --directory . --capture --output-file
${
_outputname
}
.info
...
@@ -63,7 +63,7 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunnerexe _outputname)
...
@@ -63,7 +63,7 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunnerexe _outputname)
COMMAND genhtml -o
${
_outputname
}
${
_outputname
}
.info.cleaned
COMMAND genhtml -o
${
_outputname
}
${
_outputname
}
.info.cleaned
COMMAND
${
CMAKE_COMMAND
}
-E remove
${
_outputname
}
.info
${
_outputname
}
.info.cleaned
COMMAND
${
CMAKE_COMMAND
}
-E remove
${
_outputname
}
.info
${
_outputname
}
.info.cleaned
DEPENDS
${
_testrunner
exe
}
DEPENDS
${
_testrunner
}
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
COMMENT
"Resetting code coverage counters to zero.
\n
COMMENT
"Resetting code coverage counters to zero.
\n
Processing code coverage counters and generating report."
Processing code coverage counters and generating report."
...
...
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