Create a make check target

This is the exact same mini-"tests" that are used in distcheck, but
separated so that the tests can be run with coverage tracking. Would
be good not to have duplicates - maybe use make check inside the
distcheck?
This commit is contained in:
Iustin Pop
2021-06-05 23:41:47 +02:00
parent 9759c9c469
commit 5a88467b88
+9
View File
@@ -86,6 +86,15 @@ distcheck: dist
echo "$$numfiles files installed (5 expected)" && \
test "$$numfiles" -eq 5
check: $(PROGS)
echo Checking version output
./mt --version
./stinit --version
echo Checking parse status
./stinit -p -f stinit.def.examples
echo Checking complete stinit parsing
( ./stinit -v -v -p -f stinit.def.examples 2>&1 | grep -q 'Mode 1 definition: scsi2logical=1 can-bsr=1 auto-lock=0 two-fms=0 drive-buffering=1 buffer-writes read-ahead=1 async-writes=1 can-partitions=0 fast-eom=1 blocksize=0 sili=1 timeout=900 long-timeout=14400 density=0x44 compression=0' )
release-tag:
git tag -s -m 'Release version $(VERSION).' mt-st-$(VERSION)