summaryrefslogtreecommitdiff
path: root/tests/check.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-20 10:07:12 +0200
committerJim Meyering <meyering@redhat.com>2007-10-20 10:07:12 +0200
commit5dabe472b07c1962783838ed83ec8fcd1faa4389 (patch)
treee1ccd878ef5c8e7df239ceed721c3fdd06f2adc7 /tests/check.mk
parent736b78af4f928932be8d4adcc33ab025ef5ba16c (diff)
downloadcoreutils-5dabe472b07c1962783838ed83ec8fcd1faa4389.tar.xz
Adjust tests to pass, now that Test.pm ones use check.mk.
* tests/check.mk (vc_exe_in_TESTS): Adjust regexp not to match the "TESTS = $x-tests" line in each Test.pm-derived Makefile.am file. * tests/sort/main: Remove this unused file.
Diffstat (limited to 'tests/check.mk')
-rw-r--r--tests/check.mk20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/check.mk b/tests/check.mk
index aad6433db..39b094dc1 100644
--- a/tests/check.mk
+++ b/tests/check.mk
@@ -15,17 +15,19 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Ensure that all version-controlled executable files are listed in TESTS.
+# Collect test names from the line matching /^TESTS = \\$$/ to the following
+# one that does not end in '\'.
_v = TESTS
vc_exe_in_TESTS: Makefile
- @if test -d $(top_srcdir)/.git; then \
- sed -n '/^$(_v) =/,/[^\]$$/p' $(srcdir)/Makefile.am \
- | sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \
- | tr -s '\012\\' ' ' | fmt -1 | sort -u > t1 && \
- for f in `$(top_srcdir)/build-aux/vc-list-files .`; do \
- test -f "$$f" && test -x "$$f" && echo "$$f"; \
- done | sort -u > t2 && \
- diff -u t1 t2 || exit 1; \
- rm -f t1 t2; \
+ @if test -d $(top_srcdir)/.git; then \
+ sed -n '/^$(_v) = \\$$/,/[^\]$$/p' $(srcdir)/Makefile.am \
+ | sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \
+ | tr -s '\012\\' ' ' | fmt -1 | sort -u > t1 && \
+ for f in `$(top_srcdir)/build-aux/vc-list-files .`; do \
+ test -f "$$f" && test -x "$$f" && echo "$$f"; \
+ done | sort -u > t2 && \
+ diff -u t1 t2 || exit 1; \
+ rm -f t1 t2; \
else :; fi
check: vc_exe_in_TESTS