comparison Makefile @ 0:bbeef801409c

minimalistic state concept.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Fri, 20 May 2011 16:16:34 +0200
parents
children b18b00036355
comparison
equal deleted inserted replaced
-1:000000000000 0:bbeef801409c
1 PYTHON=python
2 HG=`which hg`
3
4 help:
5 @echo 'Commonly used make targets:'
6 @echo ' tests - run all tests in the automatic test suite'
7 @echo ' all-version-tests - run all tests against many hg versions'
8 @echo ' tests-%s - run all tests in the specified hg version'
9
10 all: help
11
12 tests:
13 cd tests && $(PYTHON) run-tests.py --with-hg=$(HG) $(TESTFLAGS)
14
15 test-%:
16 cd tests && $(PYTHON) run-tests.py --with-hg=$(HG) $(TESTFLAGS) $@
17
18 tests-%:
19 @echo "Path to crew repo is $(CREW) - set this with CREW= if needed."
20 hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \
21 (cd $(CREW) ; $(MAKE) clean ) && \
22 cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS)
23
24 all-version-tests: tests-1.3.1 tests-1.4.3 tests-1.5.4 \
25 tests-1.6.4 tests-1.7.5 tests-1.8 tests-tip
26
27 .PHONY: tests all-version-tests