summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-07-03 17:20:36 +0100
committerPádraig Brady <P@draigBrady.com>2015-07-03 17:36:26 +0100
commitdb3f9596ff9c1a8986f9d308969f8a265e3d7344 (patch)
treef891663f830dc0699b8a24b40435942b8cd7d0d5
parent11091122c5bbffc1a46db249bf8f92835c0da6f4 (diff)
downloadcoreutils-db3f9596ff9c1a8986f9d308969f8a265e3d7344.tar.xz
maint: avoid false syntax-check failure in distcheck
* cfk.mk (sc_tests_executable): Restrict the check to git files, so we don't flag any gnulib files added to test/ during `make distcheck`.
-rw-r--r--cfg.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 329920761..29649dccf 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -120,6 +120,8 @@ sc_tests_executable:
@set -o noglob 2>/dev/null || set -f; \
find_ext="-name '' "`printf -- "-o -name *%s " $(TEST_EXTENSIONS)`;\
find $(srcdir)/tests/ \( $$find_ext \) \! -perm -u+x -print \
+ | { sed "s|^$(srcdir)/||"; git ls-files $(srcdir)/tests/; } \
+ | sort | uniq -d \
| sed -e "s/^/$(ME): Please make test executable: /" | grep . \
&& exit 1; :