summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-20 20:58:49 +0100
committerStef Walter <stefw@gnome.org>2013-03-20 22:22:18 +0100
commit9cf89e4b43e5e018bb3103be1873a3993769ce4a (patch)
tree9a69429d69f4d22d49fcfe51f0d495ec8ab9ba97 /doc
parent0ecabc858dd6c1c2055f53202a01251e2ad7d2c2 (diff)
Add a bit of infrastructure for running valgrind
* make memcheck: Runs basic memory checking * make leakcheck: Also runs leak checking
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am4
-rw-r--r--doc/manual/p11-kit-devel.xml4
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 27b5b47..de840c0 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,2 +1,6 @@
SUBDIRS = manual
+
+memcheck:
+
+leakcheck:
diff --git a/doc/manual/p11-kit-devel.xml b/doc/manual/p11-kit-devel.xml
index 52535d3..12beb5d 100644
--- a/doc/manual/p11-kit-devel.xml
+++ b/doc/manual/p11-kit-devel.xml
@@ -266,6 +266,10 @@ $ make install
the tests. If you run it from a subdirectory only the tests in that
directory will be run.</para>
+ <para>To check for memory errors or memory leaks, run <literal>make memcheck</literal>
+ or <literal>make leakcheck</literal> respectively. This requires valgrind
+ be installed.</para>
+
<para>Build p11-kit with the <option>--enable-coverage</option> configure
option to build code coverage support.</para>