2009-04-28 22:25:53 +04:00
|
|
|
PYTHON=python
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo 'Commonly used make targets:'
|
2010-08-15 18:41:28 +04:00
|
|
|
@echo ' tests - run all tests in the automatic test suite'
|
2012-02-15 05:30:06 +04:00
|
|
|
@echo ' all-version-tests - run all tests against many hg versions'
|
2010-08-15 18:41:28 +04:00
|
|
|
@echo ' tests-%s - run all tests in the specified hg version'
|
2009-04-28 22:25:53 +04:00
|
|
|
|
2010-08-15 18:41:28 +04:00
|
|
|
all: help
|
2009-04-28 22:25:53 +04:00
|
|
|
|
|
|
|
tests:
|
|
|
|
cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS)
|
|
|
|
|
|
|
|
test-%:
|
2009-04-28 23:13:16 +04:00
|
|
|
cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS) $@
|
2010-08-15 18:41:28 +04:00
|
|
|
|
|
|
|
tests-%:
|
|
|
|
@echo "Path to crew repo is $(CREW) - set this with CREW= if needed."
|
|
|
|
hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \
|
2010-08-26 00:38:30 +04:00
|
|
|
(cd $(CREW) ; $(MAKE) clean ) && \
|
2010-08-15 18:41:28 +04:00
|
|
|
cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS)
|
|
|
|
|
2012-08-23 07:39:45 +04:00
|
|
|
# This is intended to be the authoritative list of Hg versions that this
|
|
|
|
# extension is tested with. Versions prior to the version that ships in the
|
2014-05-14 01:25:04 +04:00
|
|
|
# latest Ubuntu LTS release (2.8.2 for 14.04 LTS) may be dropped if they
|
2012-08-23 07:39:45 +04:00
|
|
|
# interfere with new development. The latest released minor version should be
|
|
|
|
# listed for each major version; earlier minor versions are not needed.
|
2014-06-18 01:24:21 +04:00
|
|
|
all-version-tests: tests-2.8.2 tests-3.0.1 tests-@
|
2010-10-29 17:36:29 +04:00
|
|
|
|
|
|
|
.PHONY: tests all-version-tests
|