diff options
author | Jim Meyering <jim@meyering.net> | 2007-08-16 16:28:11 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-09-15 08:40:38 +0200 |
commit | c840cd4334c086f5ce4d9144d9fac75643824a38 (patch) | |
tree | d189abc0f2395a2b799ed47ebabf0ef54b06b4df /tests/check.mk | |
parent | 7a6a30b8a2dea2a1b49d43ee9ab70880a0aa435a (diff) | |
download | coreutils-c840cd4334c086f5ce4d9144d9fac75643824a38.tar.xz |
Parallel "make check" support.
* build-aux/check.mk: New file, from The Vaucanson Group.
* .x-sc_GPL_version: New file, to allow "version 2 or later"
in build-aux/check.mk.
* Makefile.am (EXTRA_DIST): Add .x-sc_GPL_version.
* tests/check.mk: New file.
* tests/Makefile.am (EXTRA_DIST): Add check.mk, mkdtemp and test-lib.sh.
Begin factoring "sample-test" out of test scripts.
* tests/test-lib.sh: New file, to be sourced by all tests that
were previously derived from the "sample-test" template.
* tests/mkdtemp: New file.
* tests/touch/dir-1: Use test-lib.sh.
* tests/touch/empty-file: Likewise.
* tests/touch/fail-diag: Likewise.
* tests/touch/fifo: Likewise.
* tests/touch/no-create-missing: Likewise.
* tests/touch/no-rights: Likewise. Also, don't sleep.
* tests/touch/not-owner: Likewise.
* tests/touch/obsolescent: Likewise.
* tests/touch/read-only: Likewise.
* tests/touch/relative: Likewise.
* tests/touch/Makefile.am: Include $(top_srcdir)/tests/check.mk,
to get the parallel-"make check" bits.
Move a slow test into tests/misc.
* tests/check.mk: Wrapper.
* tests/ls/time-1: Move this file to tests/misc/ls-time.
* tests/misc/ls-time: New file. From tests/ls/time-1.
* tests/ls/Makefile.am (TESTS): Remove time-1.
* tests/misc/Makefile.am (TESTS): Add ls-time.
Diffstat (limited to 'tests/check.mk')
-rw-r--r-- | tests/check.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/check.mk b/tests/check.mk new file mode 100644 index 000000000..f5c08a259 --- /dev/null +++ b/tests/check.mk @@ -0,0 +1,22 @@ +# FIXME: add comment + +# Ensure that all version-controlled executable files are listed in TESTS. +_v = TESTS +FIXME_hook_this_to_make_distcheck: + sed -n '/^$(_v) =/,/[^\]$$/p' $(srcdir)/Makefile.am \ + | sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \ + | tr -s '\012\\' ' ' | fmt -1 | sort -u > t1 + find `$(top_srcdir)/build-aux/vc-list-files $(srcdir)` \ + -type f -perm -111 -printf '%f\n'|sort -u \ + | diff -u t1 - + +# Append this, because automake does the same. +TESTS_ENVIRONMENT += \ + abs_top_srcdir=$(abs_top_srcdir) \ + srcdir=$(srcdir) + +TEST_LOGS = $(TESTS:=.log) + +# Parallel replacement of Automake's check-TESTS target. +# Include it last. +include $(top_srcdir)/build-aux/check.mk |