From 81299c921869016d9e547d61c6cd3316352dccd5 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 10 May 2006 09:06:32 +0000 Subject: Run tests under valgrind, if available. --- tests/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 0ac13af..0eb1ee9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -10,6 +10,9 @@ Test_parser_LDADD = ../lib/libtasn1.la Test_tree_SOURCES = Test_tree.c Test_tree_LDADD = ../lib/libtasn1.la +VALGRIND=valgrind --leak-check=full --leak-resolution=high \ + --show-reachable=yes --num-callers=50 TESTS_ENVIRONMENT = \ ASN1PARSER=$(srcdir)/Test_parser.asn \ - ASN1TREE=$(srcdir)/Test_tree.asn + ASN1TREE=$(srcdir)/Test_tree.asn \ + `if type valgrind > /dev/null 2>&1; then echo $(VALGRIND); else echo $$SHELL -c; fi` -- cgit v1.2.3