test-http
25 lines
| 412 B
| text/plain
|
TextLexer
/ tests / test-http
Vadim Gelfer
|
r2612 | #!/bin/sh | ||
mkdir test | ||||
cd test | ||||
echo foo>foo | ||||
hg init | ||||
hg addremove | ||||
hg commit -m 1 | ||||
hg verify | ||||
hg serve -p 20059 -d --pid-file=hg.pid | ||||
cat hg.pid >> $DAEMON_PIDS | ||||
cd .. | ||||
echo % clone via stream | ||||
Vadim Gelfer
|
r2613 | http_proxy= hg clone --stream http://localhost:20059/ copy 2>&1 | \ | ||
Vadim Gelfer
|
r2612 | sed -e 's/[0-9][0-9.]*/XXX/g' | ||
cd copy | ||||
hg verify | ||||
cd .. | ||||
echo % clone via pull | ||||
Vadim Gelfer
|
r2613 | http_proxy= hg clone http://localhost:20059/ copy-pull | ||
Vadim Gelfer
|
r2612 | cd copy-pull | ||
hg verify | ||||