tests/test-hup
author eric@localhost.localdomain
Mon, 19 Sep 2005 18:24:37 -0700
changeset 1279 8ab1c07d4e0b
parent 814 0902ffece4b4
child 2088 f16435b45780
permissions -rwxr-xr-x
Add checks for programs which are required for the test suite to run. All prerequisite programs are checked for existance, and if any are missing, a list of missing programs is printed, and the test suite is aborted. All programs currently used in the tests, except those in core-utils, are checked.

#!/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