annotate Makefile @ 719:3a045277a434

Makefile: drop support for hg older than 2.8.2 Ubuntu's current LTS release (Trusty Tahr) comes with Mercurial 2.8.2, which still works fine with current code. The older LTS comes with a version that's broken, but I don't have to worry about that anymore.
author Augie Fackler <raf@durin42.com>
date Tue, 13 May 2014 17:25:04 -0400
parents f0e774680e70
children 6f4fe8ad1883
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
1 PYTHON=python
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
2
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
3 help:
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
4 @echo 'Commonly used make targets:'
354
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
5 @echo ' tests - run all tests in the automatic test suite'
448
e58a6d0b80e2 Remove illegal characters from username/email
Keshav Kini <keshav.kini@gmail.com>
parents: 431
diff changeset
6 @echo ' all-version-tests - run all tests against many hg versions'
354
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
7 @echo ' tests-%s - run all tests in the specified hg version'
34
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
8
354
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
9 all: help
34
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
10
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
11 tests:
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
12 cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS)
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
13
50a0d52ef979 Makefile to ease running of tests.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
14 test-%:
48
b9c6871c939e Fix single test running.
Augie Fackler <durin42@gmail.com>
parents: 34
diff changeset
15 cd tests && $(PYTHON) run-tests.py --with-hg=`which hg` $(TESTFLAGS) $@
354
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
16
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
17 tests-%:
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
18 @echo "Path to crew repo is $(CREW) - set this with CREW= if needed."
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
19 hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \
357
7954842c9637 Makefile: *BSD support.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 354
diff changeset
20 (cd $(CREW) ; $(MAKE) clean ) && \
354
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
21 cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS)
428c819f3135 Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents: 48
diff changeset
22
480
c88e8a88c5f6 makefile: document all-version-tests intentions
David M. Carr <david@carrclan.us>
parents: 472
diff changeset
23 # This is intended to be the authoritative list of Hg versions that this
c88e8a88c5f6 makefile: document all-version-tests intentions
David M. Carr <david@carrclan.us>
parents: 472
diff changeset
24 # extension is tested with. Versions prior to the version that ships in the
719
3a045277a434 Makefile: drop support for hg older than 2.8.2
Augie Fackler <raf@durin42.com>
parents: 674
diff changeset
25 # latest Ubuntu LTS release (2.8.2 for 14.04 LTS) may be dropped if they
480
c88e8a88c5f6 makefile: document all-version-tests intentions
David M. Carr <david@carrclan.us>
parents: 472
diff changeset
26 # interfere with new development. The latest released minor version should be
c88e8a88c5f6 makefile: document all-version-tests intentions
David M. Carr <david@carrclan.us>
parents: 472
diff changeset
27 # listed for each major version; earlier minor versions are not needed.
719
3a045277a434 Makefile: drop support for hg older than 2.8.2
Augie Fackler <raf@durin42.com>
parents: 674
diff changeset
28 all-version-tests: tests-2.8.2 tests-tip
363
07f6613fe0df Makefile: add .PHONY so tests will run correctly
Augie Fackler <durin42@gmail.com>
parents: 357
diff changeset
29
07f6613fe0df Makefile: add .PHONY so tests will run correctly
Augie Fackler <durin42@gmail.com>
parents: 357
diff changeset
30 .PHONY: tests all-version-tests