9 @echo ' all-version-tests - run all tests against many hg versions' |
7 @echo ' all-version-tests - run all tests against many hg versions' |
10 @echo ' tests-%s - run all tests in the specified hg version' |
8 @echo ' tests-%s - run all tests in the specified hg version' |
11 |
9 |
12 all: help |
10 all: help |
13 |
11 |
14 tests: |
|
15 cd tests && $(PYTHON) run-tests.py --with-hg=$(HG) $(TESTFLAGS) |
|
16 |
|
17 test-%: |
|
18 cd tests && $(PYTHON) run-tests.py --with-hg=$(HG) $(TESTFLAGS) $@ |
|
19 |
|
20 tests-%: |
|
21 @echo "Path to crew repo is $(CREW) - set this with CREW= if needed." |
|
22 hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \ |
|
23 (cd $(CREW) ; $(MAKE) clean ) && \ |
|
24 cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS) |
|
25 |
|
26 all-version-tests: tests-1.3.1 tests-1.4.3 tests-1.5.4 \ |
|
27 tests-1.6.4 tests-1.7.5 tests-1.8 tests-tip |
|
28 |
|
29 deb-prepare: |
12 deb-prepare: |
30 python setup.py sdist --dist-dir .. |
13 python setup.py sdist --dist-dir .. |
31 mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz |
14 mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz |
32 tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz |
15 tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz |
33 rm -rf ../mercurial-evolve_$(VERSION).orig |
16 rm -rf ../mercurial-evolve_$(VERSION).orig |
34 mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig |
17 mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig |
35 cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ |
18 cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ |
36 @cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd` |
19 @cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd` |
37 |
|
38 .PHONY: tests all-version-tests |
|