[libpeas] Name the valgrind and callgrind logs better



commit a6f9af067e39b8f96a6cbd03a45eb053b90d3b8c
Author: Garrett Regier <garrettregier gmail com>
Date:   Sat Dec 20 09:05:38 2014 -0800

    Name the valgrind and callgrind logs better
    
    Using vgdump and cgdump isn't very informative.

 .gitignore           |    4 ++--
 tests/Makefile.tests |   14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 41e7b3e..0435143 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,8 +76,8 @@ Makefile.in
 /stamp-h1
 /tests/*-report.html
 /tests/*-report.xml
-/tests/*/cgdump-*
-/tests/*/vgdump-*
+/tests/*/callgrind-*.log
+/tests/*/valgrind-*.log
 /tests/libpeas/engine
 /tests/libpeas/extension-c
 /tests/libpeas/extension-lua51
diff --git a/tests/Makefile.tests b/tests/Makefile.tests
index 9caaf31..e4ee260 100644
--- a/tests/Makefile.tests
+++ b/tests/Makefile.tests
@@ -30,24 +30,24 @@ if VALGRIND_ENABLED
 test-valgrind: all
        @test -z "$(TEST_PROGS)" || \
         for test_prog in $(TEST_PROGS) ; do \
-          if test -e vgdump-$$test_prog; then \
-            unlink vgdump-$$test_prog; \
+          if test -e valgrind-$${test_prog}.log; then \
+            unlink valgrind-$${test_prog}.log; \
           fi ; \
           G_SLICE=always-malloc G_DEBUG=gc-friendly,resident-modules \
             libtool --mode=execute valgrind --leak-check=full \
             --leak-resolution=high --num-callers=20 \
             --suppressions=$(top_srcdir)/tests/valgrind.suppressions \
-            --log-file=vgdump-$$test_prog $$test_prog || exit 1 ; \
+            --log-file=valgrind-$${test_prog}.log $$test_prog || exit 1 ; \
         done
 
 test-callgrind: all
        @test -z "$(TEST_PROGS)" || \
         for test_prog in $(TEST_PROGS) ; do \
-          if test -e cgdump-$$test_prog; then \
-            unlink cgdump-$$test_prog; \
+          if test -e callgrind-$${test_prog}.log; then \
+            unlink callgrind-$${test_prog}.log; \
           fi ; \
           libtool --mode=execute valgrind --tool=callgrind \
-            --callgrind-out-file=cgdump-$$test_prog \
+            --callgrind-out-file=callgrind-$${test_prog}.log \
             --log-file=/dev/null $$test_prog || exit 1 ; \
         done
 
@@ -62,6 +62,6 @@ generate-report: all
        @test -z "$(TEST_PROGS)" || \
         G_SLICE=debug-blocks $(GTESTER) $(GTESTER_ARGS) $(TEST_PROGS)
 
-CLEANFILES = cgdump-* vgdump-*
+CLEANFILES = callgrind-*.log valgrind-*.log
 
 .PHONY: test test-gdb test-valgrind test-callgrind generate-report


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