tests/test-hgweb-empty
author Gilles Moris <gilles.moris@free.fr>
Fri, 06 Nov 2009 09:35:38 +0100
changeset 9811 c92ac5a56f69
parent 7565 5f162f61e479
permissions -rwxr-xr-x
buildrpm: enable to start the script from anywhere Previously the script worked only from the hg root.

#!/bin/sh
# Some tests for hgweb in an empty repository

hg init test
cd test
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
cat hg.pid >> $DAEMON_PIDS

("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/shortlog')
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log')
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/graph')
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file')