Mercurial > hg-git
annotate Makefile @ 431:83f248dd0eb9
Makefile: include 1.9.2 in all-version-tests
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 09 Sep 2011 16:08:58 -0500 |
parents | 37a06b903df6 |
children | e58a6d0b80e2 |
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' |
428c819f3135
Makefile: add target for testing against many hg versions at once
Augie Fackler <durin42@gmail.com>
parents:
48
diff
changeset
|
6 @echo ' all-version-tests - run all tests against many hg versions' |
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 | 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 |
431
83f248dd0eb9
Makefile: include 1.9.2 in all-version-tests
Augie Fackler <durin42@gmail.com>
parents:
370
diff
changeset
|
23 all-version-tests: tests-1.4.3 tests-1.5.4 tests-1.6.2 tests-1.7.2 \ |
83f248dd0eb9
Makefile: include 1.9.2 in all-version-tests
Augie Fackler <durin42@gmail.com>
parents:
370
diff
changeset
|
24 tests-1.9.2 tests-tip |
363
07f6613fe0df
Makefile: add .PHONY so tests will run correctly
Augie Fackler <durin42@gmail.com>
parents:
357
diff
changeset
|
25 |
07f6613fe0df
Makefile: add .PHONY so tests will run correctly
Augie Fackler <durin42@gmail.com>
parents:
357
diff
changeset
|
26 .PHONY: tests all-version-tests |