tests/test-hgweb
changeset 5924 b8009718a211
parent 5690 1b365c5723bc
child 6368 2c370f08c486
equal deleted inserted replaced
5923:f39110afc039 5924:b8009718a211
     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 -d '0 0'
     9 hg ci -Ambase -d '0 0'
    10 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
    10 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
    11 cat hg.pid >> $DAEMON_PIDS
    11 cat hg.pid >> $DAEMON_PIDS
    12 echo % manifest
    12 echo % manifest
    13 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw')
    13 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw')
    14 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw')
    14 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw')
    15 
    15 
    35 # Test the access/error files are opened in append mode
    35 # Test the access/error files are opened in append mode
    36 python -c "print len(file('access.log').readlines()), 'log lines written'"
    36 python -c "print len(file('access.log').readlines()), 'log lines written'"
    37 
    37 
    38 echo % static file
    38 echo % static file
    39 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/style-gitweb.css'
    39 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/style-gitweb.css'
       
    40 
       
    41 echo % errors
       
    42 cat errors.log