tests/test-hup
author mpm@selenic.com
Sat, 27 Aug 2005 18:11:32 -0700
changeset 1110 1032a505488c
parent 814 0902ffece4b4
child 2088 f16435b45780
permissions -rwxr-xr-x
Add a simple dummy ssh test This uses the -e flag to run a dummy script rather than actual ssh to test the protocol over a local pipe.

#!/bin/sh

hg init
mkfifo p

hg serve --stdio < p &
P=$!
(echo lock; echo addchangegroup; sleep 5) > p &
Q=$!
sleep 1
kill -HUP $P
sleep 1
ls .hg