comparison tests/test-archive @ 2187:09d3eebdd9b2

tests: support older version of bunzip2 and, possibly, gunzip too
author TK Soh <teekaysoh@yahoo.com>
date Wed, 03 May 2006 11:25:36 +0200
parents 98cc126f9f3f
children 0f7e4a39d9af
comparison
equal deleted inserted replaced
2186:1092533fd11c 2187:09d3eebdd9b2
27 node, archive = sys.argv[1:] 27 node, archive = sys.argv[1:]
28 f = urllib2.urlopen('http://127.0.0.1:20059/?cmd=archive;node=%s;type=%s' 28 f = urllib2.urlopen('http://127.0.0.1:20059/?cmd=archive;node=%s;type=%s'
29 % (node, archive)) 29 % (node, archive))
30 sys.stdout.write(f.read()) 30 sys.stdout.write(f.read())
31 EOF 31 EOF
32 http_proxy= python getarchive.py "$TIP" gz | gunzip -dc - | tar tf - | sed "s/$QTIP/TIP/" 32 http_proxy= python getarchive.py "$TIP" gz | gunzip | tar tf - | sed "s/$QTIP/TIP/"
33 http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 -dc - | tar tf - | sed "s/$QTIP/TIP/" 33 http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - | sed "s/$QTIP/TIP/"
34 http_proxy= python getarchive.py "$TIP" zip > archive.zip 34 http_proxy= python getarchive.py "$TIP" zip > archive.zip
35 unzip -t archive.zip | sed "s/$QTIP/TIP/" 35 unzip -t archive.zip | sed "s/$QTIP/TIP/"
36 36
37 kill `cat hg.pid` 37 kill `cat hg.pid`
38 sleep 1 # wait for server to scream and die 38 sleep 1 # wait for server to scream and die