GCOV/LCOV Code Coverage Tool
Name: | GCOV/LCOV Code Coverage Tool |
---|---|
Tool Provider: |
GNU, LTP |
Supported Standards: | ISO26262 |
Description: |
GCOV and LCOV are C/C++ code coverage tools GCOV is a test coverage program provided by GNU (https://gcc.gnu.org/onlinedocs/gcc/Gcov.html). Use it in concert with GCC to find out some basic performance statistics, such as: * how often each line of code executes * what lines of code are actually executed LCOV and GENHTML are extensions of GCOV provided by LTP (https://github.com/linux-test-project/lcov) The extension consists of a set of scripts which build on the textual GCOV output to generate HTML based output. |
Use Cases: |
Description: |
g++ version 8.4.0 and lcov version 1.15 |
---|
Description: |
gcc version 9.3.0 and lcov version 1.15 |
---|
Safety-Impact: | yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Outputs: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Features: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Potential errors: |
|
Safety-Impact: | yes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Outputs: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Features: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Potential errors: |
|
Description: |
The QKit is a standard Validas QKit using QST and TAU that automatically executes the qualification tests in the user environment. This qualification kit covers the following tools: GCOV, LCOV (including GENHTML) as well as the following helper scripts (when applicable) - BAZEL CoverageOutputGenerator and BMW LcovMerger. Two use cases are considered: - Code coverage measurement using gcov and genhtml: This use case uses gcov, a helper script and genhtml - Code coverage measurement using lcov and genhtml: This use case uses lcov and genhtml |
---|---|
Qualfication method: |
VALIDAS_QKIT |
Identifications: | |
Use Cases: |
Description: |
This testsuite contains tests for use cases described in the model This TestSuites element is a container for the following test suites: - AUTOSAR_compliant: Test cases based on the constructs allowed by AUTOSAR 18-10 - Tool_Perspective: Test cases to cover the potential errors at the interface between the tools and the artifacts - and some other tests [details are removed for confidentiality reasons] |
---|---|
Flags: | Has Requirements Based Tests , Has Negative Tests , Has Boundary Tests , Has Equivalence Tests , Has Error Guessing Tests |
# tests: | 1712 |
Errors: |
|
# | Mitigation | Detection/Avoidance probability | Detected/Avoided errors |
---|---|---|---|
1 |
[Check] BackToBack Test
Compare the generated results of the instrumented executable to the those of the uninstrumented executable
Comment:
This mitigation has a high detection probability because a modification of the behavior of a program due to the instrumentation will be systematically reproducible. |
HIGH |
|