From 5a88467b881a236599a61f98cc261896cdbe0b97 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sat, 5 Jun 2021 23:41:47 +0200 Subject: [PATCH] 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? --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index a5c25f1..284f914 100644 --- a/Makefile +++ b/Makefile @@ -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)