Expand distcheck test to check for installed files

This would have prevented issue #4.
This commit is contained in:
Iustin Pop
2016-05-01 04:03:21 +02:00
parent d56216eecc
commit 3421b4d92a
+12 -3
View File
@@ -59,10 +59,19 @@ dist:
distcheck: dist
BASE=`mktemp -d` && \
trap "rm -rf $$BASE" EXIT && \
tar xvf $(TARFILE) -C "$$BASE" && \
cd "$$BASE/$(RELEASEDIR)" && \
SRC="$$BASE/src" && mkdir "$$SRC" && \
DST="$$BASE/dst" && mkdir "$$DST" && \
tar xvf $(TARFILE) -C "$$SRC" && \
cd "$$SRC/$(RELEASEDIR)" && \
make && ./mt --version && ./stinit --version && \
make dist
make dist && \
make install DESTDIR="$$DST" && \
numfiles=$$( \
find "$$DST" -type f \
\( -name mt -o -name stinit -o -name mt.1 -o -name stinit.8 \) | \
wc -l) && \
echo "$$numfiles files installed (4 expected)" && \
test "$$numfiles" -eq 4
release-tag:
git tag -s -m 'Release version $(VERSION).' mt-st-$(VERSION)