tests/test-hgwebdirsym.t
changeset 25472 4d2b9b304ad0
parent 22046 7a9cbb315d84
equal deleted inserted replaced
25470:378a8e700e02 25472:4d2b9b304ad0
    31   >     -A access-collections.log -E error-collections.log
    31   >     -A access-collections.log -E error-collections.log
    32   $ cat hg.pid >> $DAEMON_PIDS
    32   $ cat hg.pid >> $DAEMON_PIDS
    33 
    33 
    34 should succeed
    34 should succeed
    35 
    35 
    36   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '?style=raw'
    36   $ get-with-headers.py localhost:$HGPORT '?style=raw'
    37   200 Script output follows
    37   200 Script output follows
    38   
    38   
    39   
    39   
    40   /al/
    40   /al/
    41   /b/
    41   /b/
    42   /c/
    42   /c/
    43   
    43   
    44   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'al/file/tip/a?style=raw'
    44   $ get-with-headers.py localhost:$HGPORT 'al/file/tip/a?style=raw'
    45   200 Script output follows
    45   200 Script output follows
    46   
    46   
    47   a
    47   a
    48   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'b/file/tip/b?style=raw'
    48   $ get-with-headers.py localhost:$HGPORT 'b/file/tip/b?style=raw'
    49   200 Script output follows
    49   200 Script output follows
    50   
    50   
    51   b
    51   b
    52   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'c/file/tip/c?style=raw'
    52   $ get-with-headers.py localhost:$HGPORT 'c/file/tip/c?style=raw'
    53   200 Script output follows
    53   200 Script output follows
    54   
    54   
    55   c
    55   c
    56 
    56 
    57 should fail
    57 should fail
    58 
    58 
    59   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'circle/al/file/tip/a?style=raw'
    59   $ get-with-headers.py localhost:$HGPORT 'circle/al/file/tip/a?style=raw'
    60   404 Not Found
    60   404 Not Found
    61   
    61   
    62   
    62   
    63   error: repository circle/al/file/tip/a not found
    63   error: repository circle/al/file/tip/a not found
    64   [1]
    64   [1]
    65   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'circle/b/file/tip/a?style=raw'
    65   $ get-with-headers.py localhost:$HGPORT 'circle/b/file/tip/a?style=raw'
    66   404 Not Found
    66   404 Not Found
    67   
    67   
    68   
    68   
    69   error: repository circle/b/file/tip/a not found
    69   error: repository circle/b/file/tip/a not found
    70   [1]
    70   [1]
    71   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'circle/c/file/tip/a?style=raw'
    71   $ get-with-headers.py localhost:$HGPORT 'circle/c/file/tip/a?style=raw'
    72   404 Not Found
    72   404 Not Found
    73   
    73   
    74   
    74   
    75   error: repository circle/c/file/tip/a not found
    75   error: repository circle/c/file/tip/a not found
    76   [1]
    76   [1]