##// END OF EJS Templates
Makefile: introduce testpy-% target for testing with a specifc Python...
Augie Fackler -
r24194:00809c43 default
parent child Browse files
Show More
@@ -7,6 +7,8 b''
7 PREFIX=/usr/local
7 PREFIX=/usr/local
8 export PREFIX
8 export PREFIX
9 PYTHON=python
9 PYTHON=python
10 $(eval HGROOT := $(shell pwd))
11 HGPYTHONS ?= $(HGROOT)/build/pythons
10 PURE=
12 PURE=
11 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
13 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
12 DOCFILES=mercurial/help/*.txt
14 DOCFILES=mercurial/help/*.txt
@@ -98,6 +100,13 b' tests:'
98 test-%:
100 test-%:
99 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@
101 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@
100
102
103 testpy-%:
104 @echo Looking for Python $* in $(HGPYTHONS)
105 [ -e $(HGPYTHONS)/$*/bin/python ] || ( \
106 cd $$(mktemp --directory --tmpdir) && \
107 $(MAKE) -f $(HGROOT)/contrib/Makefile.python PYTHONVER=$* PREFIX=$(HGPYTHONS)/$* python )
108 cd tests && $(HGPYTHONS)/$*/bin/python run-tests.py $(TESTFLAGS)
109
101 check-code:
110 check-code:
102 hg manifest | xargs python contrib/check-code.py
111 hg manifest | xargs python contrib/check-code.py
103
112
General Comments 0
You need to be logged in to leave comments. Login now