(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-25 Paul Eggert <eggert@cs.ucla.edu>
+
+ * 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 <eggert@cs.ucla.edu>
* NEWS, configure.ac (AC_INIT):
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.'