Commit Graph

36 Commits

Author SHA1 Message Date
Alexis S. L. Carvalho
2f82b4ffa3 run-tests.py: set ui.slash = True
This should make things easier for pysh.
2007-06-08 23:49:12 -03:00
Alexis S. L. Carvalho
274bce0c1c run-tests.py: pass -L/--label to simplemerge
This should give us conflict markers that don't change from one run
to another.

Remove some sed's/egrep's from some tests.
2007-04-28 17:55:45 -03:00
Alexis S. L. Carvalho
a4fb0722ca change tests to use simplemerge by default 2007-04-16 20:17:39 -03:00
Alexis S. L. Carvalho
31232bf5ab run-tests.py: use coverage.py with "#!/usr/bin/env python" tests 2007-04-07 04:27:55 -03:00
Alexis S. L. Carvalho
63574c7e40 run-tests.py: small cleanup 2007-04-07 04:27:55 -03:00
Alexis S. L. Carvalho
5dd065da79 run-tests.py: use coverage.py with *.py tests 2007-04-07 04:27:55 -03:00
Alexis S. L. Carvalho
77c152a933 run-tests.py: tell coverage.py to ignore errors
Otherwise there'll be some IOErrors when it tries to open python
files created during the execution of e.g. test-hook.
2007-04-07 04:27:55 -03:00
Matt Mackall
ab12bf1889 tests: set a default encoding for running tests (ASCII) 2006-12-03 16:16:33 -06:00
Matt Mackall
6b93d4c0fd tests: add -i switch
Prompt to accept changes for tests where output changed
2006-11-08 13:20:08 -06:00
Matt Mackall
4dc56ee619 tests: add -R switch
Restarts at first .err file if one exists, otherwise runs all tests
2006-11-08 13:20:08 -06:00
Matt Mackall
a6ea08deb0 tests: sort test list if running all tests 2006-11-08 13:20:08 -06:00
Matt Mackall
6feb12faa2 run-tests: add --first switch to exit on first error 2006-10-09 23:08:41 -05:00
Matt Mackall
a11adc1f86 run-tests: add --retest switch
-r reruns tests for which a .err file exists
2006-10-09 23:05:11 -05:00
Thomas Arendsen Hein
0a7b982aa6 Whitespace/Tab cleanup 2006-10-01 19:26:33 +02:00
Thomas Arendsen Hein
31b1fbbac8 Clear contents of global hgrc for tests before running each test.
This fixes running test-mq-qdiff after test-mq, because of changed settings.
2006-08-22 09:55:14 +02:00
Vadim Gelfer
ee86bed69f run-tests.py: skip tests that should not run.
print message when any test is skipped.
count skipped tests.
2006-07-27 15:53:08 -07:00
Vadim Gelfer
be51fbc3c0 merge with crew. 2006-07-27 12:36:17 -07:00
Will Maier
d6dfcfff0a Provide a relevant description for --timeout. 2006-07-25 10:29:43 -05:00
Alexis S. L. Carvalho
4fdf56c807 run-tests.py: fix diff output when test-foo.out doesn't exist.
Previously, if test-foo.out doesn't exist and test-foo outputs
something, the first line of the diff will look like this:

-+changeset:   0:0acdaf898367

(note the leading "-")
2006-07-21 01:51:17 -03:00
Alexis S. L. Carvalho
874e690312 Allow tests that end in .py and .bat
Revision f2f17143efd1 disallowed tests that have a '.' in the name, but
that also disallows tests that end in .py and .bat, even though run-tests.py
has some code to special case them.
2006-07-21 01:51:17 -03:00
Lee Cantey
9582336ca9 Add merge to list of required tools. 2006-07-13 09:50:51 -07:00
Thomas Arendsen Hein
ee260bdfad Changed default timeout for run-tests.py from 30 to 180 seconds.
As e.g. test-http-proxy already takes quite some time (about a minute here)
and tests usually should clean up after themselves, the timeout should only be
hit in case of other problems.
2006-07-07 11:23:53 +02:00
Vadim Gelfer
832c369ab0 tests: add timeouts, make run-tests.py clean up dead daemon processes
test timeout feature is needed for test with python 2.5 beta.  if test
does not complete in time (30 seconds is default), it is killed.

some times daemon process used in test can be alive after the test
is killed by user or by timeout.  tests now record daemon pids into
$DAEMON_PIDS and run-tests.py kills all living daemons after every test.

final little change is to add newline to end of pid file printed by
"hg serve", else "cat hg.pid >> $DAEMON_FILES" gives garbage.
2006-07-06 11:45:34 -07:00
Vadim Gelfer
6901c8941f run-tests.py: make tests use same python interpreter as test harness.
this is wanted because some tests run python interpreter directly.

must use same python interpreter in tests as in main harness or problems
will happen because of e.g. different python abi if run-tests.py run
with python 2.5 but system python is 2.4.

fix is to see if system python is used and is named python.  if no,
put symlink called python at front of shell search path.
2006-07-06 10:09:24 -07:00
Thomas Arendsen Hein
49f57f33db Fix diff header (line endings) for failed test output in run-tests.py. 2006-06-08 15:06:31 +02:00
Thomas Arendsen Hein
a7d6f68122 Don't run tests with dots in their name (e.g. test-foo.orig) 2006-06-08 14:56:40 +02:00
Benoit Boissinot
fa32bf3c8d catch KeyboardInterrupt in run-tests 2006-05-11 14:06:18 +02:00
Vadim Gelfer
c9bc017f74 run-tests.py: fix handling of newlines.
old code could not handle embedded "\r" or files that ended without newline.
2006-05-10 10:31:22 -07:00
Vadim Gelfer
21204c6bb3 run-tests.py: print diff if reference output not existing. 2006-05-10 10:07:53 -07:00
Vadim Gelfer
e1962a5447 run-tests.py must print changed test output no matter what exit code is. 2006-05-05 10:41:38 -07:00
Thomas Arendsen Hein
6db6f6dbbc Always clean the build directory before installing for running the tests.
Otherwise tests might run an old version, when e.g. commands.py.orig is
moved back after a revert (old timestamp).
2006-05-03 10:45:20 +02:00
Vadim Gelfer
e92eac82af run-tests.py: remove trailing white space 2006-04-27 22:01:57 -07:00
Vadim Gelfer
d35c28164f make indentation of coverage code in run-tests.py nicer. 2006-04-27 22:01:28 -07:00
Stephen Darnell
4c0fdc2a17 Add code coverage to the python version of run-tests (inc. annotation)
Also include a minor work-around to coverage.py to avoid errors about /<string>
2006-04-27 21:59:44 -07:00
Stephen Darnell
004f510106 Tidyups for run-tests.py inc. try/finally cleanup and allow tests to be specified on command line 2006-04-26 16:54:07 +02:00
Stephen Darnell
0a609e474e Add a pure python version of run-tests.
If this works well for most people, it should replace the shell version
of run-test.
2006-04-21 18:47:55 +02:00