Mercurial > hg-git
comparison Makefile @ 1098:c79597908178
tests: remove now-redundant doctest runs from `make tests`
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Fri, 22 Dec 2017 16:15:18 -0600 |
parents | 826363837447 |
children | ed168ce47715 |
comparison
equal
deleted
inserted
replaced
1097:80b8188a6eb1 | 1098:c79597908178 |
---|---|
8 @echo ' tests-%s - run all tests in the specified hg version' | 8 @echo ' tests-%s - run all tests in the specified hg version' |
9 | 9 |
10 all: help | 10 all: help |
11 | 11 |
12 tests: | 12 tests: |
13 $(PYTHON) -m doctest hggit/*.py contrib/*.py | |
14 cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS) | 13 cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS) |
15 | 14 |
16 test-%: | 15 test-%: |
17 cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS) $@ | 16 cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS) $@ |
18 | 17 |
19 tests-%: | 18 tests-%: |
20 @echo "Path to crew repo is $(CREW) - set this with CREW= if needed." | 19 @echo "Path to crew repo is $(CREW) - set this with CREW= if needed." |
21 hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \ | 20 hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \ |
22 (cd $(CREW) ; $(MAKE) clean local) && \ | 21 (cd $(CREW) ; $(MAKE) clean local) && \ |
23 PYTHONPATH=$(CREW) $(PYTHON) -m doctest hggit/*.py contrib/*.py && \ | |
24 cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS) | 22 cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS) |
25 | 23 |
26 # This is intended to be the authoritative list of Hg versions that this | 24 # This is intended to be the authoritative list of Hg versions that this |
27 # extension is tested with. Versions prior to the version that ships in the | 25 # extension is tested with. Versions prior to the version that ships in the |
28 # latest Ubuntu LTS release (2.8.2 for 14.04 LTS) may be dropped if they | 26 # latest Ubuntu LTS release (2.8.2 for 14.04 LTS) may be dropped if they |