tests: removed test names in tests

The name of the test files is replaced with a glob * expression,
thereby the tests does not depend on the filename of the file they are
in.
This commit is contained in:
Erik Zielke 2010-09-30 09:49:40 +02:00
parent 86b1980ab6
commit 512d0992fc
10 changed files with 53 additions and 56 deletions

View File

@ -78,5 +78,5 @@ attack /tmp/test
$ hg manifest -r4
/tmp/test
$ hg update -Cr4
abort: No such file or directory: */test-audit-path.t/target//tmp/test (glob)
abort: No such file or directory: */target//tmp/test (glob)
[255]

View File

@ -14,7 +14,7 @@ Convert while testing all possible outputs
$ hg --debug convert svn-repo A-hg
initializing destination A-hg repository
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/svn-repo (glob)
run hg sink pre-conversion action
scanning source...
found trunk at 'trunk'
@ -23,7 +23,7 @@ Convert while testing all possible outputs
found branch branché at 5
found branch branchée at 6
scanning: 1 revisions
reparent to file://*/test-convert-svn-encoding.t/svn-repo/trunk (glob)
reparent to file://*/svn-repo/trunk (glob)
fetching revision log for "/trunk" from 4 to 0
parsing revision 4 (2 changes)
parsing revision 3 (4 changes)
@ -33,18 +33,18 @@ Convert while testing all possible outputs
'/branches' is not under '/trunk', ignoring
'/tags' is not under '/trunk', ignoring
scanning: 2 revisions
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9 (glob)
reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
fetching revision log for "/branches/branché" from 5 to 0
parsing revision 5 (1 changes)
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9 (glob)
reparent to file://*/svn-repo (glob)
reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
found parent of branch /branches/branché at 4: /trunk
scanning: 3 revisions
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e (glob)
reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
fetching revision log for "/branches/branchée" from 6 to 0
parsing revision 6 (1 changes)
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e (glob)
reparent to file://*/svn-repo (glob)
reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
found parent of branch /branches/branchée at 5: /branches/branché
scanning: 4 revisions
scanning: 5 revisions
@ -57,7 +57,7 @@ Convert while testing all possible outputs
4 hello
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@2
converting: 1/6 revisions (16.67%)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/trunk (glob)
reparent to file://*/svn-repo/trunk (glob)
scanning paths: /trunk/à 0/3 (0.00%)
scanning paths: /trunk/à/é 1/3 (33.33%)
scanning paths: /trunk/é 2/3 (66.67%)
@ -70,14 +70,14 @@ Convert while testing all possible outputs
converting: 2/6 revisions (33.33%)
scanning paths: /trunk/à 0/4 (0.00%)
gone from -1
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/trunk (glob)
reparent to file://*/svn-repo (glob)
reparent to file://*/svn-repo/trunk (glob)
scanning paths: /trunk/è 1/4 (25.00%)
copied to è from é@2
scanning paths: /trunk/é 2/4 (50.00%)
gone from -1
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/trunk (glob)
reparent to file://*/svn-repo (glob)
reparent to file://*/svn-repo/trunk (glob)
scanning paths: /trunk/ù 3/4 (75.00%)
mark /trunk/ù came from à:2
à/
@ -95,12 +95,12 @@ Convert while testing all possible outputs
converting: 3/6 revisions (50.00%)
scanning paths: /trunk/è 0/2 (0.00%)
gone from -1
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/trunk (glob)
reparent to file://*/svn-repo (glob)
reparent to file://*/svn-repo/trunk (glob)
scanning paths: /trunk/ù 1/2 (50.00%)
gone from -1
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/trunk (glob)
reparent to file://*/svn-repo (glob)
reparent to file://*/svn-repo/trunk (glob)
è
getting files: è 1/2 (50.00%)
ù/
@ -108,17 +108,17 @@ Convert while testing all possible outputs
1 branch to branch?
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?@5
converting: 4/6 revisions (66.67%)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9 (glob)
reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
scanning paths: /branches/branché 0/1 (0.00%)
0 branch to branch?e
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?e@6
converting: 5/6 revisions (83.33%)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e (glob)
reparent to file://*svn-repo/branches/branch%C3%A9e (glob)
scanning paths: /branches/branchée 0/1 (0.00%)
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo (glob)
reparent to file://*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e (glob)
reparent to file://*svn-repo (glob)
reparent to file://*svn-repo/branches/branch%C3%A9e (glob)
reparent to file://*svn-repo (glob)
reparent to file://*svn-repo/branches/branch%C3%A9e (glob)
updating tags
.hgtags
run hg sink post-conversion action

View File

@ -74,13 +74,10 @@ Test diff during merge:
Should diff cloned file against wc file:
$ hg falabala > out
$ hg falabala
diffing a.2a13a4d2da36/a */a/a (glob)
[1]
Cleanup the output since the wc is a tmp directory:
$ sed 's:\(diffing [^ ]* \).*\(\/test-extdiff\):\1[tmp]\2:' out
diffing a.2a13a4d2da36/a [tmp]/test-extdiff.t/a/a
Test --change option:

View File

@ -17,7 +17,7 @@ commit hooks can see env vars
$ hg add a
$ hg commit -m a
precommit hook: HG_PARENT1=0000000000000000000000000000000000000000
pretxncommit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 HG_PENDING=$HGTMP/test-hook.t/a
pretxncommit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 HG_PENDING=$HGTMP/*/a (glob)
0:cb9a9f314b8b
commit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000
commit.b hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000
@ -40,7 +40,7 @@ pretxncommit and commit hooks can see both parents of merge
$ echo b >> a
$ hg commit -m a1 -d "1 0"
precommit hook: HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b
pretxncommit hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$HGTMP/test-hook.t/a
pretxncommit hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$HGTMP/*/a (glob)
1:ab228980c14d
commit hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b
commit.b hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b
@ -50,7 +50,7 @@ pretxncommit and commit hooks can see both parents of merge
$ hg add b
$ hg commit -m b -d '1 0'
precommit hook: HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b
pretxncommit hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$HGTMP/test-hook.t/a
pretxncommit hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$HGTMP/*/a (glob)
2:ee9deb46ab31
commit hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b
commit.b hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b
@ -60,7 +60,7 @@ pretxncommit and commit hooks can see both parents of merge
(branch merge, don't forget to commit)
$ hg commit -m merge -d '2 0'
precommit hook: HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd
pretxncommit hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd HG_PENDING=$HGTMP/test-hook.t/a
pretxncommit hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd HG_PENDING=$HGTMP/*/a (glob)
3:07f3376c1e65
commit hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd
commit.b hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd
@ -99,7 +99,7 @@ tag hooks can see env vars
$ hg tag -d '3 0' a
pretag hook: HG_LOCAL=0 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_TAG=a
precommit hook: HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2
pretxncommit hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PENDING=$HGTMP/test-hook.t/a
pretxncommit hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PENDING=$HGTMP/*/a (glob)
4:539e4b31b6dc
commit hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2
commit.b hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2
@ -133,10 +133,10 @@ more there after
4:539e4b31b6dc
$ hg commit -m 'fail' -d '4 0'
precommit hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10
pretxncommit hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$HGTMP/test-hook.t/a
pretxncommit hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$HGTMP/*/a (glob)
5:6f611f8018c1
5:6f611f8018c1
pretxncommit.forbid hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$HGTMP/test-hook.t/a
pretxncommit.forbid hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$HGTMP/*/a (glob)
transaction abort!
rollback completed
abort: pretxncommit.forbid1 hook exited with status 1
@ -192,7 +192,7 @@ incoming changes no longer there after
$ echo 'pretxnchangegroup.forbid1 = python ../printenv.py pretxnchangegroup.forbid 1' >> .hg/hgrc
$ hg pull ../a
4:539e4b31b6dc
pretxnchangegroup.forbid hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$HGTMP/test-hook.t/b HG_SOURCE=pull HG_URL=file:
pretxnchangegroup.forbid hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$HGTMP/*/b HG_SOURCE=pull HG_URL=file: (glob)
pulling from ../a
searching for changes
adding changesets

View File

@ -686,7 +686,7 @@ Clone to test incoming
> default = ../Test
> EOF
$ hg incoming
comparing with *test-keyword.t/Test (glob)
comparing with */Test (glob)
searching for changes
changeset: 2:bb948857c743
tag: tip

View File

@ -6,11 +6,11 @@
$ echo '[paths]' >> .hg/hgrc
$ echo 'dupe = ../b' >> .hg/hgrc
$ hg in dupe
comparing with */test-paths.t/b (glob)
comparing with */b (glob)
no changes found
[1]
$ cd ..
$ hg -R a in dupe
comparing with */test-paths.t/b (glob)
comparing with */b (glob)
no changes found
[1]

View File

@ -144,7 +144,7 @@ find incoming on the remote side
find incoming on the remote side (using absolute path)
$ hg incoming -R ../remote -e "python ../dummyssh" "ssh://user@dummy/`pwd`"
comparing with ssh://user@dummy/*/test-ssh.t/local (glob)
comparing with ssh://user@dummy/*/local (glob)
searching for changes
changeset: 1:a28a9d1a809c
tag: tip
@ -226,7 +226,7 @@ push should succeed even though it has an unexpected response
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
Got arguments 1:user@dummy 2:hg -R local serve --stdio
Got arguments 1:user@dummy 2:hg -R /*/test-ssh.t/local serve --stdio (glob)
Got arguments 1:user@dummy 2:hg -R /*/local serve --stdio (glob)
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
changegroup-in-remote hook: HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
Got arguments 1:user@dummy 2:hg -R remote serve --stdio

View File

@ -28,5 +28,5 @@ test bad subpaths pattern
> .* = \1
> EOF
$ hg debugsub
abort: bad subrepository pattern in */test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference (glob)
abort: bad subrepository pattern in */outer/.hg/hgrc:2: invalid group reference (glob)
[255]

View File

@ -252,13 +252,13 @@ Clone and test outgoing:
$ cd ..
$ hg clone repo repo2
updating to branch default
pulling subrepo foo from */test-subrepo-recursion.t/repo/foo (glob)
pulling subrepo foo from */repo/foo (glob)
requesting all changes
adding changesets
adding manifests
adding file changes
added 4 changesets with 7 changes to 3 files
pulling subrepo foo/bar from */test-subrepo-recursion.t/repo/foo/bar (glob)
pulling subrepo foo/bar from */repo/foo/bar (glob)
requesting all changes
adding changesets
adding manifests
@ -267,13 +267,13 @@ Clone and test outgoing:
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd repo2
$ hg outgoing -S
comparing with */test-subrepo-recursion.t/repo (glob)
comparing with */repo (glob)
searching for changes
no changes found
comparing with */test-subrepo-recursion.t/repo/foo (glob)
comparing with */repo/foo (glob)
searching for changes
no changes found
comparing with */test-subrepo-recursion.t/repo/foo/bar (glob)
comparing with */repo/foo/bar (glob)
searching for changes
no changes found
[1]
@ -293,7 +293,7 @@ Make nested change:
$ hg commit -m 3-4-2
committing subrepository foo
$ hg outgoing -S
comparing with */test-subrepo-recursion.t/repo (glob)
comparing with */repo (glob)
searching for changes
changeset: 3:2655b8ecc4ee
tag: tip
@ -301,7 +301,7 @@ Make nested change:
date: Thu Jan 01 00:00:00 1970 +0000
summary: 3-4-2
comparing with */test-subrepo-recursion.t/repo/foo (glob)
comparing with */repo/foo (glob)
searching for changes
changeset: 4:e96193d6cb36
tag: tip
@ -309,7 +309,7 @@ Make nested change:
date: Thu Jan 01 00:00:00 1970 +0000
summary: 3-4-2
comparing with */test-subrepo-recursion.t/repo/foo/bar (glob)
comparing with */repo/foo/bar (glob)
searching for changes
no changes found
@ -322,7 +322,7 @@ Switch to original repo and setup default path:
Test incoming:
$ hg incoming -S
comparing with */test-subrepo-recursion.t/repo2 (glob)
comparing with */repo2 (glob)
searching for changes
changeset: 3:2655b8ecc4ee
tag: tip
@ -330,7 +330,7 @@ Test incoming:
date: Thu Jan 01 00:00:00 1970 +0000
summary: 3-4-2
comparing with */test-subrepo-recursion.t/repo2/foo (glob)
comparing with */repo2/foo (glob)
searching for changes
changeset: 4:e96193d6cb36
tag: tip
@ -338,7 +338,7 @@ Test incoming:
date: Thu Jan 01 00:00:00 1970 +0000
summary: 3-4-2
comparing with */test-subrepo-recursion.t/repo2/foo/bar (glob)
comparing with */repo2/foo/bar (glob)
searching for changes
no changes found

View File

@ -542,9 +542,9 @@ test repository cloning
$ cat mercurial2/main/nested_absolute/.hg/hgrc \
> mercurial2/main/nested_relative/.hg/hgrc
[paths]
default = */test-subrepo.t/sub/mercurial/nested_absolute (glob)
default = */sub/mercurial/nested_absolute (glob)
[paths]
default = */test-subrepo.t/sub/mercurial/nested_relative (glob)
default = */sub/mercurial/nested_relative (glob)
$ rm -rf mercurial mercurial2
Issue1977: multirepo push should fail if subrepo push fails