【发布时间】:2015-09-24 13:29:18
【问题描述】:
lcov 如何决定何时使用绝对路径和相对路径?
我有一个app 目录,其中包含我产品的每个共享库的子目录和多个二进制文件的子目录。像这样的:
/home/user/app/libfoo/bar
/home/user/app/libfoo/baz
/home/user/app/libqux
/home/user/app/testsuite
/home/user/app/product
但是,当运行lcov 和genhtml 时,目录是这样列出的:
/home/user/app/libqux
/home/user/app/testsuite
/home/user/app/product
bar
baz
换句话说,我的一个共享库目录中的所有内容都使用相对路径,而其他所有内容都使用绝对路径。 为什么?
我对@987654326@ 和genhtml 的调用非常简单:
cd ~/app
testsuite/run_tests
lcov --capture --directory . --output-file coverage.info --gcov-tool gcov-5 --no-external
genhtml coverage.info --output-directory coverage
【问题讨论】:
标签: relative-path lcov