Mercurial > hg
comparison tests/test-static-http @ 10154:d4a62b6d4a58 stable
run-tests.py: clears http_proxy for all tests
author | Wagner Bruna <wbruna@softwareexpress.com.br> |
---|---|
date | Tue, 29 Dec 2009 19:02:26 -0200 |
parents | 3e6206967570 |
children | ace3cf2bc991 |
comparison
equal
deleted
inserted
replaced
10147:27838bd9acf5 | 10154:d4a62b6d4a58 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 cp "$TESTDIR"/printenv.py . | 3 cp "$TESTDIR"/printenv.py . |
4 | 4 |
5 http_proxy= hg clone http://localhost:$HGPORT/ copy | 5 hg clone http://localhost:$HGPORT/ copy |
6 echo $? | 6 echo $? |
7 test -d copy || echo copy: No such file or directory | 7 test -d copy || echo copy: No such file or directory |
8 | 8 |
9 # This server doesn't do range requests so it's basically only good for | 9 # This server doesn't do range requests so it's basically only good for |
10 # one pull | 10 # one pull |
32 hg commit -m"test" -d "1000000 0" | 32 hg commit -m"test" -d "1000000 0" |
33 hg tip | 33 hg tip |
34 | 34 |
35 cd .. | 35 cd .. |
36 | 36 |
37 http_proxy= hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' | 37 hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' |
38 | 38 |
39 cd local | 39 cd local |
40 hg verify | 40 hg verify |
41 cat bar | 41 cat bar |
42 | 42 |
45 hg commit -A -mtest2 -d '100000000 0' | 45 hg commit -A -mtest2 -d '100000000 0' |
46 | 46 |
47 cd ../local | 47 cd ../local |
48 echo '[hooks]' >> .hg/hgrc | 48 echo '[hooks]' >> .hg/hgrc |
49 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc | 49 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc |
50 http_proxy= hg pull | sed -e 's,:[0-9][0-9]*/,/,' | 50 hg pull | sed -e 's,:[0-9][0-9]*/,/,' |
51 | 51 |
52 echo '% trying to push' | 52 echo '% trying to push' |
53 hg update | 53 hg update |
54 echo more foo >> bar | 54 echo more foo >> bar |
55 hg commit -m"test" -d "100000000 0" | 55 hg commit -m"test" -d "100000000 0" |
56 http_proxy= hg push | sed -e 's,:[0-9][0-9]*/,/,' | 56 hg push | sed -e 's,:[0-9][0-9]*/,/,' |
57 | 57 |
58 echo '% test with "/" URI (issue 747)' | 58 echo '% test with "/" URI (issue 747)' |
59 cd .. | 59 cd .. |
60 hg init | 60 hg init |
61 echo a > a | 61 echo a > a |
62 hg add a | 62 hg add a |
63 hg ci -ma | 63 hg ci -ma |
64 | 64 |
65 http_proxy= hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' | 65 hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' |
66 | 66 |
67 cd local2 | 67 cd local2 |
68 hg verify | 68 hg verify |
69 cat a | 69 cat a |
70 hg paths | sed -e 's,:[0-9][0-9]*/,/,' | 70 hg paths | sed -e 's,:[0-9][0-9]*/,/,' |
71 | 71 |
72 echo '% test with empty repo (issue965)' | 72 echo '% test with empty repo (issue965)' |
73 cd .. | 73 cd .. |
74 hg init remotempty | 74 hg init remotempty |
75 | 75 |
76 http_proxy= hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' | 76 hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' |
77 | 77 |
78 cd local3 | 78 cd local3 |
79 hg verify | 79 hg verify |
80 hg paths | sed -e 's,:[0-9][0-9]*/,/,' | 80 hg paths | sed -e 's,:[0-9][0-9]*/,/,' |
81 | 81 |
82 echo '% test with non-repo' | 82 echo '% test with non-repo' |
83 cd .. | 83 cd .. |
84 mkdir notarepo | 84 mkdir notarepo |
85 http_proxy= hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' | 85 hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' |
86 | 86 |
87 kill $! | 87 kill $! |