Mercurial > hg
annotate tests/test-fncache @ 7429:dbc40381620e
tests: Skip tests if they will fail because of outer repo
For different reasons these tests will fail if run in a tmpdir which is in a hg
repo.
The following three tests assumes no .hg in path dirs - I don't know how to
work around that:
* test-dispatch explicitly tests for no repo and expects "abort: There is no
Mercurial repository here (.hg not found)!"
* test-extension expects parentui to be None when not cd'ed to a repo dir
* test-globalopts tests that implicit -R works correctly - that could perhaps be
done from another repo instead of assuming no repo
The following two might be worth investigating further:
* test-convert-svn-sink fails for unknown reasons, starting with "abort:
unresolved merge conflicts (see hg resolve)"
* test-glog gets strange failures when testing "from outer space"
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 27 Nov 2008 00:57:31 +0100 |
parents | a3871028aacf |
children | 6c82beaaa11a |
rev | line source |
---|---|
7290 | 1 #!/bin/sh |
2 | |
3 echo "% init repo1" | |
4 hg init repo1 | |
5 cd repo1 | |
6 | |
7 echo | |
8 echo "% add a; ci" | |
9 echo "some text" > a | |
10 hg add | |
11 hg ci -d '0 0' -m first | |
12 | |
13 echo | |
14 echo "% cat .hg/store/fncache" | |
15 cat .hg/store/fncache | |
16 | |
17 echo | |
18 echo "% add a.i/b; ci" | |
19 mkdir a.i | |
20 echo "some other text" > a.i/b | |
21 hg add | |
22 hg ci -d '0 0' -m second | |
23 | |
24 echo | |
25 echo "% cat .hg/store/fncache" | |
26 cat .hg/store/fncache | |
27 | |
28 echo | |
29 echo "% add a.i.hg/c; ci" | |
30 mkdir a.i.hg | |
31 echo "yet another text" > a.i.hg/c | |
32 hg add | |
33 hg ci -d '0 0' -m third | |
34 | |
35 echo | |
36 echo "% cat .hg/store/fncache" | |
37 cat .hg/store/fncache | |
38 | |
39 echo | |
40 echo "% hg verify" | |
41 hg verify | |
42 | |
43 echo | |
44 echo "% rm .hg/store/fncache" | |
45 rm .hg/store/fncache | |
46 | |
47 echo | |
48 echo "% hg verify" | |
49 hg verify | |
50 | |
51 exit 0 |