[gxml] test/valgrind/Makefile: to use 'make run', get user to pass name of program to test as a macro



commit f5554906e76f7622203dac5865b0bafd6275925e
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sun Sep 29 02:02:10 2013 -0400

    test/valgrind/Makefile: to use 'make run', get user to pass name of program to test as a macro

 test/valgrind/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/test/valgrind/Makefile b/test/valgrind/Makefile
index cead46c..5cb0d62 100644
--- a/test/valgrind/Makefile
+++ b/test/valgrind/Makefile
@@ -32,8 +32,9 @@ runnew:
 supp: *.supp
        cat *.supp > ../../gxml.supp
 
+# use this like 'make run SUBJECT=./attributes'
 run: all
-       G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes --suppressions=libxml2.supp 
--suppressions=gio.supp --suppressions=gtype.supp --suppressions=glib.supp --num-callers=40 
./document_create_minimal
+       G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes --suppressions=libxml2.supp 
--suppressions=gio.supp --suppressions=gtype.supp --suppressions=glib.supp --num-callers=40 ${SUBJECT}
 
 run_nosupp:
        G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes --num-callers=40 ./document


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]