From: Felipe Sateler Date: Sun, 3 Jul 2016 15:19:38 +0000 (-0400) Subject: tests: run file via libtool to determine shell scripts X-Git-Tag: v231~87^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bd179ffcd501ae84ec11a3b81b47836a1c0fdc0;p=thirdparty%2Fsystemd.git tests: run file via libtool to determine shell scripts The actual output file might be a wrapper script, so lets follow the indirection Fixes: #3644 --- diff --git a/Makefile.am b/Makefile.am index 0ec407520b1..fa81400bd20 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6417,7 +6417,7 @@ install-tree: all .PHONY: valgrind-tests valgrind-tests: $(TESTS) $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \ - if file $$f | grep -q shell; then \ + if $(LIBTOOL) --mode=execute file $$f | grep -q shell; then \ echo -e "$${x}Skipping non-binary $$f"; else \ echo -e "$${x}Running $$f"; \ $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \