Commit Graph

42 Commits

Author SHA1 Message Date
Augie Fackler
79afa2e8c5 tests: fix test skipping in pure unittest 2010-10-08 13:58:26 -05:00
Dan Villiom Podlaski Christiansen
0cae46f932 clone: call the wrapped function (fixes #181)
This is a regression that was brought to my attention in #mercurial:
hgsubversion breaks the --update flag. The cause is that we call
hg.clone() directly rather than the original wrapped function. A
comment in 'wrapper.py' noted that the call to hg.clone() should be
kept in sync with 'mercurial/commands.py'. That didn't happen.

The original reason for calling hg.clone() directly was that we needed
its return values. Another wrapper is added (and cleared) within
clone() to get them anyway.
2010-09-29 18:04:26 +02:00
Dan Villiom Podlaski Christiansen
bd458ffecd testrunner: don't use os.putenv(), as it may not affect os.environ. 2010-09-14 15:25:45 +02:00
Peter Arrenbrecht
77db23cd88 tests: add --show-stdout option to run.py 2010-09-08 09:50:11 +02:00
Andi Albrecht
a78b4072d4 Add svnrev, svnpath and svnuuid keyword.
Based on a patch by Wagner Bruna posted here:
http://groups.google.com/group/hgsubversion/browse_thread/thread/b3913337e021ab18
2010-09-02 21:30:17 +02:00
Dan Villiom Podlaski Christiansen
9e169923eb tests: add an option to the test-runner for selecting bindings. 2010-09-02 23:23:02 +02:00
Dan Villiom Podlaski Christiansen
aac6b0771c test_startrev: new tests inspired by test_rebuildmeta
The tests for start revision support are inspired by the rebuildmeta
tests; for every single fixture, a full and a shallow clone is
performed, and the two are then compared.
2010-07-20 12:53:47 +02:00
Dan Villiom Podlaski Christiansen
8a3ee342d2 tests: improve import logic
We already had some logic some logic to make us import the local
modules, but it failed under certain circumstances. I suspect that it
had to do with absolute vs. relative paths. Regardless of what the
root cause was, this fixes it.
2010-07-14 15:39:21 +02:00
James McKay
d23dcbe43f tests: Use tempfile.TemporaryFile instead of os.tmpfile() to redirect stdout.
os.tmpfile requires administrator privileges on Windows XP and may be blocked
by UAC on Windows Vista/7. In any case, it is deprecated in favour of
tempfile.TemporaryFile. See http://bugs.python.org/issue2232
2010-07-04 21:41:42 +01:00
Augie Fackler
2b51d7f616 tests/run.py: make sure our hgsubversion loads correctly 2010-05-18 14:46:50 -05:00
Dan Villiom Podlaski Christiansen
f5f972b21f testrunner: use demandimport, with an option to disable it 2010-05-14 20:27:24 +02:00
Dan Villiom Podlaski Christiansen
5cce3e0739 testrunner: delay and `simplify' importing of tests 2010-05-14 20:26:06 +02:00
Dan Villiom Podlaski Christiansen
a0077c3bfc testrunner: use optparse 2010-05-14 17:39:26 +02:00
Dirkjan Ochtman
e4c4a43451 tests: make sure single dir clone tests get run by non-nose users 2010-02-26 14:52:50 +01:00
Augie Fackler
3b059f8c48 tests.run: exit nonzero if tests did not pass 2010-03-01 17:45:00 -06:00
Augie Fackler
34e86485e6 tests: make comprehensive tests work properly with nose and run.py 2009-06-15 12:26:20 -05:00
Dirkjan Ochtman
0adf46f3a3 svncommands: add verify command 2009-06-11 19:14:05 +02:00
Dirkjan Ochtman
f6a407653c tests: add -A option to run.py for running comprehensive tests 2009-06-11 11:34:37 +02:00
Dirkjan Ochtman
f18ad364f2 tests: send warning to stderr instead of redirected stdout 2009-06-11 11:39:45 +02:00
Dirkjan Ochtman
821671f633 Allow passing in module arguments to the test runs. 2009-05-28 08:48:57 +02:00
Dan Villiom Podlaski Christiansen
4464869581 Remove the 'outgoing' wrapper, and use the Mercurial infrastructure instead. 2009-05-22 15:12:31 +02:00
Dan Villiom Podlaski Christiansen
d0cf8cc8c4 tests: silence tests when using run.py 2009-05-15 17:24:08 +02:00
Augie Fackler
94a7ecbe68 Reorganize to have a more conventional module structure.
This means that hgsubversion now uses absolute imports instead of
relative ones, which makes the tests more reliable.
2009-05-13 21:39:39 -05:00
Dan Villiom Podlaski Christiansen
4a604b8889 First merge, totally untested. 2009-05-01 10:28:59 +02:00
Martijn Pieters
f7cafd1975 Implement -u/--update support when pulling.
Status messages now more closely follow standard hg pull. Added generic pull
tests as well as specific tests for this change.
2009-04-27 09:39:39 -05:00
Daniel Tang
4a245c23b5 Add support for user:pass@url repositories to be hg-like 2009-04-06 11:19:51 -04:00
Dan Villiom Podlaski Christiansen
858bc7c969 Minor tweaks to how the tests are run. 2009-03-27 03:42:52 +01:00
Patrick Mezard
ae52abfad6 Convert svn:externals properties into a .hgsvnexternals file 2009-01-02 15:54:05 -06:00
Patrick Mezard
f64f7be3b4 fetch_command: cancel patching when encountering binary diffs
Mercurial patching code does not support hunks with embedded nul characters.
2008-12-30 20:33:56 -06:00
Augie Fackler
42010019a9 authormap: Add tests, fix in stupid mode. 2008-12-30 20:14:03 -06:00
Augie Fackler
6f8b90fbad utility_commands: Implement rebuildmeta so that metadata can be rebuilt.
hg_delta_editor: Fixed some longstanding branch_info bugs detected while
rebuilding meta.
2008-12-23 22:19:26 -06:00
Augie Fackler
bb1ad558ba tests: Fix some missing suite definitions so that running the full testsuite
does not require installing nose.
2008-12-23 17:45:34 -06:00
Patrick Mezard
a9f4c82415 run.py: register and develop test_fetch_symlinks 2008-12-10 11:03:19 -06:00
Patrick Mezard
cc0dbae2c2 Move and complete execute bit conversion tests into test_fetch_exec.py 2008-12-10 11:03:18 -06:00
Patrick Mezard
05423736da Add a disabled test for unrelated branches
The fix is not obvious but preserving the test helps fixing other stuff.
2008-11-29 11:25:01 -06:00
Patrick Mezard
551321fbc7 Add a test to check EOLs are correctly converted 2008-11-20 22:41:16 -06:00
Patrick Mezard
074290e2b2 fetch_command: handle nullid parent in stupid non-diffy mode 2008-11-14 16:18:24 -06:00
Patrick Mezard
f1278f2869 push_cmd: delete empty svn directories, refactor directory creation 2008-11-14 16:18:24 -06:00
Patrick Mezard
b4460d5cb9 hg_delta_editor: register svn file copies 2008-11-05 13:37:07 +01:00
Augie Fackler
b7e24a980b Add tests for tags and fix a bug in the tag-finding code that was found by the tests. 2008-10-08 20:37:01 -05:00
Augie Fackler
b4aa725c13 Fix a stupid mistake. A reminder of why Nose is handy. 2008-10-07 22:19:18 -05:00
Augie Fackler
7a17d8e401 Add a basic system for running the hgsubversion tests (although not the svnwrap ones) without requiring Nose. Nose is still the recommended way to run the tests.
Also added some tests for pushing.
2008-10-07 22:13:14 -05:00