sapling/Makefile

28 lines
928 B
Makefile
Raw Normal View History

2010-01-04 17:28:59 +03:00
PYTHON=python
help:
@echo 'Commonly used make targets:'
@echo ' tests - run all tests in the automatic test suite'
@echo ' all-version-tests - run all tests against many hg versions'
@echo ' tests-%s - run all tests in the specified hg version'
2010-01-04 17:28:59 +03:00
all: help
.PHONY: tests
2010-01-04 17:28:59 +03:00
tests:
@echo "Path to crew repo is $(CREW) - set this with CREW= if needed."
cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS)
2010-01-04 17:28:59 +03:00
test-%:
@echo "Path to crew repo is $(CREW) - set this with CREW= if needed."
cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS) $@
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 tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS)
2014-10-03 20:43:22 +04:00
all-version-tests: tests-1.7.5 tests-1.8.1 tests-1.9.3 tests-2.0.2 tests-2.9 tests-3.1.1 tests-tip