Return an error code when extra files are found in filecheck:

This commit is contained in:
Dan Fandrich 2008-07-29 18:57:01 +00:00
parent 248c2b9bf5
commit adc032e7d8

View File

@ -62,12 +62,15 @@ filecheck:
rm test-place/*~; \
for f in $(EXTRA_DIST); do \
if test -f "$(top_srcdir)/tests/data/$$f"; then \
rm -f test-place/$$f; \
rm -f "test-place/$$f"; \
else \
echo "$$f is listed but missing!"; \
fi \
done; \
echo "Local files not present in EXTRA_DIST:" ; \
ls test-place; \
rm -rf test-place
! ls test-place | grep . >/dev/null ; \
RC=$$? ; \
rm -rf test-place ; \
exit $$RC