This is a very simple gcc code coverage example.
A post ont this can be find here, but this post is in Chinese.
Prerequisite software:
gcc
is the compiler used.
lcov
is a extenstion to gcov, used to collect coverage data.
in basic/, contains only build.
To build:
make
Clean up:
make clean
in cov/, contains coverage binaries generation.
To build:
make
Coverage:
make coverage
Clena up:
make clean
in auto/, contains coverage binaries generations, and automatic coverage test.
To build:
make
Coverage and test:
make coverage
Clena up:
make clean