Comments
Patch
@@ -89,10 +89,10 @@ dist-notests: doc MANIFEST.in
check: tests
tests:
- cd tests && $(PYTHON) run-tests.py $(TESTFLAGS)
+ cd tests && $(PYTHON) runtests $(TESTFLAGS)
test-%:
- cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@
+ cd tests && $(PYTHON) runtests $(TESTFLAGS) $@
update-pot: i18n/hg.pot
@@ -1,7 +1,7 @@
To run the tests, do:
cd tests/
-python run-tests.py
+python runtests
See http://mercurial.selenic.com/wiki/WritingTests for
more information on writing tests.
@@ -1,8 +1,8 @@
-Put here definitions of blacklists for run-tests.py
+Put here definitions of blacklists for runtests
Create a file per blacklist. Each file should list the names of tests that you
want to be skipped.
-File names are meant to be used as targets for run-tests.py --blacklist
+File names are meant to be used as targets for runtests --blacklist
option.
Lines starting with # are ignored. White spaces are stripped.
@@ -10,5 +10,5 @@ e.g. if you create a blacklist/example f
test-hgrc
# some comment
test-help
-then calling "run-tests.py --blacklist blacklists/example" will exclude
+then calling "runtests --blacklist blacklists/example" will exclude
test-hgrc and test-help from the list of tests to run.
rename from tests/run-tests.py
rename to tests/runtests
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# run-tests.py - Run a set of tests on Mercurial
+# runtests - Run a set of tests on Mercurial
#
# Copyright 2006 Matt Mackall <mpm@selenic.com>
#
@@ -18,23 +18,23 @@
# sample of test scripts. For example:
#
# 1) serial, no coverage, temp install:
-# ./run-tests.py test-s*
+# ./runtests test-s*
# 2) serial, no coverage, local hg:
-# ./run-tests.py --local test-s*
+# ./runtests --local test-s*
# 3) serial, coverage, temp install:
-# ./run-tests.py -c test-s*
+# ./runtests -c test-s*
# 4) serial, coverage, local hg:
-# ./run-tests.py -c --local test-s* # unsupported
+# ./runtests -c --local test-s* # unsupported
# 5) parallel, no coverage, temp install:
-# ./run-tests.py -j2 test-s*
+# ./runtests -j2 test-s*
# 6) parallel, no coverage, local hg:
-# ./run-tests.py -j2 --local test-s*
+# ./runtests -j2 --local test-s*
# 7) parallel, coverage, temp install:
-# ./run-tests.py -j2 -c test-s* # currently broken
+# ./runtests -j2 -c test-s* # currently broken
# 8) parallel, coverage, local install:
-# ./run-tests.py -j2 -c --local test-s* # unsupported (and broken)
+# ./runtests -j2 -c --local test-s* # unsupported (and broken)
# 9) parallel, custom tmp dir:
-# ./run-tests.py -j2 --tmpdir /tmp/myhgtests
+# ./runtests -j2 --tmpdir /tmp/myhgtests
#
# (You could use any subset of the tests: test-s* happens to match
# enough that it's worth doing parallel runs, few enough that it
@@ -452,7 +452,7 @@ def installhg(options):
hgbat = os.path.join(BINDIR, 'hg.bat')
if os.path.isfile(hgbat):
- # hg.bat expects to be put in bin/scripts while run-tests.py
+ # hg.bat expects to be put in bin/scripts while runtests
# installation layout put it in bin/ directly. Fix it
f = open(hgbat, 'rb')
data = f.read()
@@ -1323,7 +1323,7 @@ def main():
os.environ["PATH"] = os.pathsep.join(path)
# Include TESTDIR in PYTHONPATH so that out-of-tree extensions
- # can run .../tests/run-tests.py test-foo where test-foo
+ # can run .../tests/runtests test-foo where test-foo
# adds an extension to HGRC
pypath = [PYTHONDIR, TESTDIR]
# We have to augment PYTHONPATH, rather than simply replacing
@@ -6,7 +6,7 @@ BUNDLEPATH = os.path.join(TESTDIR, 'bund
# only makes sense to test on os which supports symlinks
if not getattr(os, "symlink", False):
- sys.exit(80) # SKIPPED_STATUS defined in run-tests.py
+ sys.exit(80) # SKIPPED_STATUS defined in runtests
u = ui.ui()
# hide outer repo