Mercurial > evolve
comparison Makefile @ 5385:5be8fb87ef28
makefile: remove different version tests, currently it's done via CI
These targets were useful at some point. But currently we have too many tests
that would fail on older hg versions when not using the appropriate
compatibility branch, so the targets have limited usefulness.
Right now the task of testing evolve and topic on every supported hg version is
offloaded to the CI, where every compatibility branch gets its own separate
pipeline, and that works and looks well.
It would be nice to have a script (not necessary a make target) to automate the
juggling of various compatibility branches and corresponding hg versions
locally, but right now it's too much work for not much profit and so is not a
priority. For now it makes more sense to remove these make targets than to fix
and maintain them.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 07 Jul 2020 20:10:00 +0800 |
parents | 18a6f5ffab1b |
children | 77729ad7cb0c |
comparison
equal
deleted
inserted
replaced
5384:18a6f5ffab1b | 5385:5be8fb87ef28 |
---|---|
6 help: | 6 help: |
7 @echo 'Commonly used make targets:' | 7 @echo 'Commonly used make targets:' |
8 @echo ' deb-prepare - prepare the build of a debian package' | 8 @echo ' deb-prepare - prepare the build of a debian package' |
9 @echo ' install-home - install with setup.py install --home=$$HOME ($(HOME))' | 9 @echo ' install-home - install with setup.py install --home=$$HOME ($(HOME))' |
10 @echo ' tests - run all tests in the automatic test suite' | 10 @echo ' tests - run all tests in the automatic test suite' |
11 @echo ' tests-%s - run all tests in the specified hg version' | |
12 @echo ' all-version-tests - run all tests against many hg versions' | |
13 | 11 |
14 all: help | 12 all: help |
15 | 13 |
16 deb-prepare: | 14 deb-prepare: |
17 python setup.py sdist --dist-dir .. | 15 python setup.py sdist --dist-dir .. |
34 endif | 32 endif |
35 | 33 |
36 tests: _check_hgroot | 34 tests: _check_hgroot |
37 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) | 35 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
38 | 36 |
39 # /!\ run outside of the compatibility branch output test will likely fails | |
40 | |
41 test-%: _check_hgroot | 37 test-%: _check_hgroot |
42 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) $@ | 38 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) $@ |
43 | 39 |
44 tests-%: _check_hgroot | |
45 hg -R $(HGROOT) checkout $$(echo $@ | sed s/tests-//) && \ | |
46 (cd $(HGROOT) ; $(MAKE) clean ) && \ | |
47 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) | |
48 | |
49 # build a script to extract declared version | |
50 all-version-tests: tests-@ | |
51 | |
52 .PHONY: tests all-version-tests | 40 .PHONY: tests all-version-tests |