Return an error code when extra files are found in filecheck:
This commit is contained in:
parent
248c2b9bf5
commit
adc032e7d8
@ -62,12 +62,15 @@ filecheck:
|
|||||||
rm test-place/*~; \
|
rm test-place/*~; \
|
||||||
for f in $(EXTRA_DIST); do \
|
for f in $(EXTRA_DIST); do \
|
||||||
if test -f "$(top_srcdir)/tests/data/$$f"; then \
|
if test -f "$(top_srcdir)/tests/data/$$f"; then \
|
||||||
rm -f test-place/$$f; \
|
rm -f "test-place/$$f"; \
|
||||||
else \
|
else \
|
||||||
echo "$$f is listed but missing!"; \
|
echo "$$f is listed but missing!"; \
|
||||||
fi \
|
fi \
|
||||||
done; \
|
done; \
|
||||||
echo "Local files not present in EXTRA_DIST:" ; \
|
echo "Local files not present in EXTRA_DIST:" ; \
|
||||||
ls test-place; \
|
ls test-place; \
|
||||||
rm -rf test-place
|
! ls test-place | grep . >/dev/null ; \
|
||||||
|
RC=$$? ; \
|
||||||
|
rm -rf test-place ; \
|
||||||
|
exit $$RC
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user