equal
deleted
inserted
replaced
1 VERSION=$(shell python setup.py --version) |
1 VERSION=$(shell python setup.py --version) |
2 |
2 |
|
3 PYTHON=python |
3 |
4 |
4 help: |
5 help: |
5 @echo 'Commonly used make targets:' |
6 @echo 'Commonly used make targets:' |
6 @echo ' deb-prepare - prepare the build of a debian package' |
7 @echo ' deb-prepare - prepare the build of a debian package' |
7 |
8 |
16 cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ |
17 cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ |
17 @cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd` |
18 @cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd` |
18 |
19 |
19 # test targets |
20 # test targets |
20 |
21 |
21 PYTHON=python |
|
22 ifeq ($(HGROOT),) |
|
23 $(error HGROOT is not set to the root of the hg source tree) |
|
24 endif |
|
25 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
22 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
26 |
23 |
27 HGTESTS=$(HGROOT)/tests |
24 HGTESTS=$(HGROOT)/tests |
28 |
25 |
29 help: |
26 help: |
32 @echo ' all-version-tests - run all tests against many hg versions' |
29 @echo ' all-version-tests - run all tests against many hg versions' |
33 @echo ' tests-%s - run all tests in the specified hg version' |
30 @echo ' tests-%s - run all tests in the specified hg version' |
34 |
31 |
35 all: help |
32 all: help |
36 |
33 |
37 tests: |
34 _check_hgroot: |
|
35 ifeq ($(HGROOT),) |
|
36 $(error HGROOT is not set to the root of the hg source tree) |
|
37 endif |
|
38 |
|
39 tests: _check_hgroot |
38 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
40 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
39 |
41 |
40 # /!\ run outside of the compatibility branch output test will likely fails |
42 # /!\ run outside of the compatibility branch output test will likely fails |
41 |
43 |
42 test-%: |
44 test-%: _check_hgroot |
43 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) $@ |
45 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) $@ |
44 |
46 |
45 tests-%: |
47 tests-%: _check_hgroot |
46 hg -R $(HGROOT) checkout $$(echo $@ | sed s/tests-//) && \ |
48 hg -R $(HGROOT) checkout $$(echo $@ | sed s/tests-//) && \ |
47 (cd $(HGROOT) ; $(MAKE) clean ) && \ |
49 (cd $(HGROOT) ; $(MAKE) clean ) && \ |
48 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
50 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
49 |
51 |
50 # build a script to extract declared version |
52 # build a script to extract declared version |