##// END OF EJS Templates
tests for hg serve prefix option
Michele Cella -
r5971:6d5ecf82 default
parent child Browse files
Show More
@@ -16,3 +16,27 b' fi'
16 echo % With -v
16 echo % With -v
17 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v | sed -e 's,:[0-9][0-9]*/,/,'
17 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v | sed -e 's,:[0-9][0-9]*/,/,'
18 cat hg.pid >> "$DAEMON_PIDS"
18 cat hg.pid >> "$DAEMON_PIDS"
19 kill `cat hg.pid`
20 sleep 1
21
22 echo % With --prefix foo
23 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo | sed -e 's,:[0-9][0-9]*/,/,'
24 cat hg.pid >> "$DAEMON_PIDS"
25 kill `cat hg.pid`
26 sleep 1
27
28 echo % With --prefix /foo
29 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo | sed -e 's,:[0-9][0-9]*/,/,'
30 cat hg.pid >> "$DAEMON_PIDS"
31 kill `cat hg.pid`
32 sleep 1
33
34 echo % With --prefix foo/
35 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo/ | sed -e 's,:[0-9][0-9]*/,/,'
36 cat hg.pid >> "$DAEMON_PIDS"
37 kill `cat hg.pid`
38 sleep 1
39
40 echo % With --prefix /foo/
41 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo/ | sed -e 's,:[0-9][0-9]*/,/,'
42 cat hg.pid >> "$DAEMON_PIDS"
@@ -2,3 +2,15 b''
2 access log created - .hg/hgrc respected
2 access log created - .hg/hgrc respected
3 % With -v
3 % With -v
4 listening at http://localhost/
4 listening at http://localhost/
5 killed!
6 % With --prefix foo
7 listening at http://localhost/foo/
8 killed!
9 % With --prefix /foo
10 listening at http://localhost/foo/
11 killed!
12 % With --prefix foo/
13 listening at http://localhost/foo/
14 killed!
15 % With --prefix /foo/
16 listening at http://localhost/foo/
General Comments 0
You need to be logged in to leave comments. Login now