##// END OF EJS Templates
test-serve: make the 'listening at *' lines optional...
Matt Harbison -
r31769:594dd384 default
parent child Browse files
Show More
@@ -1421,7 +1421,7 b' test listening address/port specified by'
1421 1421 > EOF
1422 1422 $ hg serve -d --pid-file=hg.pid --web-conf paths.conf \
1423 1423 > -A access-paths.log -E error-paths-9.log
1424 listening at http://*:$HGPORT1/ (bound to *$LOCALIP*:$HGPORT1) (glob)
1424 listening at http://*:$HGPORT1/ (bound to *$LOCALIP*:$HGPORT1) (glob) (?)
1425 1425 $ cat hg.pid >> $DAEMON_PIDS
1426 1426 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1427 1427 200 Script output follows
@@ -1433,7 +1433,7 b' test --port option overrides web.port:'
1433 1433 $ killdaemons.py
1434 1434 $ hg serve -p $HGPORT2 -d -v --pid-file=hg.pid --web-conf paths.conf \
1435 1435 > -A access-paths.log -E error-paths-10.log
1436 listening at http://*:$HGPORT2/ (bound to *$LOCALIP*:$HGPORT2) (glob)
1436 listening at http://*:$HGPORT2/ (bound to *$LOCALIP*:$HGPORT2) (glob) (?)
1437 1437 $ cat hg.pid >> $DAEMON_PIDS
1438 1438 $ get-with-headers.py localhost:$HGPORT2 '?style=raw'
1439 1439 200 Script output follows
@@ -7,7 +7,7 b' Set up SMTP server:'
7 7
8 8 $ python "$TESTDIR/dummysmtpd.py" -p $HGPORT --pid-file a.pid -d \
9 9 > --tls smtps --certificate `pwd`/server.pem
10 listening at localhost:$HGPORT
10 listening at localhost:$HGPORT (?)
11 11 $ cat a.pid >> $DAEMON_PIDS
12 12
13 13 Set up repository:
@@ -34,13 +34,13 b' errors'
34 34 With -v
35 35
36 36 $ hgserve
37 listening at http://localhost/ (bound to *$LOCALIP*:HGPORT1) (glob)
37 listening at http://localhost/ (bound to *$LOCALIP*:HGPORT1) (glob) (?)
38 38 % errors
39 39
40 40 With -v and -p HGPORT2
41 41
42 42 $ hgserve -p "$HGPORT2"
43 listening at http://localhost/ (bound to *$LOCALIP*:HGPORT2) (glob)
43 listening at http://localhost/ (bound to *$LOCALIP*:HGPORT2) (glob) (?)
44 44 % errors
45 45
46 46 With -v and -p daytime (should fail because low port)
@@ -57,25 +57,25 b' With -v and -p daytime (should fail beca'
57 57 With --prefix foo
58 58
59 59 $ hgserve --prefix foo
60 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
60 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob) (?)
61 61 % errors
62 62
63 63 With --prefix /foo
64 64
65 65 $ hgserve --prefix /foo
66 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
66 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob) (?)
67 67 % errors
68 68
69 69 With --prefix foo/
70 70
71 71 $ hgserve --prefix foo/
72 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
72 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob) (?)
73 73 % errors
74 74
75 75 With --prefix /foo/
76 76
77 77 $ hgserve --prefix /foo/
78 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob)
78 listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob) (?)
79 79 % errors
80 80
81 81 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now