"Fossies" - the Fresh Open Source Software Archive

Member "brlcad-7.32.4/doc/notes/lcov.txt" (29 Jul 2021, 1115 Bytes) of package /linux/misc/brlcad-7.32.4.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Notes on using gcov/lcov with BRL-CAD
    2 
    3 Build with the BRLCAD_ENABLE_CAPTURE option set to ON
    4 
    5 If using only gcov, you need to cd to the directory where the object files were
    6 built and specify the object file(s) in question fully, e.g. (from the build
    7 directory):
    8 
    9 $ cd src/libbu/CMakeFiles/libbu.dir/
   10 $ gcov b64.c.o vls.c.o 
   11 File '/brlcad/src/libbu/b64.c'
   12 Lines executed:88.10% of 126
   13 /brlcad/src/libbu/b64.c:creating 'b64.c.gcov'
   14 
   15 File '/brlcad/src/libbu/vls.c'
   16 Lines executed:74.66% of 363
   17 /brlcad/src/libbu/vls.c:creating 'vls.c.gcov'
   18 
   19 
   20 
   21 When running lcov (from the build directory, assuming the
   22 build directory itself is <source_dir>/build):
   23 
   24 find . -name '*.gcda' -print0 | xargs -0 rm
   25 make -j3 check
   26 lcov --capture --directory . --output-file coverage.info
   27 lcov -r coverage.info \*\/build\/\* > coverage-2.info
   28 lcov -r coverage-2.info \*\/other\/\* > coverage-3.info
   29 lcov -r coverage-3.info \/usr\/\* > coverage-4.info
   30 lcov -r coverage-4.info \*\/misc\/\* > coverage-5.info
   31 lcov -r coverage-5.info \*\/tests\/\* > coverage_cad.info
   32 rm coverage-*.info
   33 genhtml coverage_cad.info --output-directory lcov-output
   34