我下载了 Python/PHP 的覆盖包,并尝试 让它分析我的包裹:
./cov-build --dir cov-int --fs-capture-search /my/dir/ python mine.py
考虑到“my/dir”包含包的根目录,而“mine.py”实现了入口点。
我得到的结果:
command line: No input files.
[STATUS] Running filesystem capture search...
[STATUS] Emitting 485 source files from filesystem capture
|0----------25-----------50----------75---------100|
****************************************************
[WARNING] Build command python /tmp/trunk/quex-exe.py exited with code 255. Please verify that the build completed successfully.
我不清楚 Coverity 对“构建”的含义。这是否意味着脚本的示例调用?我该如何开始?
“doc/”子目录中的大部分“帮助”文件都是空的(!)
请您参考如下方法:
[WARNING] Build command python /tmp/trunk/quex-exe.py exited with code 255. Please verify that the build completed successfully.
这意味着您在 cov-build 行中指定的命令 (python mine.py) 没有以零退出。可能是因为:
command line: No input files.
但无论如何,看起来 cov-build did 成功捕获了 485 个源文件,因此您可能根本不需要使用构建命令。在这种情况下,您可以指定 --no-command 开关并省略 python mine.py,此时您可以继续工作流程的其余部分。
