Enable some previously omitted test scripts. Add a test cross-check.
[coreutils/ericb.git] / tests / check.mk
blobd358f18cf6348c916125dfa70b13abbe883dce84
1 # Include this file at the end of each tests/*/Makefile.am.
2 # Copyright (C) 2007 Free Software Foundation, Inc.
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Ensure that all version-controlled executable files are listed in TESTS.
18 vc_exe_in_TESTS: Makefile
19 @if test -d $(top_srcdir)/.git; then \
20 echo $(TESTS) | tr -s ' ' '\n' | sort -u > t1; \
21 for f in `$(top_srcdir)/build-aux/vc-list-files .`; do \
22 test -f "$$f" && test -x "$$f" && echo "$$f"; \
23 done | sort -u | diff -u t1 -; \
24 else :; fi
26 check: vc_exe_in_TESTS
27 .PHONY: vc_exe_in_TESTS
29 # Append this, because automake does the same.
30 TESTS_ENVIRONMENT += \
31 top_srcdir=$(top_srcdir) \
32 abs_top_srcdir=$(abs_top_srcdir) \
33 abs_top_builddir=$(abs_top_builddir) \
34 srcdir=$(srcdir)
36 TEST_LOGS = $(TESTS:=.log)
38 # Parallel replacement of Automake's check-TESTS target.
39 # CAVEAT: code in the following relies on GNU make.
40 include $(top_srcdir)/build-aux/check.mk