2
# Copyright 2010 Canonical Ltd. This software is licensed under the
3
# GNU Affero General Public License version 3 (see the file LICENSE).
5
# Test script for manual use only. Exercises the
6
# TranslationTemplatesBuildManager through XMLRPC.
10
from xmlrpclib import ServerProxy
12
if len(sys.argv) != 2:
13
print "Usage: %s <chroot_sha1>" % sys.argv[0]
14
print "Where <chroot_sha1> is the SHA1 of the chroot tarball to use."
15
print "The chroot tarball must be in the local Librarian."
16
print "See https://dev.launchpad.net/Soyuz/HowToUseSoyuzLocally"
19
chroot_sha1 = sys.argv[1]
21
proxy = ServerProxy('http://localhost:8221/rpc')
25
build_type = 'translation-templates'
27
args = {'branch_url': 'no-branch-here-sorry'}
28
print proxy.build(buildid, build_type, chroot_sha1, filemap, args)
29
#status = proxy.status()
30
#for filename, sha1 in status[3].iteritems():