Skip to content

Commit 9bcbaae

Browse files
committed
[build][valgrind] Improve feedback when starting and on result
1 parent bcd3368 commit 9bcbaae

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,15 @@ chunked: doc
128128

129129
.PHONY:valgrind
130130
valgrind: build-it
131-
> valgrind.log
132-
for lib in `ls build/tests/$(PREFIX)*_tests$(SUFFIX)` ; \
131+
@echo -n "Running all tests under Valgrind "
132+
@> valgrind.log
133+
@for lib in `ls build/tests/$(PREFIX)*_tests$(SUFFIX)` ; \
133134
do \
135+
echo -n "." ; \
134136
LD_LIBRARY_PATH=build/src valgrind --leak-check=full build/tools/cgreen-runner $$lib >> valgrind.log 2>&1 ; \
135137
done
136-
grep " lost:" valgrind.log | grep -v " 0 bytes" | wc -l
138+
@echo
139+
grep --with-filename --line-number " lost:" valgrind.log | grep -v " 0 bytes"
137140

138141

139142

0 commit comments

Comments
 (0)