Some support for testing with valgrind.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 3 Nov 2002 13:21:26 +0000 (13:21 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 3 Nov 2002 13:21:26 +0000 (13:21 +0000)
t/Makefile.am
t/test_valgrind [new file with mode: 0755]
t/untest_valgrind [new file with mode: 0755]

index 469f53cb20e11384c1c8a676d152d9fcaa62737a..f898e0339a0bfa51790430d564e5dcba08e87188 100644 (file)
@@ -6,7 +6,7 @@ SUBDIRS=src input output .
 
 TESTS := $(wildcard $(srcdir)/*.test)
 
-EXTRA_DIST=$(TESTS)
+EXTRA_DIST=$(TESTS) test_valgrind untest_valgrind
 
 TESTS_ENVIRONMENT=ICONV_PATH=@ICONV_PATH@
 
diff --git a/t/test_valgrind b/t/test_valgrind
new file mode 100755 (executable)
index 0000000..a857276
--- /dev/null
@@ -0,0 +1 @@
+export GEDCOM_TESTENV='valgrind --leak-check=yes --show-reachable=yes --num-callers=20'
diff --git a/t/untest_valgrind b/t/untest_valgrind
new file mode 100755 (executable)
index 0000000..992b560
--- /dev/null
@@ -0,0 +1 @@
+unset GEDCOM_TESTENV