diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-05-10 09:06:32 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-05-10 09:06:32 +0000 |
commit | 81299c921869016d9e547d61c6cd3316352dccd5 (patch) | |
tree | 5cd7eb8f982cd470adc4907cd4b0e76bf7caf4ea /tests | |
parent | 60189955849e98b44f4dc550a58346dc4ee0741a (diff) | |
download | libtasn1-81299c921869016d9e547d61c6cd3316352dccd5.tar.gz libtasn1-81299c921869016d9e547d61c6cd3316352dccd5.tar.bz2 libtasn1-81299c921869016d9e547d61c6cd3316352dccd5.zip |
Run tests under valgrind, if available.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
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` |