From: Paul Eggert Date: Sun, 26 Nov 2006 06:00:49 +0000 (+0000) Subject: * Makefile.am (FILES_TO_CHECK): New macro. X-Git-Tag: v1.3.12~58 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=6666f1a6c482aa142364182f10105a985b1d4e59;p=debian%2Fgzip * Makefile.am (FILES_TO_CHECK): New macro. (check-local): Check only the files in FILES_TO_CHECK, since some files under the working directory might be mutating as the test is run, e.g., with "make check >log". Problem reported by Jim Meyering. --- diff --git a/ChangeLog b/ChangeLog index dda185f..22d6179 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-11-25 Paul Eggert + + * Makefile.am (FILES_TO_CHECK): New macro. + (check-local): Check only the files in FILES_TO_CHECK, since some + files under the working directory might be mutating as the test is + run, e.g., with "make check >log". Problem reported by Jim + Meyering. + 2006-11-20 Paul Eggert * NEWS, configure.ac (AC_INIT): diff --git a/Makefile.am b/Makefile.am index af00e4d..3d7adfb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,9 +59,10 @@ SUFFIXES = .in chmod a+x $@ # A simple test, just of gzip -- more of a sanity check than anything else. -check-local: - for file in `find * -type f -print | sort`; do \ - test -r "$$file" || continue; \ +FILES_TO_CHECK = $(bin_SCRIPTS) $(gzip_LDADD) \ + $(top_srcdir)/ChangeLog $(top_srcdir)/configure $(top_srcdir)/gzip.c +check-local: $(FILES_TO_CHECK) + for file in $(FILES_TO_CHECK); do \ ./gzip -cv $$file | ./gzip -d | cmp - "$$file" || exit; \ done @echo 'Test succeeded.'