diff options
Diffstat (limited to 'maint/fullcheck.mk')
-rw-r--r-- | maint/fullcheck.mk | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/maint/fullcheck.mk b/maint/fullcheck.mk new file mode 100644 index 000000000..038a30cf5 --- /dev/null +++ b/maint/fullcheck.mk @@ -0,0 +1,47 @@ +# SYNOPSIS +# make fullcheck +# DESCRIPTION +# Runs make check for all possible default mailbox types. +# PREREQUISITES +# Main Makefile from the Mailutils top-level source directory must be +# included atop of this one. +# +FORMATS = mbox dotmail mh maildir +DISTNAME = $(PACKAGE)-$(PACKAGE_VERSION) + +fullcheck: $(foreach fmt,$(FORMATS),check-$(fmt)) + @rmdir fullcheck + @text="$(DISTNAME) passed all tests";\ + echo $$text | sed -e 's/./=/g';\ + echo $$text;\ + echo $$text | sed -e 's/./=/g' + +fullcheck_dist: $(DISTNAME).tar.gz + +$(DISTNAME).tar.gz: ChangeLog + make dist distdir=$(DISTNAME) + +define fullcheckdir_tmpl +fullcheckdir-$(1): + rm -rf fullcheckdir/$(1) + mkdir -p fullcheckdir/$(1) +endef + +define fullcheck_tmpl +check-$(fmt): fullcheck_dist fullcheckdir-$(fmt) + cd fullcheckdir/$(fmt) && \ + tar xf ../../$(DISTNAME).tar.gz && \ + cd $(DISTNAME) && \ + mkdir .build && \ + cd .build && \ + ../configure MU_DEFAULT_SCHEME=$(fmt) && \ + make check + rm -rf fullcheckdir/$(fmt) +endef + +$(foreach fmt,$(FORMATS),$(eval $(call fullcheckdir_tmpl,$(fmt)))) + +$(foreach fmt,$(FORMATS),$(eval $(call fullcheck_tmpl,$(fmt)))) + + + |