tests/test-archive
changeset 1925 c71420b186b0
parent 1923 7d83a351a936
child 1929 85daa4e03b4c
equal deleted inserted replaced
1924:46fb38ef9a91 1925:c71420b186b0
    28 node, archive = sys.argv[1:]
    28 node, archive = sys.argv[1:]
    29 f = urllib2.urlopen('http://127.0.0.1:20059/?cmd=archive;node=%s;type=%s'
    29 f = urllib2.urlopen('http://127.0.0.1:20059/?cmd=archive;node=%s;type=%s'
    30                     % (node, archive))
    30                     % (node, archive))
    31 sys.stdout.write(f.read())
    31 sys.stdout.write(f.read())
    32 EOF
    32 EOF
    33 http_proxy= python getarchive.py "$TIP" gz | tar tzf - | sed "s/$QTIP/TIP/"
    33 http_proxy= python getarchive.py "$TIP" gz | gunzip -dc - | tar tf - | sed "s/$QTIP/TIP/"
    34 http_proxy= python getarchive.py "$TIP" bz2 | tar tjf - | sed "s/$QTIP/TIP/"
    34 http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 -dc - | tar tf - | sed "s/$QTIP/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 $!
    39 sleep 1 # wait for server to scream and die
    39 sleep 1 # wait for server to scream and die