touch up gcov docs [skip ci]

This commit is contained in:
Dane Springmeyer 2015-11-05 11:18:59 -08:00
parent c77b1b887d
commit 8aac6871e0

View file

@ -276,8 +276,9 @@ To auto-convert to the above syntax you can put this in an .emacs file:
### Generating *.gcov files with LLVM/clang toolchain to check tests coverage ### Generating *.gcov files with LLVM/clang toolchain to check tests coverage
* Ensure `llvm-cov` is available * 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'` * On OS X do `xcrun -f llvm-cov` to see the location of the binary
* Run test(s) e.g `./test/unit/run` * Build and link mapnik with `--coverage` and ensure optimization is off and profile flags are present. For example pass following options to Scons: `CUSTOM_CXXFLAGS='--coverage -g -O0' LDFLAGS='--coverage'`
* Run test(s) e.g `make test`
* To generate *.gcov file(s) run `llvm-cov gcov <path-to-cpp-file>` * To generate *.gcov file(s) run `llvm-cov gcov <path-to-cpp-file>`
* *.gcov files can be viewed in text editor * *.gcov files can be viewed in text editor