Mercurial > treepkg
comparison test/test_readconfig.py @ 234:eaa696629a91
Add a way to specify the svn URL of the repository with the debian rules
subdirectory and use to checkout and update the debian directory of a
PackageTrack. Update the tests.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 13 Jan 2009 16:18:58 +0000 |
parents | e1c7cd896310 |
children | faeeac2c4c71 |
comparison
equal
deleted
inserted
replaced
233:757e5504f46a | 234:eaa696629a91 |
---|---|
1 # Copyright (C) 2008 by Intevation GmbH | 1 # Copyright (C) 2008, 2009 by Intevation GmbH |
2 # Authors: | 2 # Authors: |
3 # Bernhard Herzog <bh@intevation.de> | 3 # Bernhard Herzog <bh@intevation.de> |
4 # | 4 # |
5 # This program is free software under the GPL (>=v2) | 5 # This program is free software under the GPL (>=v2) |
6 # Read the file COPYING coming with the software for details. | 6 # Read the file COPYING coming with the software for details. |
45 [pkg_extraargs] | 45 [pkg_extraargs] |
46 svn_url: svn://example.com/%(name)s/trunk | 46 svn_url: svn://example.com/%(name)s/trunk |
47 base_dir: %(tracks_dir)s/%(name)s | 47 base_dir: %(tracks_dir)s/%(name)s |
48 packager_class: readconfig_test.extraargs | 48 packager_class: readconfig_test.extraargs |
49 orig_tarball: %(base_dir)s/mytarball.tgz | 49 orig_tarball: %(base_dir)s/mytarball.tgz |
50 rules_svn_url: file:///tmp/my-debian-repository | |
50 """ | 51 """ |
51 | 52 |
52 files = [("treepkg.cfg", config_contents), | 53 files = [("treepkg.cfg", config_contents), |
53 ("readconfig_test", | 54 ("readconfig_test", |
54 [("__init__.py", ""), | 55 [("__init__.py", ""), |
87 packager_class="readconfig_test.extraargs", | 88 packager_class="readconfig_test.extraargs", |
88 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", | 89 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", |
89 root_cmd=['sudo'], | 90 root_cmd=['sudo'], |
90 signing_key_id="", | 91 signing_key_id="", |
91 svn_url="svn://example.com/extraargs/trunk", | 92 svn_url="svn://example.com/extraargs/trunk", |
93 rules_svn_url="file:///tmp/my-debian-repository", | |
92 orig_tarball=("/home/builder/mill/" | 94 orig_tarball=("/home/builder/mill/" |
93 "tracks/extraargs/mytarball.tgz")), | 95 "tracks/extraargs/mytarball.tgz")), |
94 dict(name="simple", | 96 dict(name="simple", |
95 base_dir="/home/builder/mill/tracks/simple", | 97 base_dir="/home/builder/mill/tracks/simple", |
96 deb_email="treepkg@example.com", | 98 deb_email="treepkg@example.com", |
97 deb_fullname="TreePKG", | 99 deb_fullname="TreePKG", |
100 rules_svn_url="", | |
98 debrevision_prefix="treepkg", | 101 debrevision_prefix="treepkg", |
99 handle_dependencies=True, | 102 handle_dependencies=True, |
100 packager_class="readconfig_test.simple", | 103 packager_class="readconfig_test.simple", |
101 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", | 104 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", |
102 root_cmd=['sudo'], | 105 root_cmd=['sudo'], |