文件操作 - devel-testing.html
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/adcli/devel-testing.html
编辑文件内容
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"> <title>Testing and Code Coverage</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="index.html" title="adcli"> <link rel="up" href="devel.html" title="Building, Packaging, and Contributing to adcli"> <link rel="prev" href="devel-building-style.html" title="Coding Style"> <link rel="next" href="devel-debugging.html" title="Debugging Tips"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"> <td><a accesskey="p" href="devel-building-style.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td><a accesskey="u" href="devel.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> <th width="100%" align="center">adcli</th> <td><a accesskey="n" href="devel-debugging.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr></table> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="devel-testing"></a>Testing and Code Coverage</h2></div></div></div> <p>Low level input parsers and such code should have unit tests excercizing it. Use the <code class="literal">make check</code> command to run all the tests. If you run it from a subdirectory only the tests in that directory will be run.</p> <p>To check for memory errors or memory leaks, run <code class="literal">make memcheck</code> or <code class="literal">make leakcheck</code> respectively. This requires valgrind be installed.</p> <p>Build adcli with the <code class="option">--enable-coverage</code> configure option to build code coverage support.</p> <p>Once you've done that you can either use <code class="literal">make coverage</code> to build code coverage information. Alternatively (and this is usually easier) you can use <a class="ulink" href="http://stef.thewalter.net/2012/12/git-coverage-useful-code-coverage.html" target="_top"> <code class="literal">git coverage</code></a> to easily check whether you've tested the lines changed by a patch.</p> </div> <div class="footer"> <hr> Generated by GTK-Doc </div> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件