changeset 1042:c96bf9e61598

tests: run doctests when testing against particular hg versions
author Kevin Bullock <kbullock@ringworld.org>
date Mon, 07 Aug 2017 15:40:42 -0400
parents fddb62eaf217
children b4d2180739bb
files Makefile
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,8 @@
 tests-%:
 	@echo "Path to crew repo is $(CREW) - set this with CREW= if needed."
 	hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \
-	(cd $(CREW) ; $(MAKE) clean ) && \
+	(cd $(CREW) ; $(MAKE) clean local) && \
+	PYTHONPATH=$(CREW) $(PYTHON) -m doctest hggit/*.py contrib/*.py && \
 	cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS)
 
 # This is intended to be the authoritative list of Hg versions that this