comparison tests/test-static-http @ 10398:ace3cf2bc991

tests: don't just silently strip port numbers
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 08 Feb 2010 02:53:41 +0100
parents d4a62b6d4a58
children 26abd91d9e84
comparison
equal deleted inserted replaced
10397:8cb81d75730c 10398:ace3cf2bc991
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 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,:$HGPORT/,:\$HGPORT/,"
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 hg pull | sed -e 's,:[0-9][0-9]*/,/,' 50 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
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 hg push | sed -e 's,:[0-9][0-9]*/,/,' 56 hg push | sed -e "s,:$HGPORT/,:\$HGPORT/,"
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 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,:$HGPORT/,:\$HGPORT/,"
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,:$HGPORT/,:\$HGPORT/,"
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 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,:$HGPORT/,:\$HGPORT/,"
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,:$HGPORT/,:\$HGPORT/,"
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 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,:$HGPORT/,:\$HGPORT/,"
86 86
87 kill $! 87 kill $!