On 2021-Mar-04, Alvaro Herrera wrote:

> On 2021-Mar-04, walker wrote:
> 
> > Hi, hackers
> > 
> > During installation from source code, I created a build directory separate 
> > from the source tree, and execute the following command in the build 
> > directory:
> > /home/postgres/postgresql-13.2/configure -- enable-coverage
> > make
> > make check
> > make coverage-html
> > 
> > 
> > However, while executing make coverage-html, it failed with the following 
> > error messages:
> > /bin/lcov --gcov-tool /bin/gcov -q --no-external -c -i -d . -d 
> > /home/postgres/postgresql-13.2/ -o lcve_base.info
> > ...
> > geninfo: ERROR: no .gcno files found in /home/postgres/postgresql-13.2/!

"make coverage-html" outputs this: note that I get a WARNING about the
source directory rather than an ERROR:

/usr/bin/lcov --gcov-tool /usr/bin/gcov -q --no-external -c -i -d . -d 
/pgsql/source/REL_13_STABLE/ -o lcov_base.info
geninfo: WARNING: no .gcno files found in /pgsql/source/REL_13_STABLE/ - 
skipping!
/usr/bin/lcov --gcov-tool /usr/bin/gcov -q --no-external -c -d . -d 
/pgsql/source/REL_13_STABLE/ -o lcov_test.info
geninfo: WARNING: no .gcda files found in /pgsql/source/REL_13_STABLE/ - 
skipping!
rm -rf coverage
/usr/bin/genhtml -q --legend -o coverage --title='PostgreSQL 13.2' 
--num-spaces=4  lcov_base.info lcov_test.info
touch coverage-html-stamp

(In my system, /pgsql is a symlink to /home/alvhere/Code/pgsql/)

$ geninfo --version
geninfo: LCOV version 1.13


-- 
Álvaro Herrera       Valdivia, Chile


Reply via email to