tests/test-hgwebdir
changeset 7450 79d1bb737c16
parent 7202 268c582bd42a
child 7494 85dc88630beb
equal deleted inserted replaced
7449:f848d7f96195 7450:79d1bb737c16
    49 
    49 
    50 cat > paths.conf <<EOF
    50 cat > paths.conf <<EOF
    51 [paths]
    51 [paths]
    52 t/a/=$root/a
    52 t/a/=$root/a
    53 b=$root/b
    53 b=$root/b
       
    54 coll=$root/*
    54 EOF
    55 EOF
    55 
    56 
    56 hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
    57 hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
    57     -A access-paths.log -E error-paths-2.log
    58     -A access-paths.log -E error-paths-2.log
    58 cat hg.pid >> $DAEMON_PIDS
    59 cat hg.pid >> $DAEMON_PIDS
    64 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom' \
    65 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom' \
    65 	| sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
    66 	| sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
    66 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom' \
    67 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom' \
    67 	| sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
    68 	| sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
    68 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/file/tip/a?style=raw'
    69 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/file/tip/a?style=raw'
       
    70 # Test [paths] '*' extension
       
    71 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/?style=raw'
       
    72 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/a/file/tip/a?style=raw'
    69 
    73 
    70 cat > collections.conf <<EOF
    74 cat > collections.conf <<EOF
    71 [collections]
    75 [collections]
    72 $root=$root
    76 $root=$root
    73 EOF
    77 EOF