tests/test-hgweb
changeset 9842 d3dbdca92458
parent 8167 6c82beaaa11a
child 12182 1121af239761
equal deleted inserted replaced
9841:7cd6dee6fe37 9842:d3dbdca92458
     5 cd test
     5 cd test
     6 mkdir da
     6 mkdir da
     7 echo foo > da/foo
     7 echo foo > da/foo
     8 echo foo > foo
     8 echo foo > foo
     9 hg ci -Ambase
     9 hg ci -Ambase
       
    10 
    10 hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
    11 hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
    11 cat hg.pid >> $DAEMON_PIDS
    12 cat hg.pid >> $DAEMON_PIDS
       
    13 
    12 echo % manifest
    14 echo % manifest
    13 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw')
    15 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw')
    14 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw')
    16 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw')
    15 
    17 
    16 echo % plain file
    18 echo % plain file
    28 echo % should give a 404 - file does not exist
    30 echo % should give a 404 - file does not exist
    29 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
    31 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
    30 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork'
    32 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork'
    31 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw'
    33 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw'
    32 
    34 
       
    35 echo % try bad style
       
    36 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=foobar')
       
    37 
    33 echo % stop and restart
    38 echo % stop and restart
    34 "$TESTDIR/killdaemons.py"
    39 "$TESTDIR/killdaemons.py"
    35 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
    40 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
    36 cat hg.pid >> $DAEMON_PIDS
    41 cat hg.pid >> $DAEMON_PIDS
    37 # Test the access/error files are opened in append mode
    42 # Test the access/error files are opened in append mode