Add generating *.gov files locally steps
This commit is contained in:
parent
32331e9b3e
commit
e466a200ed
1 changed files with 7 additions and 0 deletions
|
@ -274,3 +274,10 @@ To auto-convert to the above syntax you can put this in an .emacs file:
|
|||
;;
|
||||
(c-set-offset 'template-args-cont 'c-lineup-template-args)
|
||||
|
||||
### Generating *.gcov files with LLVM/clang toolchain to check tests coverage
|
||||
|
||||
* Ensure `llvm-cov` is available
|
||||
* Build and link mapnik with `--coverage` and ensure optimisation is off and profile flags is present. For example pass following options to Scons: `CUSTOM_CXXFLAGS='--coverage -g -O0' LDFLAGS='--coverage'`
|
||||
* Run test(s) e.g `./test/unit/run`
|
||||
* To generate *.gcov file(s) run `llvm-cov gcov <path-to-cpp-file>`
|
||||
* *.gcov files can be viewed in text editor
|
||||
|
|
Loading…
Reference in a new issue