tests/test-serve.t
changeset 31008 636cf3f7620d
parent 29563 839380cc3368
child 31769 594dd384803c
equal deleted inserted replaced
31007:bfdb0741f9f2 31008:636cf3f7620d
    32   $ cat errors.log
    32   $ cat errors.log
    33 
    33 
    34 With -v
    34 With -v
    35 
    35 
    36   $ hgserve
    36   $ hgserve
    37   listening at http://localhost/ (bound to 127.0.0.1:HGPORT1) (glob)
    37   listening at http://localhost/ (bound to *$LOCALIP*:HGPORT1) (glob)
    38   % errors
    38   % errors
    39 
    39 
    40 With -v and -p HGPORT2
    40 With -v and -p HGPORT2
    41 
    41 
    42   $ hgserve -p "$HGPORT2"
    42   $ hgserve -p "$HGPORT2"
    43   listening at http://localhost/ (bound to 127.0.0.1:HGPORT2) (glob)
    43   listening at http://localhost/ (bound to *$LOCALIP*:HGPORT2) (glob)
    44   % errors
    44   % errors
    45 
    45 
    46 With -v and -p daytime (should fail because low port)
    46 With -v and -p daytime (should fail because low port)
    47 
    47 
    48 #if no-root
    48 #if no-root
    55 #endif
    55 #endif
    56 
    56 
    57 With --prefix foo
    57 With --prefix foo
    58 
    58 
    59   $ hgserve --prefix foo
    59   $ hgserve --prefix foo
    60   listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1) (glob)
    60   listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
    61   % errors
    61   % errors
    62 
    62 
    63 With --prefix /foo
    63 With --prefix /foo
    64 
    64 
    65   $ hgserve --prefix /foo
    65   $ hgserve --prefix /foo
    66   listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1) (glob)
    66   listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
    67   % errors
    67   % errors
    68 
    68 
    69 With --prefix foo/
    69 With --prefix foo/
    70 
    70 
    71   $ hgserve --prefix foo/
    71   $ hgserve --prefix foo/
    72   listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1) (glob)
    72   listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
    73   % errors
    73   % errors
    74 
    74 
    75 With --prefix /foo/
    75 With --prefix /foo/
    76 
    76 
    77   $ hgserve --prefix /foo/
    77   $ hgserve --prefix /foo/
    78   listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1) (glob)
    78   listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
    79   % errors
    79   % errors
    80 
    80 
    81   $ cd ..
    81   $ cd ..