tests/test-hgweb
changeset 6368 2c370f08c486
parent 5924 b8009718a211
child 7341 6cb522c5d56a
equal deleted inserted replaced
6367:51984a2413f2 6368:2c370f08c486
    25 echo % should give a 400 - bad command
    25 echo % should give a 400 - bad command
    26 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' | sed 's/400.*/400/'
    26 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' | sed 's/400.*/400/'
    27 
    27 
    28 echo % should give a 404 - file does not exist
    28 echo % should give a 404 - file does not exist
    29 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
    29 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
       
    30 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork'
       
    31 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw'
    30 
    32 
    31 echo % stop and restart
    33 echo % stop and restart
    32 kill `cat hg.pid`
    34 kill `cat hg.pid`
    33 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
    35 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
    34 cat hg.pid >> $DAEMON_PIDS
    36 cat hg.pid >> $DAEMON_PIDS