[libxslt] Make valgrind tests work with libtool
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Make valgrind tests work with libtool
- Date: Wed, 20 Apr 2016 09:46:38 +0000 (UTC)
commit 57c3ed05143c114e2603b766e5638f10ce760f50
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Apr 19 16:10:03 2016 +0200
Make valgrind tests work with libtool
Run valgrind with the actual executable, not the libtool wrapper script.
Also add --leak-check=full.
Makefile.am | 4 ++--
tests/Makefile.am | 2 +-
tests/REC/Makefile.am | 2 +-
tests/REC1/Makefile.am | 2 +-
tests/REC2/Makefile.am | 2 +-
tests/XSLTMark/Makefile.am | 2 +-
tests/docbook/Makefile.am | 2 +-
tests/documents/Makefile.am | 2 +-
tests/exslt/Makefile.am | 2 +-
tests/exslt/common/Makefile.am | 2 +-
tests/exslt/crypto/Makefile.am | 2 +-
tests/exslt/dynamic/Makefile.am | 2 +-
tests/exslt/functions/Makefile.am | 2 +-
tests/exslt/math/Makefile.am | 2 +-
tests/exslt/sets/Makefile.am | 2 +-
tests/exslt/strings/Makefile.am | 2 +-
tests/extensions/Makefile.am | 2 +-
tests/general/Makefile.am | 2 +-
tests/keys/Makefile.am | 2 +-
tests/multiple/Makefile.am | 2 +-
tests/namespaces/Makefile.am | 2 +-
tests/numbers/Makefile.am | 2 +-
tests/reports/Makefile.am | 2 +-
tests/xinclude/Makefile.am | 2 +-
tests/xmlspec/Makefile.am | 2 +-
25 files changed, 26 insertions(+), 26 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e357f19..50af9b5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -56,8 +56,8 @@ tests: dummy
valgrind:
@echo '## Running the regression tests under Valgrind'
@echo '## Go get a cup of coffee it is gonna take a while ...'
- @(cd tests ; $(MAKE) CHECKER='valgrind -q' tests)
- @(cd xsltproc ; $(MAKE) CHECKER='valgrind -q' tests)
+ @(cd tests ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests)
+ @(cd xsltproc ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests)
cleanup:
-@(find . -name .\#\* -exec rm {} \;)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fb0fd55..3eb1c3f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -17,7 +17,7 @@ test tests:
valgrind:
@echo '## Running the regression tests under Valgrind'
@echo '## Go get a cup of coffee it is gonna take a while ...'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
full: tests docbook_tests
diff --git a/tests/REC/Makefile.am b/tests/REC/Makefile.am
index 49f09f0..fd06dd8 100644
--- a/tests/REC/Makefile.am
+++ b/tests/REC/Makefile.am
@@ -84,7 +84,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@(echo > .memdump)
diff --git a/tests/REC1/Makefile.am b/tests/REC1/Makefile.am
index 0688daa..cd34f29 100644
--- a/tests/REC1/Makefile.am
+++ b/tests/REC1/Makefile.am
@@ -9,7 +9,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
# No special stuff here, just a single test that either works or doesn't!
test tests: $(top_builddir)/xsltproc/xsltproc
diff --git a/tests/REC2/Makefile.am b/tests/REC2/Makefile.am
index 72e9af1..a075b90 100644
--- a/tests/REC2/Makefile.am
+++ b/tests/REC2/Makefile.am
@@ -9,7 +9,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
# Just 3 specific files tested, they either work or don't!
test tests: $(top_builddir)/xsltproc/xsltproc
diff --git a/tests/XSLTMark/Makefile.am b/tests/XSLTMark/Makefile.am
index b4642a1..250992c 100644
--- a/tests/XSLTMark/Makefile.am
+++ b/tests/XSLTMark/Makefile.am
@@ -66,7 +66,7 @@ test tests:
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
CLEANFILES = *.tmp *~ .memdump core db100.xml db1000.xml db10000.xml
diff --git a/tests/docbook/Makefile.am b/tests/docbook/Makefile.am
index 8dd336a..09e7239 100644
--- a/tests/docbook/Makefile.am
+++ b/tests/docbook/Makefile.am
@@ -7,7 +7,7 @@ tests:
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)
diff --git a/tests/documents/Makefile.am b/tests/documents/Makefile.am
index 6cd98a0..97c9fd8 100644
--- a/tests/documents/Makefile.am
+++ b/tests/documents/Makefile.am
@@ -14,7 +14,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@(echo > .memdump)
diff --git a/tests/exslt/Makefile.am b/tests/exslt/Makefile.am
index 81596f5..f749efd 100644
--- a/tests/exslt/Makefile.am
+++ b/tests/exslt/Makefile.am
@@ -7,5 +7,5 @@ test tests:
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
diff --git a/tests/exslt/common/Makefile.am b/tests/exslt/common/Makefile.am
index dc6a1b5..5b5895c 100644
--- a/tests/exslt/common/Makefile.am
+++ b/tests/exslt/common/Makefile.am
@@ -20,7 +20,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt common tests'
diff --git a/tests/exslt/crypto/Makefile.am b/tests/exslt/crypto/Makefile.am
index 9913ad3..01c31a3 100644
--- a/tests/exslt/crypto/Makefile.am
+++ b/tests/exslt/crypto/Makefile.am
@@ -10,7 +10,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt crypto tests'
diff --git a/tests/exslt/dynamic/Makefile.am b/tests/exslt/dynamic/Makefile.am
index 9b1177c..683282f 100644
--- a/tests/exslt/dynamic/Makefile.am
+++ b/tests/exslt/dynamic/Makefile.am
@@ -10,7 +10,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt sets tests'
diff --git a/tests/exslt/functions/Makefile.am b/tests/exslt/functions/Makefile.am
index 697b3ed..303043a 100644
--- a/tests/exslt/functions/Makefile.am
+++ b/tests/exslt/functions/Makefile.am
@@ -19,7 +19,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt function tests'
diff --git a/tests/exslt/math/Makefile.am b/tests/exslt/math/Makefile.am
index facaa41..68bea6a 100644
--- a/tests/exslt/math/Makefile.am
+++ b/tests/exslt/math/Makefile.am
@@ -21,7 +21,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt math tests'
diff --git a/tests/exslt/sets/Makefile.am b/tests/exslt/sets/Makefile.am
index bc14fdf..2f77c2d 100644
--- a/tests/exslt/sets/Makefile.am
+++ b/tests/exslt/sets/Makefile.am
@@ -14,7 +14,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt sets tests'
diff --git a/tests/exslt/strings/Makefile.am b/tests/exslt/strings/Makefile.am
index c5e3f40..dbd8f7c 100644
--- a/tests/exslt/strings/Makefile.am
+++ b/tests/exslt/strings/Makefile.am
@@ -14,7 +14,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt string tests'
diff --git a/tests/extensions/Makefile.am b/tests/extensions/Makefile.am
index 284e2f5..17d7e7d 100644
--- a/tests/extensions/Makefile.am
+++ b/tests/extensions/Makefile.am
@@ -11,7 +11,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running extensions tests'
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 4802a6b..8b4626f 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -199,7 +199,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running general tests'
diff --git a/tests/keys/Makefile.am b/tests/keys/Makefile.am
index 08e645d..faeed36 100644
--- a/tests/keys/Makefile.am
+++ b/tests/keys/Makefile.am
@@ -9,7 +9,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running keys tests'
diff --git a/tests/multiple/Makefile.am b/tests/multiple/Makefile.am
index ceaaa76..1c40c2d 100644
--- a/tests/multiple/Makefile.am
+++ b/tests/multiple/Makefile.am
@@ -32,7 +32,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running multiple tests'
diff --git a/tests/namespaces/Makefile.am b/tests/namespaces/Makefile.am
index cfea1ea..a81f22f 100644
--- a/tests/namespaces/Makefile.am
+++ b/tests/namespaces/Makefile.am
@@ -20,7 +20,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running namespaces tests'
diff --git a/tests/numbers/Makefile.am b/tests/numbers/Makefile.am
index 2ca6eba..8fa9ba0 100644
--- a/tests/numbers/Makefile.am
+++ b/tests/numbers/Makefile.am
@@ -9,7 +9,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running numbers tests'
diff --git a/tests/reports/Makefile.am b/tests/reports/Makefile.am
index af413f0..a017afd 100644
--- a/tests/reports/Makefile.am
+++ b/tests/reports/Makefile.am
@@ -15,7 +15,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running reports tests'
diff --git a/tests/xinclude/Makefile.am b/tests/xinclude/Makefile.am
index 8d408de..3562454 100644
--- a/tests/xinclude/Makefile.am
+++ b/tests/xinclude/Makefile.am
@@ -15,7 +15,7 @@ CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running XInclude test'
diff --git a/tests/xmlspec/Makefile.am b/tests/xmlspec/Makefile.am
index 123d02e..9770058 100644
--- a/tests/xmlspec/Makefile.am
+++ b/tests/xmlspec/Makefile.am
@@ -11,7 +11,7 @@ CLEANFILES = .memdump debug
valgrind:
@echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='valgrind -q' tests
+ $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running xmlspec tests'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]