summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-09-02 21:55:15 +0200
committerJim Meyering <meyering@redhat.com>2012-09-05 08:48:29 +0200
commitc30bff07d8d833e326cb6d1cd4309ba78d59d18d (patch)
tree33736eda0d93cd06384c641e95c841af38107eef /cfg.mk
parentdd223558dc5f0a57c4f84497fab3eca590620469 (diff)
downloadcoreutils-c30bff07d8d833e326cb6d1cd4309ba78d59d18d.tar.xz
maint: vc_exe_in_TESTS should actually be a syntax check
Because it requires the presence of the '.git' directory, that is, can be run only for maintainers working from checked-out sources. * tests/local.mk (vc_exe_in_TESTS): Rename and move ... * cfg.mk (sc_tests_list_consistency): ... here, with minor adjustments.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 68fe82f06..888bc386b 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -111,6 +111,19 @@ sc_root_tests:
exit 1; } || :; \
fi
+# Ensure that all version-controlled test cases are listed in $(all_tests).
+sc_tests_list_consistency:
+ @bs="\\"; \
+ test_extensions_rx=`echo $(TEST_EXTENSIONS) \
+ | sed -e "s/ /|/g" -e "s/$$bs./$$bs$$bs./g"`; \
+ { \
+ for t in $(all_tests); do echo $$t; done; \
+ cd $(top_srcdir); \
+ $(SHELL) build-aux/vc-list-files tests \
+ | grep -v '^tests/init\.sh$$' \
+ | $(EGREP) "$$test_extensions_rx\$$"; \
+ } | sort | uniq -u | grep . && exit 1; :
+
# Create a list of regular expressions matching the names
# of files included from system.h. Exclude a couple.
.re-list: