chiark / gitweb /
build-sys: make valgrind-tests target output nicer
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Jan 2014 01:19:58 +0000 (20:19 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 Jan 2014 00:45:47 +0000 (19:45 -0500)
Makefile.am

index 44b69171a412e8a4da3a3eb58bf975e785221ee2..069583cfd4afd69b73a10864b0404d9b3626da30 100644 (file)
@@ -4902,8 +4902,10 @@ install-tree: all
 # exclude the one perl script we have in there
 valgrind-tests: $(TESTS)
        $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
 # exclude the one perl script we have in there
 valgrind-tests: $(TESTS)
        $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
+               if file $$f | grep -q shell; then \
+               echo -e "$${x}Skipping non-binary $$f"; else \
                echo -e "$${x}Running $$f"; \
                echo -e "$${x}Running $$f"; \
-               libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; \
+               libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; fi; \
                x="\n\n"; \
        done
 
                x="\n\n"; \
        done