Add support for running the tests via valgrind
commitcac5d927b51bf378cf599a02d38538cf7ab70146
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Thu, 27 Aug 2009 15:11:07 +0000 (27 16:11 +0100)
committerRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 13 Oct 2009 15:23:54 +0000 (13 16:23 +0100)
tree94996dfd9511a12bfa9190d97d33d2bf6599f1fd
parent04e8824004970f6889b9df126b5db343013c82c9
Add support for running the tests via valgrind

Add some makefile targets, which use valgrind's memcheck tool to
run the tests, in order to help diagnose memory problems in the
library.

In addition, we enable the '--leak-check' option to report on any
memory leaks. However, unlike the other memory problems reported
by memcheck, memory leak reports do not result in an error exit
from valgrind. (So memory leaks are reported on stderr, but don't
halt the test run.)

A suppressions file (tests.supp) is included since libz triggers
some false positives.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Makefile
tests/Makefile
tests/tests.supp [new file with mode: 0644]