##// END OF EJS Templates
make server tests use --daemon.
Vadim Gelfer -
r1744:385b0649 default
parent child Browse files
Show More
@@ -18,8 +18,8 echo "name = test-archive" >> .hg/hgrc
18 echo "allowzip = true" >> .hg/hgrc
18 echo "allowzip = true" >> .hg/hgrc
19 echo "allowgz = true" >> .hg/hgrc
19 echo "allowgz = true" >> .hg/hgrc
20 echo "allowbz2 = true" >> .hg/hgrc
20 echo "allowbz2 = true" >> .hg/hgrc
21 hg serve -p 20059 > /dev/null &
21 serverpid=`mktemp`
22 sleep 1 # wait for server to be started
22 hg serve -p 20059 -d --pid-file=$serverpid
23
23
24 TIP=`hg id -v | cut -f1 -d' '`
24 TIP=`hg id -v | cut -f1 -d' '`
25 QTIP=`hg id -q`
25 QTIP=`hg id -q`
@@ -35,4 +35,5 http_proxy= python getarchive.py "$TIP"
35 http_proxy= python getarchive.py "$TIP" zip > archive.zip
35 http_proxy= python getarchive.py "$TIP" zip > archive.zip
36 unzip -t archive.zip | sed "s/$QTIP/TIP/"
36 unzip -t archive.zip | sed "s/$QTIP/TIP/"
37
37
38 kill $!
38 kill `cat $serverpid`
39 rm $serverpid
@@ -12,4 +12,3 Archive: archive.zip
12 testing: test-archive-TIP/baz/bletch OK
12 testing: test-archive-TIP/baz/bletch OK
13 testing: test-archive-TIP/foo OK
13 testing: test-archive-TIP/foo OK
14 No errors detected in compressed data of archive.zip.
14 No errors detected in compressed data of archive.zip.
15 killed!
@@ -7,8 +7,8 hg init
7 hg addremove
7 hg addremove
8 hg commit -m 1
8 hg commit -m 1
9 hg verify
9 hg verify
10 hg serve -p 20059 > /dev/null &
10 serverpid=`mktemp`
11 sleep 1 # wait for server to be started
11 hg serve -p 20059 -d --pid-file=$serverpid
12 cd ..
12 cd ..
13
13
14 hg clone http://localhost:20059/ copy
14 hg clone http://localhost:20059/ copy
@@ -19,4 +19,5 cat foo
19 hg manifest
19 hg manifest
20 hg pull
20 hg pull
21
21
22 kill $!
22 kill `cat $serverpid`
23 rm $serverpid
@@ -19,4 +19,3 2ed2a3912a0b24502043eae84ee4b279c18b90dd
19 pulling from http://localhost:20059/
19 pulling from http://localhost:20059/
20 searching for changes
20 searching for changes
21 no changes found
21 no changes found
22 killed!
General Comments 0
You need to be logged in to leave comments. Login now