Mercurial > hg
comparison tests/test-http-clone-r @ 5384:e3a0c092b4e2
Allow tests to run in parallel.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 05 Oct 2007 12:17:01 -0700 |
parents | c0b449154a90 |
children | a89aa3721114 |
comparison
equal
deleted
inserted
replaced
5383:7cdc896fdcd5 | 5384:e3a0c092b4e2 |
---|---|
47 hg debugindex .hg/store/data/anotherfile.i | 47 hg debugindex .hg/store/data/anotherfile.i |
48 hg debugindex .hg/store/data/fred.i | 48 hg debugindex .hg/store/data/fred.i |
49 hg debugindex .hg/store/00manifest.i | 49 hg debugindex .hg/store/00manifest.i |
50 hg verify | 50 hg verify |
51 echo "# Starting server" | 51 echo "# Starting server" |
52 hg serve -p 20061 -d --pid-file=../hg1.pid | 52 hg serve -p $HGPORT -d --pid-file=../hg1.pid |
53 cd .. | 53 cd .. |
54 cat hg1.pid >> $DAEMON_PIDS | 54 cat hg1.pid >> $DAEMON_PIDS |
55 | 55 |
56 echo "# clone remote via stream" | 56 echo "# clone remote via stream" |
57 for i in 0 1 2 3 4 5 6 7 8; do | 57 for i in 0 1 2 3 4 5 6 7 8; do |
58 hg clone -r "$i" http://localhost:20061/ test-"$i" 2>&1 | 58 hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" 2>&1 |
59 if cd test-"$i"; then | 59 if cd test-"$i"; then |
60 hg verify | 60 hg verify |
61 cd .. | 61 cd .. |
62 fi | 62 fi |
63 done | 63 done |
64 cd test-8 | 64 cd test-8 |
65 hg pull ../test-7 | 65 hg pull ../test-7 |
66 hg verify | 66 hg verify |
67 cd .. | 67 cd .. |
68 cd test-1 | 68 cd test-1 |
69 hg pull -r 4 http://localhost:20061/ 2>&1 | 69 hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' |
70 hg verify | 70 hg verify |
71 hg pull http://localhost:20061/ 2>&1 | 71 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' |
72 cd .. | 72 cd .. |
73 cd test-2 | 73 cd test-2 |
74 hg pull -r 5 http://localhost:20061/ 2>&1 | 74 hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' |
75 hg verify | 75 hg verify |
76 hg pull http://localhost:20061/ 2>&1 | 76 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' |
77 hg verify | 77 hg verify |
78 cd .. | 78 cd .. |